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

Bearing fault diagnosis method based on SAGAN and improved ResNet

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (22) POM(폴리아세탈)(21) 에폭시수지

기본 정보

저자
  1. Guoqiang Wang — Henan Key Laboratory of Green Building Materials Manufacturing and Intelligent Equipment, Luoyang Institute of Technology, Luoyang, China|||School of Computer and Information Engineering, Luoyang Institute of Technology, Luoyang, China
  2. Nianfeng Shi — Henan Key Laboratory of Green Building Materials Manufacturing and Intelligent Equipment, Luoyang Institute of Technology, Luoyang, China|||School of Computer and Information Engineering, Luoyang Institute of Technology, Luoyang, China
  3. Xiaowen Yang — Henan Key Laboratory of Green Building Materials Manufacturing and Intelligent Equipment, Luoyang Institute of Technology, Luoyang, China. yxl11162023@163.com|||School of Computer and Information Engineering, Luoyang Institute of Technology, Luoyang, China. yxl11162023@163.com|||Henan Key Laboratory of Green Building Materials Manufacturing and Intelligent Equipment, Luoyang Institute of Technology, Luoyang, China
  4. Zhichun Liu — Henan Key Laboratory of Green Building Materials Manufacturing and Intelligent Equipment, Luoyang Institute of Technology, Luoyang, China|||School of Computer and Information Engineering, Luoyang Institute of Technology, Luoyang, China
  5. Zhen Liu — Henan Key Laboratory of Green Building Materials Manufacturing and Intelligent Equipment, Luoyang Institute of Technology, Luoyang, China|||School of Computer and Information Engineering, Luoyang Institute of Technology, Luoyang, China
DOI
10.1038/s41598-025-16771-2
저널
Scientific Reports
발행년도
2025
발행기관
Nature Portfolio
피인용수
2
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-025-16771-2
토픽
Gear and Bearing Dynamics Analysis
OpenAlex ID
W4414602603

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(22) POM(폴리아세탈), (21) 에폭시수지
R&D 측면
분석·모델링
확신도
0.70
근거 용어
bearing fault diagnosis, SAGAN, IResNet, vibration signals, fault detection
판단 근거
논문은 베어링의 결함을 진단하는 딥러닝 알고리즘 연구로, 코오롱인더스트리의 직접적인 제품 연구는 아니나 제조 공정 내 회전 기계 및 설비의 상태 모니터링(Condition Monitoring)에 적용 가능한 기술입니다.
R&D 활용 포인트
엔지니어링 플라스틱 성형 기기나 화학 공정용 회전 설비의 예지 보전(Predictive Maintenance) 및 설비 진단 시스템 구축에 활용 가능합니다.
평가 입력
본문 75,262자 중 30,032자 발췌

초록

Traditional rolling bearing fault diagnosis methods struggle to adaptively extract features under complex industrial environments, and obtaining large and rich fault data under real operating conditions is difficult and expensive. Aiming at these issues, a bearing fault diagnosis method based on Self-Attention Generative Adversarial Networks (SAGAN) and Improved Deep Residual Networks (IResNet) was proposed (SAGAN_IResNet). Firstly, the original vibration signals are transformed into two-dimensional time-frequency images using continuous wavelet transform, providing both time domain and frequency domain information. Secondly, SAGAN is used to generate new samples similar to the original sample distribution, thereby expanding the data. Furthermore, a bearing fault diagnosis model is constructed using an improved residual network that incorporates the Multi-head Self-Attention (MHA) to adaptively obtain the global feature information, alleviate the problem of gradient dispersion and network degradation, and enhance the model's diagnostic performance in the presence of strong noise and variable load conditions. Experimental verification is conducted using bearing datasets from Case Western Reserve University, Southeast University and Jiangnan University. The results show that the method proposed in this paper has strong bearing fault diagnosis performance under the condition of few samples, strong noise and variable load.

본문 75,262자

본문 펼치기
## OPEN # Bearing fault diagnosis method based on SAGAN and improved ResNet Guoqiang Wang <sup>1,2</sup> , Nianfeng Shi <sup>1,2</sup> , Xianglan Yang <sup>1,2</sup> <sup></sup> , Zhichun Liu <sup>1,2</sup> & Zhen Liu <sup>1,2</sup> Traditional rolling bearing fault diagnosis methods struggle to adaptively extract features under complex industrial environments, and obtaining large and rich fault data under real operating conditions is difficult and expensive. Aiming at these issues, a bearing fault diagnosis method based on Self-Attention Generative Adversarial Networks (SAGAN) and Improved Deep Residual Networks (IResNet) was proposed (SAGAN_IResNet). Firstly, the original vibration signals are transformed into two-dimensional time–frequency images using continuous wavelet transform, providing both time domain and frequency domain information. Secondly, SAGAN is used to generate new samples similar to the original sample distribution, thereby expanding the data. Furthermore, a bearing fault diagnosis model is constructed using an improved residual network that incorporates the Multi-head Self- Attention (MHA) to adaptively obtain the global feature information, alleviate the problem of gradient dispersion and network degradation, and enhance the model’s diagnostic performance in the presence of strong noise and variable load conditions. Experimental verification is conducted using bearing datasets from Case Western Reserve University, Southeast University and Jiangnan University. The results show that the method proposed in this paper has strong bearing fault diagnosis performance under the condition of few samples, strong noise and variable load. Keywords Continuous wavelet transform, Multi-head self-attention, Deep residual network, Fault diagnosis With the continuous advancement of industrial manufacturing, mechanical equipment is undergoing a transformation towards higher precision, high efficiency, automation, and complexity. Bearings, as vital components in aerospace, high-end machine tools, and advanced medical equipment, play a crucial role in the overall operation of these systems <sup>1,2</sup> . Research indicates that nearly 30% of faults in rotating machinery are related to rolling bearings <sup>3</sup> . Consequently, the development of a bearing fault diagnosis method with high accuracy and strong robustness holds profound significance in enhancing industrial production efficiency, operational costs, and eliminating safety hazards <sup>4,5</sup> . Currently, fault diagnosis methods for rotating machinery can be broadly categorized into three types: those based on analytical models <sup>6</sup>, knowledge-based approaches <sup>7</sup>, and data-driven methods <sup>8</sup> . Diagnosing faults in complex mechanical systems through the establishment of high-precision analytical models or extensive empirical knowledge bases can be challenging and expensive, Additionally, there are also some practical limitations in practical industrial applications. With the rapid development of intelligent manufacturing, a substantial volume of equipment condition monitoring data has been collected and stored for further analysis. As a result, data-driven fault diagnosis algorithms have become a research hotspot in mechanical fault diagnosis research <sup>9</sup> . Among these, the support vector machine <sup>10</sup>, K-nearest neighbor <sup>11</sup>, BP neural network and extreme learning machine <sup>12</sup> gained widespread use. Although these methods have achieved certain results, their shallow network structures and insufficient feature extraction capabilities restrict further improvements in the accuracy of bearing fault diagnosis. In recent years, deep learning has gained significant attention from researchers due to its powerful ability to automatically extract features. This technique has achieved impressive results across various domains including speech recognition, natural language processing, and computer vision. It has also been extensively applied in the field of fault diagnosis <sup>13–15</sup> . For instance, Hoang et al. <sup>16</sup> converted original vibration signals into two-dimensional images using the fast Fourier transform and then employed convolutional neural networks to extract features and diagnose faults. Similarly, Xu et al. <sup>17</sup> combined one-dimensional convolutional neural networks with autoencoders to enhance fault diagnosis accuracy and reduce diagnostic delays. Furthermore, 1School of Computer and Information Engineering, Luoyang Institute of Technology, Luoyang, China. 2Henan Key Laboratory of Green Building Materials Manufacturing and Intelligent Equipment, Luoyang Institute of Technology, Luoyang, China. <sup></sup> email: yxl11162023@163.com Siddique et al. <sup>18</sup> proposed a novel method for bearing fault diagnosis. This method extracts fault features through convolutional layers and pooling layers, optimizes the model weights using the FOX optimizer, and achieves a high classification accuracy. Zaman et al. <sup>20</sup> proposed a centrifugal pump fault detection method that integrates a hybrid feature pool with deep learning, aiming to enhance fault identification accuracy and generalization capability under complex operating conditions. Zaman et al. <sup>20</sup> developed a hybrid deep learning model that integrates the strengths of deep learning in feature extraction and classification with the capabilities of wavelet coherence analysis in time–frequency feature extraction, effectively enhancing the accuracy of fault diagnosis in centrifugal pumps. Despite the achievements of various bearing fault diagnosis methods, several challenges and difficulties persist in achieving effective and high-precision fault diagnosis in real-world industrial scenarios. The two most significant challenges are as follows: (1) Insufficient samples: data is an important factor affecting the performance of the model, but it is difficult to collect fault samples in the actual industrial environment. It is time-consuming and expensive to obtain a large amount of balanced fault data <sup>21</sup> . (2) Difficulty in feature extraction: The presence of environmental noise and load variations in industrial pro duction complicates the extraction of meaningful features from vibration signals. This complexity and instability hinder the effective extraction of features for accurate mechanical fault diagnosis <sup>22</sup> . To enhance the accuracy of fault diagnosis in insufficient datasets, researchers have employed various techniques. Taylor et al. <sup>23</sup> utilized data augmentation methods such as flipping, rotating, color jitter, and polar coordinate transformation to process images. Meanwhile, Udmale et al. <sup>24</sup> employed the transfer learning method to tackle the challenges of fault diagnosis under various operating conditions. It effectively addresses the issue of insufficient fault samples and achieves good diagnostic performance. Generative Adversarial Networks (GANs) offer a promising new approach to address the issue of insufficient samples. Initially used for image generation, GANs have demonstrated effectiveness and have been extended to the field of mechanical fault diagnosis <sup>25</sup> . For example, Xie et al. <sup>26</sup> proposed a Deep Convolution GAN (DCGAN) model to simulate the original distribution of a few classes and generate new data to expand the bearing fault data set. Liang et al. <sup>27</sup> combined GANs with wavelet transform and Convolutional Neural Networks (CNN) to propose a new intelligent fault detection method for rotating machinery. To address the challenge of extracting bearing fault features in complex environments, there has been a trend towards enhancing fault diagnosis models. Huang et al. <sup>28</sup> combined convolutional neural networks with the channel attention mechanism. This approach adaptively scores and assigns weights to learned features, improving the learning capability of convolutional layer features. Guo et al. <sup>29</sup> proposed a fault diagnosis method based on attention CNN with BiLSTM network, leveraging the attention mechanism to emphasize critical features. Moreover, Wang et al. <sup>30</sup> explored the application of attention mechanisms in fault diagnosis networks by designing an attention module that fully considers the characteristics of rolling bearing faults, enhancing fault-related features while ignoring irrelevant ones. Although these above methods have improved the accuracy of bearing fault diagnosis, it is difficult to achieve a balance between handling insufficient samples and extracting fault features. Therefore, this paper proposes a new approach to rolling bearing fault diagnosis based on a Self-Attention Generative Adversarial Networks (SAGAN) and improved residual network. The main contributions of this paper can be summarized as follows: (1) Proposal of an intelligent fault diagnosis method for rolling bearings based on the Self-Attention generative adversarial network and improved residual network. The method demonstrates robust fault diagnosis performance even under challenging conditions such as insufficient samples, strong noise, and variable loads. (2) Utilization of SAGAN to generate high-quality synthetic bearing fault data, SAGAN’s ability to learn global and long-distance dependencies improves the accuracy of data generation, effectively addressing the problem of insufficient data volume. (3) A bearing fault diagnosis model based on an improved residual network is proposed. The Multi-head Self-Attention is combined with the residual neural network to alleviate the problems of gradient dispersion and network degradation, and the global feature information is adaptively obtained, which improves fault diagnosis performance of the model under strong noise and variable loads. The rest framework of the article is as follows: The second section briefly introduces some theoretical background knowledge. In the third section, we provide a detailed description of the proposed basic settings and the implementation process of the model. The fourth section validates the effectiveness of the proposed method through experimental results and compares it with other common bearing fault diagnosis methods. Lastly, the fifth section provides a discussion and summary of the research methods utilized in this paper, highlighting key findings and implications for future research. Theoretical background Continuous wavelet transform The Continuous Wavelet Transform (CWT) is a multi-scale time–frequency analysis method with strong time– frequency analysis ability. CWT can collect both high and low-frequency components to ensure the integrity of feature information <sup>31</sup> . In general, assuming that the input signal is _x_ ( _t_ ) and _x_ ( _t_ )= _L_ <sup>2</sup> ( _R_ ), and the basic wavelet function is _ψ_ ( _t_ ) _∈_ _L_ <sup>2</sup> ( _R_ ), where _L_ <sup>2</sup> ( _R_ ) the space of square-integrable real-number functions. The CWT of _x_ ( _t_ ) can be expressed as: _a_ <u>1</u> _CWTx_ ( _a, b_ ) = _~~√~~_ _<u>a</u>_ ˆ + _∞_ _−∞_ <u>)</u> _dt_ = _< x_ ( _t_ ) _, ψa,b_ ( _t_ ) _>_ (1) _a_ _x_ ( _t_ ) _ψ_ <sup>_∗_</sup> <sup><u>(</u></sup> <sup>_<u>t −</u>_</sup> <sup>_<u>b</u>_</sup> _a_ ( _<u>t −</u>_ _<u>b</u>_ <u>1</u> _ψa,b_ ( _t_ ) = _~~√~~_ _<u>a</u>_ _ψ_ _a_ ) (2) where _a_ and _b_ represent the scale and displacement parameters in wavelet transform respectively. _ψ_ <sup>_∗_</sup> ( _x_ ) denotes the complex conjugate value of _ψ_ ( _x_ ), _CWTx_ ( _a, b_ ) denotes the inner product of signal and wavelet _ψa,b_ ( _t_ ). By performing continuous wavelet transform to the original vibration signal, the original vibration signals are converted into two-dimensional time–frequency images, and the time–frequency mixed representation of the signal is extracted to facilitate subsequent data generation and feature extraction. Generative adversarial networks Generative adversarial networks (GANs) consist of two main components: the generator (G) and the discriminator (D) <sup>25</sup> . The generator is trained to learn the distribution of real sample data and generates more realistic synthetic data, while the discriminator is trained to distinguish between real and generated data. During the training process, the generator aims to produce increasingly realistic data to deceive the discriminator, while the discriminator strives to correctly classify the authenticity of the data. Through multiple iterations of this adversarial process, the generator and discriminator reach a Nash equilibrium. The structure of GANs is illustrated in Fig. 1. The objective function of GANs can be defined as: Generative adversarial networks Generative adversarial networks (GANs) consist of two main components: the generator (G) and the discriminator (D) <sup>25</sup> . The generator is trained to learn the distribution of real sample data and generates more realistic synthetic data, while the discriminator is trained to distinguish between real and generated data. During the training process, the generator aims to produce increasingly realistic data to deceive the discriminator, while the discriminator strives to correctly classify the authenticity of the data. Through multiple iterations of this adversarial process, the generator and discriminator reach a Nash equilibrium. The structure of GANs is illustrated in Fig. 1. min _G_ min _G_ <sup>max</sup> _D_ <sup>max</sup> _D_ _V_ ( _D, G_ ) = _Ex∼Pdata_ ( _x_ )[log _D_ ( _x_ )] + _Ez∼p_ ( _z_ )[log(1 _−_ _D_ ( _G_ ( _z_ )))] (3) where _z_ represents the random noise, which is input into the generator _D_ to generate pseudo-sample data. _x_ denotes the real sample input whose distribution is _Pdata_ ( _x_ ), and _D_ ( _x_ ) is the output of discriminator _D_ . If _D_ ( _x_ ) _>_ 0 _._ 5, the input _x_ is considered to be a real sample; if _D_ ( _x_ ) _<_ 0 _._ 5, the input _x_ is considered to be a pseudo sample <sup>32</sup> .The generator and the discriminator are essentially two independent networks, thus, their training is performed independently. During training, the parameters of one network are fixed and those of the other are updated. Firstly, the generator _G_ is optimized (the parameters of the discriminator _D_ are fixed), and the loss function of the generator is as follows: min _G_ = _Ez∼p_ ( _x_ )[log(1 _−_ _D_ ( _G_ ( _Z_ )))] (4) Secondly, the discriminator _D_ is optimized (the parameters of the generator _G_ are fixed, and the loss function of the discriminator is as follows: max _D_ _V_ ( _D, G_ ) = _Ex∼pdata_ ( _x_ )[log( _D_ ( _x_ ))] + _Ez∼p_ ( _z_ )[log(1 _−_ _D_ ( _G_ ( _Z_ )))] (5) Through adversarial learning, the generator and discriminator collaborate to produce data that closely imitate genuine data, which can compensate for the deficiency of insufficient samples. Convolutional neural networks The convolutional neural network originated from the study of the cerebral cortex vision capabilities and has been used in image recognition since the 1980s. At present, convolutional neural networks have achieved superhuman performance in some complex visual tasks <sup>33–36</sup> .The main structures of convolutional neural networks are convolutional layers, pooling layers, and fully connected layers. _Convolution layers._ The function of convolution layers is to extract image features. These layers are composed of several convolution units, and the parameters in the convolution unit are optimized by the backpropagation propagation algorithm. The convolution operation formula is as follows: _j_ _Xj_ <sup>_l_</sup> <sup>=</sup> ˆ <sup>(</sup> ∑ _i∈Mj_ ) (6) _Xi_ <sup>_l−_</sup> <sup>1</sup> _i_ <sup>_l−_</sup> <sup>1</sup> _· wij_ <sup>_l_</sup> <sup>+</sup> <sup>_b_</sup> _j_ <sup>_l_</sup> _j_ <sup>_l_</sup> <sup>represents the</sup> <sup>_j_</sup> <sup>th element of the th layer,</sup> <sup>_Mj_</sup> <sup>represents the</sup> <sup>_j_</sup> <sup>th convolution,</sup> <sup>_X_</sup> _i_ <sup>_l−_</sup> <sup>1</sup> In the formula, _Xj_ <sup>_l_</sup> In the formula, _Xj_ <sup>_l_</sup> <sup>represents the</sup> <sup>_j_</sup> <sup>th element of the th layer,</sup> <sup>_Mj_</sup> <sup>represents the</sup> <sup>_j_</sup> <sup>th convolution,</sup> <sup>_X_</sup> _i_ <sup>_l−_</sup> <sup>1</sup> represents the element, _wil_ <sup>_l_</sup> <sup>represents the weight matrix,</sup> <sup>_b_</sup> _j_ <sup>_l_</sup> <sup>represents the bias and</sup> <sup>_f_</sup> <sup>(</sup> <sup>_x_</sup> <sup>) represents the activation function.</sup> _j_ <sup>_l_</sup> <sup>represents the bias and</sup> <sup>_f_</sup> <sup>(</sup> <sup>_x_</sup> <sup>) represents the activation function.</sup> _i_ _il_ <sup>_l_</sup> <sup>represents the weight matrix,</sup> <sup>_b_</sup> _j_ <sup>_l_</sup> Fig. 1 . The structure of GAN. The commonly used activation function for convolution operation is _ReLU_, whose formula can be expressed as follows: _RELU_ ( _x_ ) = max(0 _, x_ ) (7) The _ReLU_ activation function introduces a nonlinear factor into the neural network so that the neural network can fit any nonlinear relationship. _Pooling layers_ . Pooling layers reduce the load and parameter amount by secondary sampling of the feature map. The pooling operation is mainly divided into maximum pooling and average pooling. Maximum pooling obtains local information to retain texture features, while average pooling retains overall features. The maximum pooling operation formula is as follows: _Pk_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> _k_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> = max _k_ ( _j−_ 1) _w_ +1 _<t<jw_ <sup>_{q_</sup> <sup>(</sup> <sup>_i,t_</sup> <sup>)</sup> _k_ (8) <sup>(</sup> <sup>_i,t_</sup> <sup>)</sup> _}, j_ = 1 _,_ 2 _, ..., m_ where _Pk_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> _k_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> represents the result of the pooling of the _j_ th output map in the _k_ th layer, _qk_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> _k_ <sup>(</sup> <sup>_i,j_</sup> <sup>)</sup> represents the local input feature of the pooling of the _k_ th layer. Fully-connected (FC) layers: Fully-connected layers are usually set after the last convolution and pooling, which act as a classifier within the network. The commonly used activation function for full connection is Softmax. The full connection operation formula is as follows: _y_ <sup>_k_</sup> = _σ_ ( _w_ <sup>_k_</sup> _x_ <sup>_k−_</sup> <sup>1</sup> + _b_ <sup>_k_</sup> ) (9) where _k_ represents the network layer number, _y_ <sup>_k_</sup> represents the output of the fully connected layer, _σ_ represents the Softmax activation function, _w_ <sup>_k_</sup> represents the weight coefficient, denotes one-dimensional vector input, and _b_ <sup>_k_</sup> represents bias. Residual neural network (ResNet) In order to address the problems of gradient dispersion and network degradation caused by deep convolution neural networks, He et al. <sup>37</sup> proposed Residual Neural Networks (ResNet). ResNet breaks the convention that the output of the n-1 layer of the neural network can only give the n layer as input. Instead, it enables the output of a certain layer to skip several layers and directly serve as the input of a later layer. The residual module is depicted in Fig. 2. The residual network operation formula is as follows: _H_ ( _x_ )= _F_ ( _x_ ) + _x_ (10) where _x_ represents identity mapping, _F_ ( _x_ ) denotes the represents mapping and _H_ ( _x_ ) represents the unknown mapping. Self-attention mechanism The Self-Attention mechanism enhances the sensitivity of a network model to important features. In normal circumstances, only certain parts of the input data are significant to impact the network’s performance. The mechanism assigns weights to various parts of the data, giving more attention to the key parts, thereby improving the overall performance of the model. The principle of this mechanism is illustrated in Fig. 3. The calculation formula of the Self-Attention mechanism is as follows: _Q_ = _XW_ <sup>_q_</sup> _K_ = _XW_ <sup>_k_</sup> _V_ = _XW_ <sup>_v_</sup> _Self_ _−_ _Attention_ ( _Q, K, V_ ) = _Soft_ max( <sup>_<u>QT</u>_</sup> _~~√~~_ _d_ <sup>_T_</sup> _k_ (11) ) _V_ (12) In the formula: _X_ represents the input data, _Q_ is the query vector, _K_ is the key vector, and _V_ is the value vector. _Q_, _K_ and _V_ are derived from linear transformations of the input data, and the obtained matrix is input into the Self-Attention mechanism. Firstly, the query vector _Q_ and the key vector _K_ are subjected to a matrix dot product, the result of which is divided by the scaling factor _√dk_ to prevent overly large values. Secondly, the Fig. 2 . The structure of ResNet. Fig. 3 . Schematic diagram of the Self-attentive mechanism. Softmax function normalizes the correlation to obtain the attention weights. Finally, these weights and the value vector _V_ are weighted and summed to produce the Self-Attention representation of the input data. The Self-Attention mechanism is effective in enhancing the model’s ability to extract global features. However, a single-head attention mechanism has limited feature capacity for learning complex features. In contrast, the Multi-head Self-Attention captures feature information from multiple subspaces of the input data. This enhancement allows the model to better grasp global features and long-range dependencies. Consequently, thus more effectively uncovering the underlying relationships between variables. The formula for calculating the Multi-head Self-Attention mechanism is as follows: _MultiHead_ ( _Q, K, V_ ) = _concat_ ( _H_ 1 _, H_ 2 _, ..., Hn_ ) _W_ (13) _Hi_ = _Self_ _−_ _Attention_ ( _Qi, Ki, Vi_ ) _, i_ = 1 _,_ 2 _, ..., h_ (14) In the formula: _h_ represents the number of heads in the Multi-head Self-Attention mechanism, _Hi_ represents the output of the _i_ attention mechanism. The operation “concat” refers to the concatenation of matrices, which splices the outputs from each single-head attention mechanism, and then fuses through a linear mapping with the weight matrix _W_, producing the output of the Multi-head Self-Attention mechanism. Framework of the proposed method To address the challenges of bearing fault feature extraction and the insufficient samples in complex environment, this paper proposes a bearing fault diagnosis method based on SAGAN_IResNet. The method begins with preprocessing the original vibration signals, converting the one-dimensional vibration data into two-dimensional time–frequency images. Subsequently, SAGAN is used to generate high-quality samples to solve the issue of insufficient bearing fault sample data. An improved residual network model for bearing fault diagnosis is then established and trained. The trained model is used to perform the bearing fault diagnosis task. The flow chart of the proposed method is shown in Fig. 4. The detailed fault detection steps are as follows: Step 1: Signal Acquisition and Processing. Obtain bearing vibration signals in various health states and segment the signals by overlapping sampling. In addition, the vibration signals are converted into time– frequency images via CWT, and the images are divided into training, validation and test. Step 2: Data augmentation based on SAGAN. A Self-Attention Generative Adversarial network (SAGAN) is built. Training set samples are used as input to train the SAGAN until the network converges. This training produces a new set of samples that closely resemble the original sample distribution, which is used to enrich the original data set and solve the problem of insufficient samples. Step 3: Fault diagnosis based on IResNet. To improve the accuracy of bearing fault diagnosis under conditions of strong noise and variable load, a bearing fault diagnosis model based on an improved residual network (IResNet) has been developed. Both the original sample and the generated samples in Step 2 are combined as input to train the diagnostic model. At the same time, the accuracy of the model is verified by the validation set, and the model parameters are fine-tuned until the network converges. Step 4: Diagnosis result analysis and visualization. The test data set obtained in Step 1 is input into the trained bearing fault diagnosis model to realize the bearing fault diagnosis task, and the diagnosis results are analyzed and discussed. CWT for time–frequency imaging In complex industrial production, the obtained bearing vibration signals contain a large number of nonstationary signals, which makes it difficult for generating and diagnostic models to extract effective features for Fig. 4 . The framework of the proposed method to realize the bearing fault diagnosi. sample generation and fault diagnosis. As a commonly used time–frequency analysis method, CWT converts one-dimensional time-domain vibration signals from into two-dimensional time–frequency images. This transformation integrates the frequency characteristics of fault signals from both time-domain and frequencydomain to effectively process non-stationary signals. For example, Tran et al. <sup>38</sup> proposed a motor fault detection model based on continuous wavelet transform and convolutional attention neural network. Liang et al. <sup>27</sup> proposed a rotating machinery fault detection method based on wavelet transform (WT), generative adversarial networks (GANs) and convolutional neural networks (CNN), which addressed the issue of insufficient samples. Data augmentation based on SAGAN Most GAN-based data generation models are constructed by convolutional neural networks. The convolution operation is used to process information within local neighborhood, so it is inefficient to use the convolution layer alone to model the long-distance relationships within images. In order to solve this problem, Zhang et al. Fig. 5 . The architecture of the generator. Fig. 6 . The architecture of the discriminator. proposed the Self-Attention generative adversarial networks (SAGANs) <sup>39</sup>, which allow attention-driven longterm dependence modeling for image generation tasks. The Self-Attention mechanism shows a better balance between long-term dependent modeling capabilities and computational efficiency. By incorporating the SelfAttention mechanism, the generator can draw an image, where the fine details of each position are carefully coordinated with the fine details of the distant part of the image. In addition, the discriminator can also impose complex geometric constraints on the global image structure: _LD_ = _−E_ ( _x,y_ ) _∼Pdata_ [min(0 _, −_ 1 + _D_ ( _x, y_ ))] _−_ _Ez∼pz_ _,y∼pdata_ [min(0 _, −_ 1 _−_ _D_ ( _G_ ( _z_ ) _, y_ ))] (15) _LG_ = _−Ez∼pdata,y∼pdata_ _D_ ( _D_ ( _z_ ) _, y_ ) (16) In addition to Self-Attention, SAGAN introduces spectrum normalization to stabilize the training of the model and avoid abnormal gradients. Compared with other normalization techniques, spectrum normalization does not require additional hyper parameter adjustment, and has a relatively low computational cost. Leveraging the strengths of SAGAN in image generation, we use SAGAN as the data augmentation method to solve the problem of insufficient fault samples. The schematic diagram of the generator and discriminator structure is shown in Figs. 5 and 6, respectively. The generator G starts with a uniform distribution noise variable Z, which is projected and reshaped into a convolutional feature map representation. Then, time–frequency image samples of size (63, 64, 3) are generated through a five-layer transposed convolution operation. Each layer of the transposed convolution has a kernel size of 4 and a stride of 2, with channel counts of 512, 256, 128, 64, and 3 respectively. The first four layers of transposed convolution are processed by using spectrum normalization and the ReLU activation function. From the 3rd to the 4th layers of convolution, the attention mechanism is used to obtain the global dependencies. The activation function of the fifth layer is the Tanh function. In the discriminator D, there are five convolution layers with a convolution kernel size of 4, a stride of 2, and channel counts of 64, 128, 256, 512, and 1, respectively. After each convolution, spectrum normalization and the LeakyReLU activation function are applied. During the SAGAN training, model parameters are updated iteratively based on the aforementioned loss function. The batch size is set at 16. The RMSprop optimizer is used with a learning rate of 0.0005 for both the generator and discriminator, which are alternately trained until convergence. Fault diagnosis based on IResNet Convolutional neural networks can effectively capture local information of images through convolutional operations, but visual tasks require establishing long-distance dependencies. In order to globally aggregate the responses from locally captured filters, the network structure needs to be stacked with multiple layers. However, increasing the number of layers can lead to issues such as gradient dispersion or explosion, and network degradation, which seriously impacts the accuracy of the model. In order to solve the above problems, we improve the residual network by integrating the Multi-head Self-Attention mechanism (with 4 heads) into the residual network structure. The residual network deepens the network layers through residual learning, enabling it to obtain deep features, and alleviate the problem of network degradation caused by high network layers in convolutional neural networks. The Multi-head Self-Attention mechanism facilitates the capture of long-distance dependency relationships and global features of images by processing and aggregating feature information captured through convolution. This hybrid design is beneficial for improving the ability of key feature extraction in the model, thus achieving network control of global information, improving the accuracy of bearing fault diagnosis under conditions of strong noise and variable loads. Fig. 7 . The structure of IResNet. Fig. 8 . The structure of bearing fault diagnosis model based on IResNet. As illustrated in Fig. 7, the Multi-head Self-Attention mechanism (MHA) replaces the traditional convolution (3 × 3) operation within the residual network to achieve global Self-Attention on the 2D feature map. By improving the residual network module, the long-distance dependence and global feature information are obtained, and the problems of gradient dispersion and network degradation are also solved. The improved residual formula is as follows: _H_ ( _x_ ) <sup>_∗_</sup> = _MultiHead_ ( _Q_ <sup>_∗_</sup> _i_ _i_ <sup>_∗, V_</sup> _i_ <sup>_∗_</sup> <sup>_∗_</sup> _i_ <sup>_, K_</sup> _i_ <sup>_∗_</sup> _i_ <sup>_∗_</sup> <sup>) +</sup> <sup>_x, i_</sup> <sup>= 1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_,_</sup> <sup>3</sup> <sup>_, ..., h_</sup> (17) In the formula: _x_ is the input data, _x_ <sup>_∗_</sup> is the output of the input data after convolution, _h_ is the number of heads of the Self-Attention mechanism, _Q_ <sup>_∗_</sup> _i_ <sup>,</sup> <sup>_K_</sup> _i_ <sup>_∗_</sup> <sup>,</sup> <sup>_V_</sup> _i_ <sup>_∗_</sup> <sup>are the matrices obtained by linear transformation of the</sup> heads of the Self-Attention mechanism, _Q_ <sup>_∗_</sup> _i_ <sup>,</sup> <sup>_K_</sup> _i_ <sup>_∗_</sup> <sup>,</sup> <sup>_V_</sup> _i_ <sup>_∗_</sup> <sup>are the matrices obtained by linear transformation of the</sup> data _x_ <sup>_∗_</sup> .The obtained matrix is input into the Multi-head Self-Attention mechanism function to obtain the SelfAttention representation of the input data. Finally, the input and output are added element by element through the jump connection. The bearing fault diagnosis model based on IResNet is mainly composed of convolution layers, pooling layers, improved residual block A, block B, and fully-connected layers. The network structure is shown in Fig. 8. Firstly, after two stages of convolution and maximum pooling operations, the convolution operation can effectively learn abstract and low-resolution features from the image, while maximum pooling retains the main features of the data and removes redundant information. Subsequently, the improved residual modules block A and block B deepen the number of network layers. Additionally, the Multi-head Self-Attention mechanism is introduced into the residual network, which not only avoids issues such as gradient dispersion, gradient explosion, and network degradation caused by the increased depth of network layers, but also enables the network to acquire global features and long-range dependencies efficiently. Finally, dropout is also incorporated between the two fully-connected to enhance the generalization ability and prevent overfitting, and the Softmax layer is used as <sup>_∗_</sup> _i_ <sup>,</sup> <sup>_K_</sup> _i_ <sup>_∗_</sup> _i_ <sup>_∗_</sup> <sup>,</sup> <sup>_V_</sup> _i_ <sup>_∗_</sup> <u>Operation</u> <u>Input shape</u> <u>Kernel size</u> <u>Stride size</u> <u>Output shape</u> <u>Input layer</u> <u>64 × 64 × 3</u> <u>–</u> <u>–</u> <u>–</u> <u>Convolutional layer</u> <u>64 × 64 × 3</u> <u>5 × 5 × 32</u> <u>1</u> <u>64 × 64 × 32</u> <u>Pooling layer</u> <u>64 × 64 × 32</u> <u>2 × 2</u> <u>2</u> <u>32 × 32 × 32</u> <u>Convolutional layer</u> <u>32 × 32 × 32</u> <u>3 × 3 × 64</u> <u>1</u> <u>32 × 32 × 64</u> <u>Pooling layer</u> <u>32 × 32 × 64</u> <u>2 × 2</u> <u>2</u> <u>16 × 16 × 64</u> <u>IResNet_A</u> <u>16 × 16 × 64</u> <u>(3 × 3) / MHA(4)</u> <u>1/0</u> <u>16 × 16 × 64</u> <u>Pooling layer</u> <u>16 × 16 × 64</u> <u>2 × 2</u> <u>2</u> <u>8 × 8 × 64</u> <u>IResNet_B</u> <u>8 × 8 × 64</u> <u>(1 × 1) / MHA(4)/(1 × 1)</u> <u>1/0/1</u> <u>8 × 8 × 128</u> <u>Pooling layer</u> <u>8 × 8 × 128</u> <u>2 × 2</u> <u>2</u> <u>4 × 4 × 128</u> <u>IResNet_B</u> <u>4 × 4 × 128</u> <u>(1 × 1) / MHA(4) /(1 × 1)</u> <u>1/0/1</u> <u>4 × 4 × 256</u> <u>Pooling layer</u> <u>4 × 4 × 256</u> <u>2 × 2</u> <u>2</u> <u>2 × 2 × 256</u> <u>Fully-connected layer</u> <u>1024</u> <u>–</u> <u>–</u> <u>256</u> <u>Fully-connected layer</u> <u>256</u> <u>–</u> <u>–</u> <u>10</u> Table 1 . Model parameter settings of IResNet. Fig. 9 . CWRU rolling bearing experimental platform by <sup>40</sup> . a classifier to facilitate fault diagnosis. The fault diagnosis model is trained using a batch size of 32 and over 30 epochs. Cross-entropy loss is utilized as the error loss function, with Adam as the optimizer. The learning rate is set at 0.001. The learning rate attenuation mechanism is employed to fine-tune the learning rate, optimize training effectiveness, and minimize training costs. The model parameter settings are shown in Table 1. Experimental verification To verify the effectiveness and superiority of the method proposed in this paper, experimental verification has been carried out for two bearing datasets: the bearing dataset of Case Western Reserve University <sup>40</sup>, the bearing dataset of Southeast University <sup>41</sup> and the bearing dataset of Jiangnan University <sup>42</sup> . Case 1: CWRU bearing dataset _Experiment setup and data preprocess_ The experimental dataset was sourced from the Case Western Reserve University (CWRU) Bearing Data Center. The experimental equipment is shown in Fig. 9, and the test bench is composed of a motor, rolling bearings, a torque transducer, and a dynamometer <sup>40</sup> . The test bearing model are SKF6205 motor bearings. Faults in the bearing, including the inner ring (IR), outer ring (OR), and ball (BD), have been machined through Electrical Discharge Machining (EDM). The fault diameters are 0.1778 mm, 0.3556 mm, and 0.5334 mm for each kind of fault bearing, respectively. During the experiments, the motor was subjected to various load conditions: 0HP, 1HP, 2HP and 3HP, the sampling frequency was set at 12 kHz. The signal is intercepted by overlapping sampling. The overlapping sampling operation formula is as follows: _N_ = <sup>_<u>L −</u>_</sup> <sup>_<u>L</u>_</sup> <sup><u>1</u></sup> + 1 (18) _d_ where _N_ is the total number of one-class samples, _L_ is the total length of the one-dimensional signal, _L_ 1 is the length of each signal segment, and _d_ is the step length determining the degree of overlap between consecutive segments. The statistics of the dataset are described in Table 2. The dataset contains 10 fault categories, and the number of data samples for each fault category is 1000, including 800 training samples, 100 validation samples, and 100 test samples. Additionally, the number of data points for each data sample is 1024. <u>Types</u> <u>Condtion</u> <u>Fault size(mm)</u> <u>Length</u> <u>Train/Valid/Test</u> <u>0</u> <u>IR007</u> <u>0.18</u> <u>1024</u> <u>800/100/100</u> <u>1</u> <u>IR014</u> <u>0.36</u> <u>1024</u> <u>800/100/100</u> <u>2</u> <u>IR021</u> <u>0.53</u> <u>1024</u> <u>800/100/100</u> <u>3</u> <u>OR007</u> <u>0.18</u> <u>1024</u> <u>800/100/100</u> <u>4</u> <u>OR014</u> <u>0.36</u> <u>1024</u> <u>800/100/100</u> <u>5</u> <u>OR021</u> <u>0.53</u> <u>1024</u> <u>800/100/100</u> <u>6</u> <u>B007</u> <u>0.18</u> <u>1024</u> <u>800/100/100</u> <u>7</u> <u>B014</u> <u>0.36</u> <u>1024</u> <u>800/100/100</u> <u>8</u> <u>B021</u> <u>0.53</u> <u>1024</u> <u>800/100/100</u> <u>9</u> <u>Normal</u> <u>0</u> <u>1024</u> <u>800/100/100</u> Table 2 . The experiment dataset. Fig. 10 . 1D vibration signals are converted into 2D time–frequency images. The original vibration signal is converted into a two-dimensional time–frequency diagram by CWT, and the results are shown in Fig. 10. After CWT, the time–frequency domain characteristics of the signal are fully obtained, which is conducive to subsequent data expansion and fault diagnosis processes. _Experimental environment and training parameter configuration_ The experiments were conducted on a Windows 10 operating system with a Tesla T4 GPU, utilizing the PyTorch deep learning framework. During training, the input image resolution was set to 64 × 64, with a batch size of 32 and 30 training epochs. The initial learning rate was 0.001, and the cross-entropy loss function was employed as the optimization objective. The Adam optimizer was adopted, coupled with StepLR scheduler to dynamically adjust the learning rate: the learning rate was halved every 10 epochs. Fig. 11 . Generated images of different training epochs. Fig. 12 . Comparison of generated images of different models. _Data generation experiment based on SAGAN_ In this experiment, the data generation method based on SAGAN is combined with a traditional CNN fault diagnosis model to explore the impact of synthetic sample generation on the accuracy of bearing fault diagnosis. Figure 11 displays the sample images generated by SAGAN of different fault types at the training epochs of 50, 100, and 300. Initially, at 50 epochs, image backgrounds were blurry and clarity was inconsistent. By 100 epochs, some features of the time–frequency image were roughly represented, though the background clarity still required improvement. At 300 epochs, the image clarity is high, and the generated samples and the original samples have similar feature distributions, but there are still slight differences because the generated samples are obtained by the model learning and training from real samples, not merely simple image replication. Based on these observations, the training epoch count for SAGAN is set at 300 for optimal image quality. The generated images by various Generative Adversarial Networks (GANs) are shown in Fig. 12. From the figure, it can be observed that the basic outline of the original samples can be learned by GAN, but the generated samples exhibit significant differences from the real samples. With DCGAN, the similarity between the generated samples and the real samples improves compared to GAN, but the images appear blurry, indicating insufficient learning of fault features. In contrast, SAGAN generates images that are more similar to the original ones, capturing most of the original sample’s features. This improvement demonstrates that incorporating the Self-Attention mechanism significantly enhances the model’s capability to learn global feature information. In the sample generation task, Pearson correlation coefficient is often used to detect the quality of sample generation. This coefficient measures the linear relationship between two variables; a coefficient close to Fig. 13 . Comparison of image correlation coefficients. <u>No</u> <u>Real images</u> <u>Generated image</u> <u>Validation set</u> <u>Testing set</u> <u>Accuracy/%</u> <u>1</u> <u>8000</u> <u>0</u> <u>1000</u> <u>1000</u> <u>99.900</u> <u>2</u> <u>0</u> <u>500</u> <u>1000</u> <u>1000</u> <u>92.567</u> <u>3</u> <u>0</u> <u>1000</u> <u>1000</u> <u>1000</u> <u>95.233</u> <u>4</u> <u>0</u> <u>2000</u> <u>1000</u> <u>1000</u> <u>95.733</u> <u>5</u> <u>0</u> <u>4000</u> <u>1000</u> <u>1000</u> <u>97.100</u> <u>6</u> <u>0</u> <u>6000</u> <u>1000</u> <u>1000</u> <u>98.467</u> <u>7</u> <u>0</u> <u>8000</u> <u>1000</u> <u>1000</u> <u>98.500</u> <u>8</u> <u>8000</u> <u>500</u> <u>1000</u> <u>1000</u> <u>99.920</u> <u>9</u> <u>8000</u> <u>1000</u> <u>1000</u> <u>1000</u> <u>99.925</u> <u>10</u> <u>8000</u> <u>2000</u> <u>1000</u> <u>1000</u> <u>99.933</u> <u>11</u> <u>8000</u> <u>4000</u> <u>1000</u> <u>1000</u> <u>99.966</u> <u>12</u> <u>8000</u> <u>6000</u> <u>1000</u> <u>1000</u> <u>100</u> <u>13</u> <u>8000</u> <u>8000</u> <u>1000</u> <u>1000</u> <u>100</u> Table 3 . Accuracy of diagnosis comparison under different datasets. 1 indicates a strong linear relationship. The Pearson correlation coefficient is used to analyze the correlation between the generated sample and the original sample. The analysis results are shown in Fig. 13. The analysis illustrates that SAGAN’s sample generation capabilities are substantially superior to those of both standard GAN and DCGAN, highlighting its effectiveness in producing high-quality, realistic samples. In order to verify the influence of the number of generated images on the accuracy of bearing fault diagnosis, the experiment is divided into three categories: the first category does not perform data expansion, and only uses the original data for model training (experiment 1); the second category only uses the generated data for training (experiment 2–7); the third category uses data expansion to combine the original data with the generated data to jointly train the model (experiment 8–13). The experimental results are shown in Table 3. It can be seen from the table that when the original data and the generated data are combined, the diagnostic accuracy is significantly improved. Notably, there is a clear trend showing that accuracy increases as more generated images are added to the training dataset. Specifically, when 6000 generated images are added to 8000 original samples, the accuracy rate reaches 100%. Based on these findings, subsequent experiments were conducted based on the original sample size of 8000 and the generated sample size of 6000 to further validate the benefits of this approach. The generated data and the original data are used as the input of the CNN fault diagnosis model to train the network. The training process is shown in Fig. 14. It can be seen from the figure that after data expansion, the convergence speed of model training is obviously accelerated and the convergence is more stable. Therefore, using data generation technology to train the model by combining real data with generated data can significantly improve the stability of model training and the accuracy of bearing fault diagnosis. _The influence of network depth on diagnostic accuracy_ In actual industrial production, bearing environments are typically intricate, and signals collected are often compromised by different types of noise. Therefore, varying degrees of Gaussian white noise are added to the original signal to simulate noise pollution in the industrial environment. The signal-to-noise ratio (SNR) serves as a benchmark for assessing noise intensity, which is defined as follows: Fig. 14 . The influence of data expansion on model accuracy and loss. Fig. 15 . Recognition accuracy of different depth networks in noisy environment. _SNRdB_ = 10 log10 _Pnoise_ ( _<u>Psignal</u>_ _Pnoise_ ) (19) where _Psignal_ and _Pnoise_ are the power of the signal and the noise, respectively. The more noise contained in the signal, the smaller the SNR value. At 0 dB SNR, signal and noise energy are equal. While theoretically, deeper network layers can lead to higher model accuracy, they also increase the complexity and training time of the model. To find a balance between fault diagnosis accuracy, network complexity, and model training time, this paper proposes four different depths of improved residual network structures combined with traditional CNN, referred to as CNN, CNNI, CNNII, CNNIII, and CNNIV when the number of IResNet modules is 0, 1, 2, 3 and 4, respectively. To minimize the influence of random factors on experimental results, the final accuracy of each model is the average of 5 repeated experimental runs, as shown in Fig. 15. It can be seen that CNNI, with one IResNet module, significantly improves the performance of bearing fault diagnosis in noisy environments compared to the basic CNN. However, as the network depth increases further, the gains in diagnostic accuracy diminish progressively, suggesting a diminishing return on deeper configurations. This pattern underscores the importance of striking an optimal balance when designing network architectures for practical applications, particularly in settings characterized by significant noise interference. To provide a clearer understanding of how network depth affects fault diagnosis accuracy and training time, Fig. 16 shows the experimental results and average training time of these four different depth models across various noise environments (SNR levels of – 8, – 6, and – 4). As the network depth increases, the model training time increases, but the bearing fault diagnosis performance reaches its peak with CNNIII when the number of IResNet modules stacked on the model is 3. On the basis of the comprehensive analysis of model accuracy and training time, it is determined to use an improved residual network stacked with three IResNet modules for effective bearing fault diagnosis. Fig. 16 . Comparison of model accuracy and training time. Fig. 17 . Recognition accuracy of different heads in noisy environment. _The influence of the number of heads on diagnostic accuracy_ In order to verify the influence of the number of heads of the Multi-head Self-Attention on the performance of the model, this section adds the verification experiment of the number of heads, and sets the number of heads of the Multi-head Self-Attention to 1, 2, 3, 4, 8 respectively. The experimental results are shown in Fig. 17. From the graph, as the number of heads increases from 1 to 4, the diagnostic performance of the model under different signal-to-noise ratios is systematically improved. However, when the number of heads is increased to 8, the performance of the model decreases, and the noise robustness of the model is optimal when the number of heads is 4. Based on this, this paper finally chooses 4-head attention mechanism as the core module of SAGAN_ IResNet. The training and validation curves of the proposed method are illustrated in Fig. 18. As depicted, the diagnostic accuracy exhibits rapid growth during the initial training phase. When the epoch reaches 5–15, minor fluctuations emerge in the training accuracy, likely attributed to the model’s exploration of optimal feature representations. Beyond 15 epochs, both training and validation accuracies stabilize, indicating effective convergence and sufficient model training. Fig. 18 . The model training and validation curves of SAGAN_IResNet. Fig. 19 . The average accuracy of different models in noisy environment. _Performance comparison under noise environment_ This section aims to evaluate the robustness of the proposed method in noisy environments. To simulate bearing vibration signals acquired in noisy environments, Gaussian white noise with signal-to-noise ratios (SNRs) ranging from – 8 dB to 6 dB is added to the original vibration signals. The proposed method is compared with SVM, MLP, DRL_ResNet <sup>43</sup>, SECNN <sup>22</sup>, DFCNN <sup>44</sup>, Improved ResNet <sup>45</sup>, CNN-LSTM-Attention <sup>46</sup>, CNN, and SAGAN_CNN. Among them, CNN is a bearing fault diagnosis model based on convolutional neural networks. SAGAN_CNN first uses SAGAN to generate sample data, increase the number of samples, and then uses the CNN model to achieve fault diagnosis. In order to reduce the influence of random factors, the final result of each method is the average of five repeated experimental results, as shown in Fig. 19. As the noise intensity increases, the average recognition accuracy of all diagnostic algorithms decreases, but there are significant differences in the magnitude of the decrease among different algorithms. The average accuracy of the proposed method in a strong noise environment reaches 97.13%, which improved by 11.7%, 14.86%, 3.32%, 0.97%, 0.51%, 1.56%, 0.73%, 4.45%, and 4.21% compared to the other methods, respectively. By improving the residual network and introducing the Multi-head Self-Attention mechanism, the model can learn sample features to the maximum extent, reduce noise interference, enhance network robustness, and improve the accuracy of bearing fault diagnosis. To ensure that the proposed method does not excessively favor the identification of a single fault type, the confusion matrix is used to analyze the classification results of the test set. According to Fig. 20a, at an SNR of 6, the accuracy of the test set reaches 99.9%. There is only one instance where a sample labeled B021 is Fig. 20 . Confusion matrix of diagnostic results in different noise environments. Fig. 21 . Visualization of feature vectors at different positions. misdiagnosed as B007. Although the specific fault scale identification is incorrect, the misdiagnosed sample still falls within the category of rolling element fault. It can be seen from Fig. 20b that in the high noise environment with an SNR of – 8, the overall diagnostic accuracy of this method is higher at over 86%, indicating strong robustness. Furthermore, t-SNE technology is used to reduce the dimensionality of high-dimensional features and realize the visualization of feature vectors <sup>47</sup> . Figure 21a is the visualization result of the convolutional feature t-SNE at the second layer. The data overlap and mix with each other indicate a poor clustering effect at this stage of the model. In contrast, Fig. 21b is the result of feature visualization of the last layer of IResNet module. All samples have been basically divided into ten distinct categories. The clear aggregation effect of each sample group demonstrates that the improved residual neural network, with the integration of Multi-head Self-Attention, can maximize the learning of sample features and significantly enhance the fault diagnosis performance of the model. These visualizations effectively illustrate how the model evolves to better discriminate between different fault types as it processes through its layers, culminating in a highly effective fault classification by the final layer. _Performance comparison across different load domains_ In actual industrial environments, the load conditions of bearings are variable, which requires fault diagnosis methods to have high generalization performance. To assess the generalization capabilities of the proposed method, it was compared against several established models: SVM, MLP, SECNN, DRL_ResNet, DFCNN, Improved ResNet, CNN-LSTM-Attention, CNN and SAGAN_CNN. The fault diagnosis results of each method under variable load conditions are shown in Fig. 22. The analysis reveals that SVM and MLP exhibit lower accuracy in bearing fault diagnosis under variable load conditions, which points to their poor generalization capabilities. In contrast, the proposed method in this paper achieves an average accuracy of 93.69%. This represents performance improvements of 2.73%, 1.22%, 4.16%, 2.84%, 3.54%, 2.88% and 1.9% over SECNN, DRL_ResNet, DFCNN, Improved ResNet, CNN-LSTM-Attention, CNN, and SAGAN_CNN respectively. The proposed method exhibits the strong generalization capability and is suitable for bearing fault diagnosis in environments with variable loads. Fig. 22 . The average accuracy of different models in the variable load domain. <u>Types</u> <u>Load</u> <u>Condtion</u> <u>Length</u> <u>Train/Valid/Test</u> <u>0</u> <u>20 Hz-0 V</u> <u>20_ball</u> <u>1024</u> <u>800/100/100</u> <u>1</u> <u>20 Hz-0 V</u> <u>20_comb</u> <u>1024</u> <u>800/100/100</u> <u>2</u> <u>20 Hz-0 V</u> <u>20_inner</u> <u>1024</u> <u>800/100/100</u> <u>3</u> <u>20 Hz-0 V</u> <u>20_normal</u> <u>1024</u> <u>800/100/100</u> <u>4</u> <u>20 Hz-0 V</u> <u>20_outer</u> <u>1024</u> <u>800/100/100</u> <u>5</u> <u>30 Hz-2 V</u> <u>30_ball</u> <u>1024</u> <u>800/100/100</u> <u>6</u> <u>30 Hz-2 V</u> <u>30_comb</u> <u>1024</u> <u>800/100/100</u> <u>7</u> <u>30 Hz-2 V</u> <u>30_inner</u> <u>1024</u> <u>800/100/100</u> <u>8</u> <u>30 Hz-2 V</u> <u>30_normal</u> <u>1024</u> <u>800/100/100</u> <u>9</u> <u>30 Hz-2 V</u> <u>30_outer</u> <u>1024</u> <u>800/100/100</u> Table 4 . The experiment dataset of Southeast University. Case 2: Southeast university gearbox dataset _Experiment setup and data preprocessing_ The gear data set of Southeast University comes from the open source data of Southeast University. The test bench is composed of a variable speed motor, motor controller, planetary gearbox, parallel shaft gearbox, brake, and brake controller <sup>41</sup> . The vibration signal is measured by a driveline dynamic simulator (DDS). The fault types are divided into five types: normal, ball fault, comb fault, inner ring fault and outer ring fault. These fault types are artificially set in the laboratory and can simulate the basic faults in the machinery. Regarding the operational parameters of the equipment, the speed-load settings vary between 20 Hz at 0 V and 30 Hz at 2 V. The data is processed using overlapping sampling, with each fault category represented by 1,000 single-class samples, each with a signal segment length of 1,024. The dataset is organized into training, validation, and test sets with a distribution ratio of 8:1:1. This allocation is detailed in Table 4, which provides a statistical description of the dataset. The vibration signal is converted into a time–frequency image using CWT, and the results are shown in Fig. 23. _Experimental results and performance comparison_ The 8000 original training samples and 6000 pseudo-samples are used to train the classification model. To mitigate the effects of anomalies and ensure the robustness of the results, each experiment was conducted five times. The average accuracy from these trials was computed and compared with that achieved by the improved method. The findings are presented in Fig. 24, which clearly shows that the SAGAN_IResNet method yields the highest accuracy among the tested approaches. By improving the fault classification model, the residual network is combined with the Multi-head Self-Attention mechanism to learn the sample features to the greatest extent, and the model performance is optimized as much as possible. Fig. 23 . Time–frequency images of ten fault categories. Fig. 24 . Classification accuracy of the five trials in testing samples. The detailed performance comparison of different diagnostic methods in a noisy environment is shown in Fig. 25. As can be seen from the figure, the method proposed in this paper demonstrates excellent robustness and anti-interference performance. When the signal-to-noise ratio (SNR) is 2, the fault diagnosis accuracy of this method reaches as high as 97.2%. Compared with other methods, there is a significant improvement in accuracy, which fully demonstrates its outstanding advantages and application value in a noisy environment. Displayed in Fig. 26 is the comprehensive confusion matrix for the SAGAN_IResNet model under SNR conditions of 0 and 6. Notably, at an SNR of 0, this method yields an impressive average fault diagnosis rate of 95%. Similarly, under an SNR of 6, the model’s fault accuracy reaches 98.42%, showcasing its ability to adeptly learn fault features and accurately identify health statuses. The fault feature learning results of the proposed method are shown in Fig. 27, which showcases the effects of increasing network depth on the classification of fault features. Initially, after CNN layer feature extraction, the results are visualized in Fig. 27a, the samples have a tendency to aggregate, but the clustering effect remains suboptimal, indicating some overlap and unclear boundaries between different fault categories. By superimposing the IResNet module, the number of network layers is gradually deepened, as shown in Fig. 27b, which significantly expands the distribution distance of fault features among different health conditions and makes the feature classification boundary clear and distinguishable. Case 3: Jiangnan university bearing dataset _Experiment setup and data preprocessing_ To verify the universality of the method proposed in this paper, the bearing dataset of Jiangnan University is used for verification <sup>42</sup> . This data was collected under the conditions of a sampling frequency of 50 kHz and rotation speeds of 600 r/min, 800 r/min, and 1000 r/min. The bearing dataset with a frequency of 50 kHz and a rotation speed of 800 r/min is adopted as the experimental data. According to the fault location, the bearing data is divided into four states: normal (N), inner ring (IR), outer ring (OR), and rolling element (TB). The signals are intercepted by means of overlapping sampling. The number of samples of a single class is 1000, and the signal length is 1024. The ratio of the training set, verification set, and test set is 8:1:1. The parameters of Fig. 25 . The average accuracy of different models in noisy environment. Fig. 26 . Confusion matrix of diagnostic results in different noise environments. Fig. 27 . Visualization of feature vectors at different positions. <u>Types</u> <u>Condtion</u> <u>Length</u> <u>Train/Valid/Test</u> <u>0</u> <u>N</u> <u>1024</u> <u>800/100/100</u> <u>1</u> <u>IR</u> <u>1024</u> <u>800/100/100</u> <u>2</u> <u>OR</u> <u>1024</u> <u>800/100/100</u> <u>3</u> <u>TB</u> <u>1024</u> <u>800/100/100</u> Table 5 . The experiment dataset of Jiangnan University. Fig. 28 . Time–frequency images of four fault categories. Fig. 29 . Classification accuracy of the five trials in testing samples. the experimental dataset are shown in Table 5. The image of each type of fault signal after continuous wavelet transform is shown in Fig. 28. _Experimental results and performance comparison_ To verify the effectiveness of the proposed method, a comparative experiment was conducted between SAGAN_ IResNet and the method before the improvement. The experimental results are shown in Fig. 29. It can be seen from the figure that the traditional convolutional neural network (CNN) performs poorly in terms of fault diagnosis performance. However, after the introduction of the sample generation technology, the bearing fault diagnosis performance has significantly improved. It is worth noting that the method proposed in this paper performs the best in terms of fault diagnosis performance, fully demonstrating its remarkable advantages in improving the accuracy and reliability of fault diagnosis. The model proposed in this paper was respectively compared with SVM, MLP, DRL_ResNe, SECNN, DFCNN, Improved ResNet, CNN-LSTM-Attention, CNN, and SAGAN_CNN in comparative tests under noise conditions, and the results are shown in the Fig. 30. It can be seen from the figure that the method proposed in this paper has stronger noise resistance and practicality compared with other models. According to the speed, the data is divided into three loads of 0, 1 and 2 to carry out the model variable load comparison experiment. The proposed method is compared with SVM, MLP, DRL_ResNet, SECNN, DFCNN, Improved ResNet, CNN-LSTM-Attention, CNN, and SAGAN_CNN, respectively. The experimental results are shown in the Fig. 31. It can be seen from the figure that the method proposed in this paper has high accuracy of bearing fault diagnosis under variable load and good generalization performance of the model. Fig. 30 . The average accuracy of different models in noisy environment. Fig. 31 . The average accuracy of different models in noisy environment. Conclusion In this paper, an intelligent bearing fault diagnosis method named SAGAN_IResNet is proposed to overcome challenges in feature extraction and insufficient bearing fault data in complex industrial environments. The main conclusions of this study are as follows: (1) SAGAN is utilized to generate high-quality bearing fault data, effectively addressing the issue of insufficient fault diagnosis datasets. The proposed data enhancement method demonstrates notable applicability, leading to a significant improvement in the accuracy of bearing diagnosis after data enhancement. (2) An improved residual network (IResNet) is used to construct the bearing fault diagnosis model, combining a Multi-head Self-Attention mechanism with the residual network to solve the problems related to gradient dispersion and network degradation. The method enables adaptive acquisition of long-distance correlation and global feature information, resulting in an average fault diagnosis accuracy of 97.13% in strong noise environments. This performance marks a 4.21% increase compared to SAGAN_CNN, showing strong robustness. (3) The experimental results under variable load conditions have underscored the efficacy of the proposed bearing fault diagnosis method, which achieves an accuracy rate of 94.14%. This performance not only demonstrates the method’s robustness but also its superior generalization capabilities when compared to other fault diagnosis models. In summary, the proposed method stands out due to its ability to generate high-quality bearing fault data, effectively address the challenge of insufficient samples, and maintain robust performance under conditions of strong noise and variable loads. These attributes make it highly suitable for practical applications in bearing fault diagnosis. By integrating advanced data generation techniques and leveraging a sophisticated model architecture that includes improved residual networks and Multi-head Self-Attention, the method enhances the accuracy and reliability of fault detection in real-world industrial settings. Although the research in this paper has achieved certain results, in order to further promote its implementation in industrial scenarios, the authors will further explore the adaptability of the model proposed in this paper in online learning scenarios to cope with new fault modes or load conditions that may arise in bearing fault diagnosis; at the same time, we will further study the embedded deployment of this model in real-time monitoring systems to achieve faster and more accurate fault detection and early warning. Data availability Data availability The CWRU datasets and Southeast University Gearbox datasets analysed in the current study are available at ​h​t​t​p​s​: ​ /​/​e​n​g​i ​ n​e​e​r​i​n ​ g​.​c​a​s​e ​ [.​e​d​u​/b​e​a​r​i​n](https://engineering.case.edu/bearingdatacenter/download-data-file) ​ ​ g​d​a​t​a​c ​ e​n​t​e​r​/d​o​w​n​l​o​a​d​-​d​a​t​a​-​f ​ il​e ​ and ​h​t​t​p​s​: ​ / ​ [/​g​i​t​h​u](https://github.com/hustcxl/Rotating-machine-fault-data-set/blob/master/doc/SEU.md) ​ b​.​c​o ​ m​/​h​u​s​t ​ c ​ x​l​/​R ​ o​t​a​t​i ​ n​g​-​m​a​c ​ h ​ i​n​e​-f​a ​ ​ u​l​t ​ - ​ [d​a​t​a](https://github.com/hustcxl/Rotating-machine-fault-data-set/blob/master/doc/SEU.md) ​ -​s​e​t ​ /​bl​o​b​/​m ​ ​ a​s​t ​ e​r​/​d ​ o​c​/​S​E​U​.​m​d. Received: 15 January 2025; Accepted: 19 August 2025 References 1. Li, C. et al. A systematic review of fuzzy formalisms for bearing fault diagnosis. _IEEE Trans. Fuzzy Syst._ 27 (7), 1362–1382 (2018). 2. Umar, M. et al. Milling machine fault diagnosis using acoustic emission and hybrid deep learning with feature optimization. _Appl._ _Sci._ 14 (22), 10404 (2024). 3. Li, C. et al. Adaptive single-mode variational mode decomposition and its applications in wheelset bearing fault diagnosis. _Meas._ _Sci. Technol._ 33 (12), 125008 (2022). 4. Li, H., Huang, J. & Ji, S. Bearing fault diagnosis with a feature fusion method based on an ensemble convolutional neural network and deep neural network. _Sensors_ 19 (9), 2034 (2019). 5. Zhang, X. et al. Research on diagnosis algorithm of mechanical equipment brake friction fault based on MCNN-SVM. _Measurement_ 186, 110065 (2021). 6. Hsiao, T. & Weng, M. C. A hierarchical multiple-model approach for detection and isolation of robotic actuator faults. _Robot._ _Auton. Syst._ 60 (2), 154–166 (2012). 7. Xu, X., Qiao, Z. & Lei, Y. Repetitive transient extraction for machinery fault diagnosis using multiscale fractional order entropy infogram. _Mech. Syst. Signal Process._ 103, 312–326 (2018). 8. Jia, F. et al. Deep neural networks: A promising tool for fault characteristic mining and intelligent diagnosis of rotating machinery with massive data. _Mech. Syst. Signal Process._ 72, 303–315 (2016). 9. Shao, H. et al. A novel method for intelligent fault diagnosis of rolling bearings using ensemble deep auto-encoders. _Mech. Syst._ _Signal Process._ 102, 278–297 (2018). 10. Zhang, X. & Zhou, J. Multi-fault diagnosis for rolling element bearings based on ensemble empirical mode decomposition and optimized support vector machines. _Mech. Syst. Signal Process._ 41 (1–2), 127–140 (2013). 11. Dong, S., Xu, X. & Chen, R. Application of fuzzy C-means method and classification model of optimized K-nearest neighbor for fault diagnosis of bearing. _J. Braz. Soc. Mech. Sci. Eng._ 38 (8), 2255–2263 (2016). 12. Zhao, R. et al. Deep learning and its applications to machine health monitoring. _Mech. Syst. Signal Process._ 115, 213–237 (2019). 13. Udmale, S. S., Singh, S. K. & Bhirud, S. G. A bearing data analysis based on kurtogram and deep learning sequence models. _Measurement_ 145, 665–677 (2019). 14. Udmale, S. S. et al. A bearing vibration data analysis based on spectral kurtosis and ConvNet. _Soft. Comput._ 23 (19), 9341–9359 (2019). 15. Nath, A. G. et al. Improved structural rotor fault diagnosis using multi-sensor fuzzy recurrence plots and classifier fusion. _IEEE_ _Sens. J._ 21 (19), 21705–21717 (2021). 16. Hoang, D. T. & Kang, H. J. Convolutional neural network based bearing fault diagnosis. In: _Intelligent Computing Theories and_ _Application: 13th International Conference, ICIC 2017, Liverpool, UK, August 7–10, 2017, Proceedings, Part II 13_ . 105-111 (Springer International Publishing, 2017). 17. Xu, Z., Li, C. & Yang, Y. Fault diagnosis of rolling bearing of wind turbines based on the variational mode decomposition and deep convolutional neural networks. _Appl. Soft Comput._ 95, 106515 (2020). 18. Siddique, M. F. et al. Advanced bearing-fault diagnosis and classification using mel-scalograms and FOX-optimized ANN. _Sensors_ 24 (22), 7303 (2024). 19. Zaman, W., Siddique, M. F. & Kim, J. M. Centrifugal Pump Fault Detection with Hybrid Feature Pool and Deep Learning[C].2023 20th International Bhurban Conference on Applied Sciences and Technology (IBCAST). 1–6 (IEEE, 2023). 20. Zaman, W. et al. Hybrid deep learning model for fault diagnosis in centrifugal pumps: A comparative study of VGG16, ResNet50, and wavelet coherence analysis. _Machines._ 12 (12), 905 (2024). 21. Shao, S., Wang, P. & Yan, R. Generative adversarial networks for data augmentation in machine fault diagnosis. _Comput. Ind._ 106, 85–93 (2019). 22. Wang, H. et al. A new intelligent bearing fault diagnosis method using SDP representation and SE-CNN. _IEEE Trans. Instrum._ _Meas._ 69 (5), 2377–2389 (2019). 23. Taylor, L., & Nitschke, G. Improving deep learning with generic data augmentation. In: _2018 IEEE symposium series on_ _computational intelligence (SSCI)_ . 1542–1547 (IEEE, 2018). 24. Udmale, S. S. et al. Multi-fault bearing classification using sensors and ConvNet-based transfer learning approach. _IEEE Sens. J._ 20 (3), 1433–1444 (2019). 25. Goodfellow I J, Pouget-Abadie J, Mirza M, et al. Generative adversarial nets. In: _Advances in neural information processing systems_, 27 (2014). 26. Xie, Y. & Zhang, T. Imbalanced learning for fault diagnosis problem of rotating machinery based on generative adversarial networks. In: _2018 37th Chinese Control Conference (CCC)_ . 6017–6022 (IEEE, 2018). 27. Liang, P. et al. Intelligent fault diagnosis of rotating machinery via wavelet transform, generative adversarial nets and convolutional neural network. _Measurement_ 159, 107768 (2020). 28. Huang, Y. J. et al. Multi-scale convolutional network with channel attention mechanism for rolling bearing fault diagnosis. _Measurement_ 203, 111935 (2022). 29. Guo, Y., Mao, J. & Zhao, M. Rolling bearing fault diagnosis method based on attention CNN and BiLSTM network. _Neural Process._ _Lett._ 55 (3), 3377–3410 (2023). 30. Wang, H. et al. Understanding and learning discriminant features based on multiattention 1DCNN for wheelset bearing fault diagnosis. _IEEE Trans. Industr. Inf._ 16 (9), 5735–5745 (2019). 31. Fu, W. et al. Rolling bearing fault diagnosis based on 2D time-frequency images and data augmentation technique. _Meas. Sci._ _Technol._ 34 (4), 045005 (2023). 32. Liu, H. et al. Unsupervised fault diagnosis of rolling bearings using a deep neural network based on generative adversarial networks. _Neurocomputing_ 315, 412–424 (2018). 33. Zhong, D., Guo, W., He, D. An intelligent fault diagnosis method based on STFT and convolutional neural network for bearings under variable working conditions. In: _2019 Prognostics and system health management conference (PHM-Qingdao)_ . 1–6 (IEEE, 2019). 34. Zhao, J. et al. A new bearing fault diagnosis method based on signal-to-image map** and convolutional neural network. _Measurement_ 176, 109088 (2021). 35. Chen, X., Zhang, B. & Gao, D. Bearing fault diagnosis base on multi-scale CNN and LSTM model. _J. Intell. Manuf._ 32 (4), 971–987 (2021). 36. Krizhevsky, A., Sutskever, I. & Hinton, G. E. ImageNet classification with deep convolutional neural networks. _Commun. ACM_ 60 (6), 84–90 (2017). 37. He, K., Zhang, X., Ren, S., et al. Deep residual learning for image recognition. In: _Proceedings of the IEEE conference on computer_ _vision and pattern recognition_ . 770–778 (2016). 38. Tran, M. Q. et al. Effective fault diagnosis based on wavelet and convolutional attention neural network for induction motors. _IEEE_ _Trans. Instrum. Meas._ 71, 1–13 (2021). 39. Zhang, H., Goodfellow, I., Metaxas, D., et al. Self-attention generative adversarial networks. In: _International conference on machine_ _learning_ . 7354–7363 (PMLR, 2019). 40. Smith, W. A. & Randall, R. B. Rolling element bearing diagnostics using the Case Western Reserve University data: A benchmark study. _Mech. Syst. Signal Process._ 64, 100–131 (2015). 41. Shao, S. et al. Highly accurate machine fault diagnosis using deep transfer learning. _IEEE Trans. Industr. Inf._ 15 (4), 2446–2455 (2018). 42. Yang, X. et al. Bearing fault diagnosis method based on ECA_ResNet. _Bearing_ 01, 102–110 (2025). 43. Ayas, S. & Ayas, M. S. A novel bearing fault diagnosis method using deep residual learning network. _Multimedia Tools and_ _Applications_ 81 (16), 22407–22423 (2022). 44. Zhang, J. et al. A new bearing fault diagnosis method based on modified convolutional neural networks. _Chin. J. Aeronaut._ 33 (2), 439–447 (2020). 45. Gong, L. et al. Lightweight bearing fault diagnosis method based on improved residual network. _Electronics_ 13 (18), 3749 (2024). 46. She, C., Zhang, C., Zhao, P., et al., Research on production line fault diagnosis and early warning based on CNN-LSTM-Attention. _J. Syst. Sci. Math. Sci._ 1–18 (2025). 47. Maaten, L. & Hinton, G. Visualizing data using t-SNE. _J. Mach. Learn. Res._ 9, 2579–2605 (2008). Acknowledgements The authors would like to thank the editor and reviewers for the valuable comments and suggestions. Author contributions Study conception and design: Guoqiang Wang, Nianfeng Shi; analysis and interpretation of results: Xianglan Yang; draft manuscript preparation: Zhichun Liu, Zhen Liu. All authors reviewed the results and approved the final version of the manuscript. Funding This research was funded by the Science and Technology Research Project of Henan Province, grant numbers 242102321138 and 252102220021, the National Natural Science Foundation of China, grant number 62203203, the Key Research and Development Special Program of Henan Province, grant numbers 241111223300 and 251111220600, and the Key Scientific Research Project of Higher Education Institutions in Henan Province, grant number 25CY024. Declarations Competing interests The authors declare no competing interests. Additional information Correspondence and requests for materials should be addressed to X.Y. Reprints and permissions information is available at www.nature.com/reprints. Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to [obtain permission directly from the copyright holder. To view a copy of this licence, visit ​h​t​t​p​:​/​/​c​r​e​a​t​i​v​e​c​o​m​m​o​](http://creativecommons.org/licenses/by-nc-nd/4.0/) [n​s​.​o​r​g​/​l​i​c​e​n​s​e​s​/​b​y​-​n​c​-​n​d​/​4​.​0​/.](http://creativecommons.org/licenses/by-nc-nd/4.0/) ​​ © The Author(s) 2025, corrected publication 2025

섹션 본문 109문단 · 48,211자

(제목 없음)

1Traditional rolling bearing fault diagnosis methods struggle to adaptively extract features under complex industrial environments, and obtaining large and rich fault data under real operating conditions is difficult and expensive.Aiming at these issues, a bearing fault diagnosis method based on Self-Attention Generative Adversarial Networks (SAGAN) and Improved Deep Residual Networks (IResNet) was proposed (SAGAN_IResNet).Firstly, the original vibration signals are transformed into two-dimensional time-frequency images using continuous wavelet transform, providing both time domain and frequency domain information.Secondly, SAGAN is used to generate new samples similar to the original sample distribution, thereby expanding the data.Furthermore, a bearing fault diagnosis model is constructed using an improved residual network that incorporates the Multi-head Self-Attention (MHA) to adaptively obtain the global feature information, alleviate the problem of gradient dispersion and network degradation, and enhance the model's diagnostic performance in the presence of strong noise and variable load conditions.Experimental verification is conducted using bearing datasets from Case Western Reserve University, Southeast University and Jiangnan University.The results show that the method proposed in this paper has strong bearing fault diagnosis performance under the condition of few samples, strong noise and variable load.

2Siddique et al. 18 proposed a novel method for bearing fault diagnosis.This method extracts fault features through convolutional layers and pooling layers, optimizes the model weights using the FOX optimizer, and achieves a high classification accuracy.Zaman et al. 20 proposed a centrifugal pump fault detection method that integrates a hybrid feature pool with deep learning, aiming to enhance fault identification accuracy and generalization capability under complex operating conditions.Zaman et al. 20 developed a hybrid deep learning model that integrates the strengths of deep learning in feature extraction and classification with the capabilities of wavelet coherence analysis in time-frequency feature extraction, effectively enhancing the accuracy of fault diagnosis in centrifugal pumps.

3Despite the achievements of various bearing fault diagnosis methods, several challenges and difficulties persist in achieving effective and high-precision fault diagnosis in real-world industrial scenarios.The two most significant challenges are as follows:

4(1) Insufficient samples: data is an important factor affecting the performance of the model, but it is difficult to collect fault samples in the actual industrial environment.It is time-consuming and expensive to obtain a large amount of balanced fault data 21 .(2) Difficulty in feature extraction: The presence of environmental noise and load variations in industrial production complicates the extraction of meaningful features from vibration signals.This complexity and instability hinder the effective extraction of features for accurate mechanical fault diagnosis 22 .

5To enhance the accuracy of fault diagnosis in insufficient datasets, researchers have employed various techniques.

6Taylor et al. 23 utilized data augmentation methods such as flipping, rotating, color jitter, and polar coordinate transformation to process images.Meanwhile, Udmale et al. 24 employed the transfer learning method to tackle the challenges of fault diagnosis under various operating conditions.It effectively addresses the issue of insufficient fault samples and achieves good diagnostic performance.Generative Adversarial Networks (GANs) offer a promising new approach to address the issue of insufficient samples.Initially used for image generation, GANs have demonstrated effectiveness and have been extended to the field of mechanical fault diagnosis 25 .For example, Xie et al. 26 proposed a Deep Convolution GAN (DCGAN) model to simulate the original distribution of a few classes and generate new data to expand the bearing fault data set.Liang et al. 27 combined GANs with wavelet transform and Convolutional Neural Networks (CNN) to propose a new intelligent fault detection method for rotating machinery.

7To address the challenge of extracting bearing fault features in complex environments, there has been a trend towards enhancing fault diagnosis models.Huang et al. 28 combined convolutional neural networks with the channel attention mechanism.This approach adaptively scores and assigns weights to learned features, improving the learning capability of convolutional layer features.Guo et al. 29 proposed a fault diagnosis method based on attention CNN with BiLSTM network, leveraging the attention mechanism to emphasize critical features.Moreover, Wang et al. 30 explored the application of attention mechanisms in fault diagnosis networks by designing an attention module that fully considers the characteristics of rolling bearing faults, enhancing fault-related features while ignoring irrelevant ones.

8Although these above methods have improved the accuracy of bearing fault diagnosis, it is difficult to achieve a balance between handling insufficient samples and extracting fault features.Therefore, this paper proposes a new approach to rolling bearing fault diagnosis based on a Self-Attention Generative Adversarial Networks (SAGAN) and improved residual network.The main contributions of this paper can be summarized as follows:

9(1) Proposal of an intelligent fault diagnosis method for rolling bearings based on the Self-Attention generative adversarial network and improved residual network.The method demonstrates robust fault diagnosis performance even under challenging conditions such as insufficient samples, strong noise, and variable loads.(2) Utilization of SAGAN to generate high-quality synthetic bearing fault data, SAGAN's ability to learn global and long-distance dependencies improves the accuracy of data generation, effectively addressing the problem of insufficient data volume.(3) A bearing fault diagnosis model based on an improved residual network is proposed.The Multi-head Self-Attention is combined with the residual neural network to alleviate the problems of gradient dispersion and network degradation, and the global feature information is adaptively obtained, which improves fault diagnosis performance of the model under strong noise and variable loads.

10The rest framework of the article is as follows: The second section briefly introduces some theoretical background knowledge.In the third section, we provide a detailed description of the proposed basic settings and the implementation process of the model.The fourth section validates the effectiveness of the proposed method through experimental results and compares it with other common bearing fault diagnosis methods.Lastly, the fifth section provides a discussion and summary of the research methods utilized in this paper, highlighting key findings and implications for future research.

Continuous wavelet transform

11The Continuous Wavelet Transform (CWT) is a multi-scale time-frequency analysis method with strong timefrequency analysis ability.CWT can collect both high and low-frequency components to ensure the integrity of feature information 31 .In general, assuming that the input signal is x(t) and x(t)=L 2 (R), and the basic wavelet function is ψ(t) ∈ L 2 (R), where L 2 (R) the space of square-integrable real-number functions.The CWT of x(t) can be expressed as:

12where a and b represent the scale and displacement parameters in wavelet transform respectively.ψ * (x) denotes the complex conjugate value of ψ(x) , CW Tx (a, b) denotes the inner product of signal and wavelet ψ a,b (t).

13By performing continuous wavelet transform to the original vibration signal, the original vibration signals are converted into two-dimensional time-frequency images, and the time-frequency mixed representation of the signal is extracted to facilitate subsequent data generation and feature extraction.

Generative adversarial networks

14Generative adversarial networks (GANs) consist of two main components: the generator (G) and the discriminator (D) 25 .The generator is trained to learn the distribution of real sample data and generates more realistic synthetic data, while the discriminator is trained to distinguish between real and generated data.During the training process, the generator aims to produce increasingly realistic data to deceive the discriminator, while the discriminator strives to correctly classify the authenticity of the data.Through multiple iterations of this adversarial process, the generator and discriminator reach a Nash equilibrium.The structure of GANs is illustrated in Fig. 1.

15The objective function of GANs can be defined as:

16where z represents the random noise, which is input into the generator D to generate pseudo-sample data.xdenotes the real sample input whose distribution is P data (x), and D(x) is the output of discriminator D.

17If D(x) > 0.5, the input x is considered to be a real sample; if D(x) < 0.5, the input x is considered to be a pseudo sample 32 .The generator and the discriminator are essentially two independent networks, thus, their training is performed independently.During training, the parameters of one network are fixed and those of the other are updated.Firstly, the generator G is optimized (the parameters of the discriminator D are fixed), and the loss function of the generator is as follows:

18Secondly, the discriminator D is optimized (the parameters of the generator G are fixed, and the loss function of the discriminator is as follows:

19Through adversarial learning, the generator and discriminator collaborate to produce data that closely imitate genuine data, which can compensate for the deficiency of insufficient samples.

Convolutional neural networks

20The convolutional neural network originated from the study of the cerebral cortex vision capabilities and has been used in image recognition since the 1980s.At present, convolutional neural networks have achieved superhuman performance in some complex visual tasks [33][34][35][36] .The main structures of convolutional neural networks are convolutional layers, pooling layers, and fully connected layers.Convolution layers.The function of convolution layers is to extract image features.These layers are composed of several convolution units, and the parameters in the convolution unit are optimized by the backpropagation propagation algorithm.The convolution operation formula is as follows:

21In the formula,X l j represents the jth element of the th layer, Mj represents the jth convolution,X l−1 i represents the element,w l il represents the weight matrix,b l j represents the bias and f (x) represents the activation function.The commonly used activation function for convolution operation is ReLU, whose formula can be expressed as follows:

22RELU (x) = max(0, x) (7) The ReLU activation function introduces a nonlinear factor into the neural network so that the neural network can fit any nonlinear relationship.Pooling layers.Pooling layers reduce the load and parameter amount by secondary sampling of the feature map.The pooling operation is mainly divided into maximum pooling and average pooling.Maximum pooling obtains local information to retain texture features, while average pooling retains overall features.The maximum pooling operation formula is as follows:

23where

24represents the result of the pooling of the jth output map in the kth layer, q (i,j) k represents the local input feature of the pooling of the k th layer.Fully-connected (FC) layers: Fully-connected layers are usually set after the last convolution and pooling, which act as a classifier within the network.The commonly used activation function for full connection is Softmax.The full connection operation formula is as follows:

25where k represents the network layer number, y k represents the output of the fully connected layer,σ represents the Softmax activation function, w k represents the weight coefficient, denotes one-dimensional vector input, and b k represents bias.

Residual neural network (ResNet)

26In order to address the problems of gradient dispersion and network degradation caused by deep convolution neural networks, He et al. 37 proposed Residual Neural Networks (ResNet).ResNet breaks the convention that the output of the n-1 layer of the neural network can only give the n layer as input.Instead, it enables the output of a certain layer to skip several layers and directly serve as the input of a later layer.The residual module is depicted in Fig. 2. The residual network operation formula is as follows:

27where x represents identity mapping, F (x) denotes the represents mapping and H(x) represents the unknown mapping.

Self-attention mechanism

28The Self-Attention mechanism enhances the sensitivity of a network model to important features.In normal circumstances, only certain parts of the input data are significant to impact the network's performance.The mechanism assigns weights to various parts of the data, giving more attention to the key parts, thereby improving the overall performance of the model.The principle of this mechanism is illustrated in Fig. 3.The calculation formula of the Self-Attention mechanism is as follows:

29In the formula: X represents the input data, Q is the query vector, K is the key vector, and V is the value vector.

30Q, K and V are derived from linear transformations of the input data, and the obtained matrix is input into the Self-Attention mechanism.Firstly, the query vector Q and the key vector K are subjected to a matrix dot product, the result of which is divided by the scaling factor √ d k to prevent overly large values.Secondly, the Fig. 2. The structure of ResNet.

31Softmax function normalizes the correlation to obtain the attention weights.Finally, these weights and the value vector V are weighted and summed to produce the Self-Attention representation of the input data.The Self-Attention mechanism is effective in enhancing the model's ability to extract global features.However, a single-head attention mechanism has limited feature capacity for learning complex features.In contrast, the Multi-head Self-Attention captures feature information from multiple subspaces of the input data.This enhancement allows the model to better grasp global features and long-range dependencies.Consequently, thus more effectively uncovering the underlying relationships between variables.The formula for calculating the Multi-head Self-Attention mechanism is as follows:

32In the formula: h represents the number of heads in the Multi-head Self-Attention mechanism,Hi represents the output of the i attention mechanism.The operation "concat" refers to the concatenation of matrices, which splices the outputs from each single-head attention mechanism, and then fuses through a linear mapping with the weight matrix W , producing the output of the Multi-head Self-Attention mechanism.

Framework of the proposed method

33To

CWT for time-frequency imaging

34In complex industrial production, the obtained bearing vibration signals contain a large number of nonstationary signals, which makes it difficult for generating and diagnostic models to extract effective features for 38 proposed a motor fault detection model based on continuous wavelet transform and convolutional attention neural network.Liang et al. 27 proposed a rotating machinery fault detection method based on wavelet transform (WT), generative adversarial networks (GANs) and convolutional neural networks (CNN), which addressed the issue of insufficient samples.

Data augmentation based on SAGAN

35Most GAN-based data generation models are constructed by convolutional neural networks.The convolution operation is used to process information within local neighborhood, so it is inefficient to use the convolution layer alone to model the long-distance relationships within images.In order to solve this problem, Zhang et al. proposed the Self-Attention generative adversarial networks (SAGANs) 39 , which allow attention-driven longterm dependence modeling for image generation tasks.The Self-Attention mechanism shows a better balance between long-term dependent modeling capabilities and computational efficiency.By incorporating the Self-Attention mechanism, the generator can draw an image, where the fine details of each position are carefully coordinated with the fine details of the distant part of the image.In addition, the discriminator can also impose complex geometric constraints on the global image structure:

36In addition to Self-Attention, SAGAN introduces spectrum normalization to stabilize the training of the model and avoid abnormal gradients.Compared with other normalization techniques, spectrum normalization does not require additional hyper parameter adjustment, and has a relatively low computational cost.

37Leveraging the strengths of SAGAN in image generation, we use SAGAN as the data augmentation method to solve the problem of insufficient fault samples.The schematic diagram of the generator and discriminator structure is shown in Figs. 5 and 6, respectively.The generator G starts with a uniform distribution noise variable Z, which is projected and reshaped into a convolutional feature map representation.Then, time-frequency image samples of size (63, 64, 3) are generated through a five-layer transposed convolution operation.Each layer of the transposed convolution has a kernel size of 4 and a stride of 2, with channel counts of 512, 256, 128, 64, and 3 respectively.The first four layers of transposed convolution are processed by using spectrum normalization and the ReLU activation function.From the 3rd to the 4th layers of convolution, the attention mechanism is used to obtain the global dependencies.The activation function of the fifth layer is the Tanh function.In the discriminator D, there are five convolution layers with a convolution kernel size of 4, a stride of 2, and channel counts of 64, 128, 256, 512, and 1, respectively.After each convolution, spectrum normalization and the LeakyReLU activation function are applied.During the SAGAN training, model parameters are updated iteratively based on the aforementioned loss function.The batch size is set at 16.The RMSprop optimizer is used with a learning rate of 0.0005 for both the generator and discriminator, which are alternately trained until convergence.

Fault diagnosis based on IResNet

38Convolutional neural networks can effectively capture local information of images through convolutional operations, but visual tasks require establishing long-distance dependencies.In order to globally aggregate the responses from locally captured filters, the network structure needs to be stacked with multiple layers.However, increasing the number of layers can lead to issues such as gradient dispersion or explosion, and network degradation, which seriously impacts the accuracy of the model.In order to solve the above problems, we improve the residual network by integrating the Multi-head Self-Attention mechanism (with 4 heads) into the residual network structure.The residual network deepens the network layers through residual learning, enabling it to obtain deep features, and alleviate the problem of network degradation caused by high network layers in convolutional neural networks.The Multi-head Self-Attention mechanism facilitates the capture of long-distance dependency relationships and global features of images by processing and aggregating feature information captured through convolution.This hybrid design is beneficial for improving the ability of key feature extraction in the model, thus achieving network control of global information, improving the accuracy of bearing fault diagnosis under conditions of strong noise and variable loads.As illustrated in Fig. 7, the Multi-head Self-Attention mechanism (MHA) replaces the traditional convolution (3 × 3) operation within the residual network to achieve global Self-Attention on the 2D feature map.By improving the residual network module, the long-distance dependence and global feature information are obtained, and the problems of gradient dispersion and network degradation are also solved.

39The improved residual formula is as follows:

40In the formula: x is the input data, x * is the output of the input data after convolution, h is the number of heads of the Self-Attention mechanism,Q * i ,K * i ,V * i are the matrices obtained by linear transformation of the data x * .The obtained matrix is input into the Multi-head Self-Attention mechanism function to obtain the Self-Attention representation of the input data.Finally, the input and output are added element by element through the jump connection.

41The bearing fault diagnosis model based on IResNet is mainly composed of convolution layers, pooling layers, improved residual block A, block B, and fully-connected layers.The network structure is shown in Fig. 8. Firstly, after two stages of convolution and maximum pooling operations, the convolution operation can effectively learn abstract and low-resolution features from the image, while maximum pooling retains the main features of the data and removes redundant information.Subsequently, the improved residual modules block A and block B deepen the number of network layers.Additionally, the Multi-head Self-Attention mechanism is introduced into the residual network, which not only avoids issues such as gradient dispersion, gradient explosion, and network degradation caused by the increased depth of network layers, but also enables the network to acquire global features and long-range dependencies efficiently.Finally, dropout is also incorporated between the two fully-connected to enhance the generalization ability and prevent overfitting, and the Softmax layer is used as 1.

Experimental verification

42To verify the effectiveness and superiority of the method proposed in this paper, experimental verification has been carried out for two bearing datasets: the bearing dataset of Case Western Reserve University 40 , the bearing dataset of Southeast University 41 and the bearing dataset of Jiangnan University 42 .

Experiment setup and data preprocess

43The experimental dataset was sourced from the Case Western Reserve University (CWRU) Bearing Data Center.The experimental equipment is shown in Fig. 9, and the test bench is composed of a motor, rolling bearings, a torque transducer, and a dynamometer 40 .The test bearing model are SKF6205 motor bearings.Faults in the bearing, including the inner ring (IR), outer ring (OR), and ball (BD), have been machined through Electrical Discharge Machining (EDM).The fault diameters are 0.1778 mm, 0.3556 mm, and 0.5334 mm for each kind of fault bearing, respectively.During the experiments, the motor was subjected to various load conditions: 0HP, 1HP, 2HP and 3HP, the sampling frequency was set at 12 kHz.

44The signal is intercepted by overlapping sampling.The overlapping sampling operation formula is as follows:

45where N is the total number of one-class samples, L is the total length of the one-dimensional signal, L1 is the length of each signal segment, and d is the step length determining the degree of overlap between consecutive segments.The statistics of the dataset are described in Table 2.The dataset contains 10 fault categories, and the number of data samples for each fault category is 1000, including 800 training samples, 100 validation samples, and 100 test samples.Additionally, the number of data points for each data sample is 1024.The original vibration signal is converted into a two-dimensional time-frequency diagram by CWT, and the results are shown in Fig. 10.After CWT, the time-frequency domain characteristics of the signal are fully obtained, which is conducive to subsequent data expansion and fault diagnosis processes.

Experimental environment and training parameter configuration

46The experiments were conducted on a Windows 10 operating system with a Tesla T4 GPU, utilizing the PyTorch deep learning framework.During training, the input image resolution was set to 64 × 64, with a batch size of 32 and 30 training epochs.The initial learning rate was 0.001, and the cross-entropy loss function was employed as the optimization objective.The Adam optimizer was adopted, coupled with StepLR scheduler to dynamically adjust the learning rate: the learning rate was halved every 10 epochs.

Data generation experiment based on SAGAN

47In this experiment, the data generation method based on SAGAN is combined with a traditional CNN fault diagnosis model to explore the impact of synthetic sample generation on the accuracy of bearing fault diagnosis.Figure 11 displays the sample images generated by SAGAN of different fault types at the training epochs of 50, 100, and 300.Initially, at 50 epochs, image backgrounds were blurry and clarity was inconsistent.By 100 epochs, some features of the time-frequency image were roughly represented, though the background clarity still required improvement.At 300 epochs, the image clarity is high, and the generated samples and the original samples have similar feature distributions, but there are still slight differences because the generated samples are obtained by the model learning and training from real samples, not merely simple image replication.Based on these observations, the training epoch count for SAGAN is set at 300 for optimal image quality.

48The generated images by various Generative Adversarial Networks (GANs) are shown in Fig. 12. From the figure, it can be observed that the basic outline of the original samples can be learned by GAN, but the generated samples exhibit significant differences from the real samples.With DCGAN, the similarity between the generated samples and the real samples improves compared to GAN, but the images appear blurry, indicating insufficient learning of fault features.In contrast, SAGAN generates images that are more similar to the original ones, capturing most of the original sample's features.This improvement demonstrates that incorporating the Self-Attention mechanism significantly enhances the model's capability to learn global feature information.

49In the sample generation task, Pearson correlation coefficient is often used to detect the quality of sample generation.This coefficient measures the linear relationship between two variables; a coefficient close to 1 indicates a strong linear relationship.The Pearson correlation coefficient is used to analyze the correlation between the generated sample and the original sample.The analysis results are shown in Fig. 13.The analysis illustrates that SAGAN's sample generation capabilities are substantially superior to those of both standard GAN and DCGAN, highlighting its effectiveness in producing high-quality, realistic samples.

50In order to verify the influence of the number of generated images on the accuracy of bearing fault diagnosis, the experiment is divided into three categories: the first category does not perform data expansion, and only uses the original data for model training (experiment 1); the second category only uses the generated data for training (experiment 2-7); the third category uses data expansion to combine the original data with the generated data to jointly train the model (experiment 8-13).The experimental results are shown in Table 3.It can be seen from the table that when the original data and the generated data are combined, the diagnostic accuracy is significantly improved.Notably, there is a clear trend showing that accuracy increases as more generated images are added to the training dataset.Specifically, when 6000 generated images are added to 8000 original samples, the accuracy rate reaches 100%.Based on these findings, subsequent experiments were conducted based on the original sample size of 8000 and the generated sample size of 6000 to further validate the benefits of this approach.

51The generated data and the original data are used as the input of the CNN fault diagnosis model to train the network.The training process is shown in Fig. 14.It can be seen from the figure that after data expansion, the convergence speed of model training is obviously accelerated and the convergence is more stable.Therefore, using data generation technology to train the model by combining real data with generated data can significantly improve the stability of model training and the accuracy of bearing fault diagnosis.

52SN R dB = 10 log 10

53where P signal and Pnoise are the power of the signal and the noise, respectively.The more noise contained in the signal, the smaller the SNR value.At 0 dB SNR, signal and noise energy are equal.

54While theoretically, deeper network layers can lead to higher model accuracy, they also increase the complexity and training time of the model.To find a balance between fault diagnosis accuracy, network complexity, and model training time, this paper proposes four different depths of improved residual network structures combined with traditional CNN, referred to as CNN, CNNI, CNNII, CNNIII, and CNNIV when the number of IResNet modules is 0, 1, 2, 3 and 4, respectively.To minimize the influence of random factors on experimental results, the final accuracy of each model is the average of 5 repeated experimental runs, as shown in Fig. 15.It can be seen that CNNI, with one IResNet module, significantly improves the performance of bearing fault diagnosis in noisy environments compared to the basic CNN.However, as the network depth increases further, the gains in diagnostic accuracy diminish progressively, suggesting a diminishing return on deeper configurations.This pattern underscores the importance of striking an optimal balance when designing network architectures for practical applications, particularly in settings characterized by significant noise interference.

55To provide a clearer understanding of how network depth affects fault diagnosis accuracy and training time, Fig. 16 shows the experimental results and average training time of these four different depth models across various noise environments (SNR levels of -8, -6, and -4).As the network depth increases, the model training time increases, but the bearing fault diagnosis performance reaches its peak with CNNIII when the number of IResNet modules stacked on the model is 3. On the basis of the comprehensive analysis of model accuracy and training time, it is determined to use an improved residual network stacked with three IResNet modules for effective bearing fault diagnosis.

The influence of the number of heads on diagnostic accuracy

56In order to verify the influence of the number of heads of the Multi-head Self-Attention on the performance of the model, this section adds the verification experiment of the number of heads, and sets the number of heads of the Multi-head Self-Attention to 1, 2, 3, 4, 8 respectively.The experimental results are shown in Fig. 17.From the graph, as the number of heads increases from 1 to 4, the diagnostic performance of the model under different signal-to-noise ratios is systematically improved.However, when the number of heads is increased to 8, the performance of the model decreases, and the noise robustness of the model is optimal when the number of heads is 4. Based on this, this paper finally chooses 4-head attention mechanism as the core module of SAGAN_ IResNet.

57The training and validation curves of the proposed method are illustrated in Fig.

Performance comparison under noise environment

58This section aims to evaluate the robustness of the proposed method in noisy environments.To simulate bearing vibration signals acquired in noisy environments, Gaussian white noise with signal-to-noise ratios (SNRs) ranging from -8 dB to 6 dB is added to the original vibration signals.The proposed method is compared with SVM, MLP, DRL_ResNet 43 , SECNN 22 , DFCNN 44 , Improved ResNet 45 , CNN-LSTM-Attention 46 , CNN, and SAGAN_CNN.Among them, CNN is a bearing fault diagnosis model based on convolutional neural networks.SAGAN_CNN first uses SAGAN to generate sample data, increase the number of samples, and then uses the CNN model to achieve fault diagnosis.In order to reduce the influence of random factors, the final result of each method is the average of five experimental results, as shown in Fig. 19.As the noise intensity increases, the average recognition accuracy of all diagnostic algorithms decreases, but there are significant differences in the magnitude of the decrease among different algorithms.The average accuracy of the proposed method in a strong noise environment reaches 97.13%, which improved by 11.7%, 14.86%, 3.32%, 0.97%, 0.51%, 1.56%, 0.73%, 4.45%, and 4.21% compared to the other methods, respectively.By improving the residual network and introducing the Multi-head Self-Attention mechanism, the model can learn sample features to the maximum extent, reduce noise interference, enhance network robustness, and improve the accuracy of bearing fault diagnosis.

59To ensure that the proposed method does not excessively favor the identification of a single fault type, the confusion matrix is used to analyze the classification results of the test set.According to Fig. 20a, at an SNR of 6, the accuracy of the test set reaches 99.9%.There is only one instance where a sample labeled B021 is misdiagnosed as B007.Although the specific fault scale identification is incorrect, the misdiagnosed sample still falls within the category of rolling element fault.It can be seen from Fig. 20b that in the high noise environment with an SNR of -8, the overall diagnostic accuracy of this method is higher at over 86%, indicating strong robustness.

60Furthermore, t-SNE technology is used to reduce the dimensionality of high-dimensional features and realize the visualization of feature vectors 47 .Figure 21a is the visualization result of the convolutional feature t-SNE at the second layer.The data overlap and mix with each other indicate a poor clustering effect at this stage of the model.In contrast, Fig. 21b is the result of feature visualization of the last layer of IResNet module.All samples have been basically divided into ten distinct categories.The clear aggregation effect of each sample group demonstrates that the improved residual neural network, with the integration of Multi-head Self-Attention, can maximize the learning of sample features and significantly enhance the fault diagnosis performance of the model.These visualizations effectively illustrate how the model evolves to better discriminate between different fault types as it processes through its layers, culminating in a highly effective fault classification by the final layer.

Performance comparison across different load domains

61In actual industrial environments, the load conditions of bearings are variable, which requires fault diagnosis methods to have high generalization performance.To assess the generalization capabilities of the proposed method, it was compared against several established models: SVM, MLP, SECNN, DRL_ResNet, DFCNN, Improved ResNet, CNN-LSTM-Attention, CNN and SAGAN_CNN.The fault diagnosis results of each method under variable load conditions are shown in Fig. 22.The analysis reveals that SVM and MLP exhibit lower accuracy in bearing fault diagnosis under variable load conditions, which points to their poor generalization capabilities.In contrast, the proposed method in this paper achieves an average accuracy of 93.69%.This represents performance improvements of 2.73%, 1.22%, 4.16%, 2.84%, 3.54%, 2.88% and 1.9% over SECNN, DRL_ResNet, DFCNN, Improved ResNet, CNN-LSTM-Attention, CNN, and SAGAN_CNN respectively.The proposed method exhibits the strong generalization capability and is suitable for bearing fault diagnosis in environments with variable loads.

Experiment setup and data preprocessing

62The gear data set of Southeast University comes from the open source data of Southeast University.The test bench is composed of a variable speed motor, motor controller, planetary gearbox, parallel shaft gearbox, brake, and brake controller 41 .The vibration signal is measured by a driveline dynamic simulator (DDS).The fault types are divided into five types: normal, ball fault, comb fault, inner ring fault and outer ring fault.These fault types are artificially set in the laboratory and can simulate the basic faults in the machinery.Regarding the operational parameters of the equipment, the speed-load settings vary between 20 Hz at 0 V and 30 Hz at 2 V.

63The data is processed using overlapping sampling, with each fault category represented by 1,000 single-class samples, each with a signal segment length of 1,024.The dataset is organized into training, validation, and test sets with a distribution ratio of 8:1:1.This allocation is detailed in Table 4, which provides a statistical description of the dataset.The vibration signal is converted into a time-frequency image using CWT, and the results are shown in Fig. 23.

Experimental results and performance comparison

64The 8000 original training samples and 6000 pseudo-samples are used to train the classification model.To mitigate the effects of anomalies and ensure the robustness of the results, each experiment was conducted five times.The average accuracy from these trials was computed and compared with that achieved by the improved method.The findings are presented in Fig. 24, which clearly shows that the SAGAN_IResNet method yields the highest accuracy among the tested approaches.By improving the fault classification model, the residual network is combined with the Multi-head Self-Attention mechanism to learn the sample features to the greatest extent, and the model performance is optimized as much as possible.The detailed performance comparison of different diagnostic methods in a noisy environment is shown in Fig. 25.As can be seen from the figure, the method proposed in this paper demonstrates excellent robustness and anti-interference performance.When the signal-to-noise ratio (SNR) is 2, the fault diagnosis accuracy of this method reaches as high as 97.2%.Compared with other methods, there is a significant improvement in accuracy, which fully demonstrates its outstanding advantages and application value in a noisy environment.

65Displayed in Fig. 26 is the comprehensive confusion matrix for the SAGAN_IResNet model under SNR conditions of 0 and 6.Notably, at an SNR of 0, this method yields an impressive average fault diagnosis rate of 95%.Similarly, under an SNR of 6, the model's fault accuracy reaches 98.42%, showcasing its ability to adeptly learn fault features and accurately identify health statuses.

66The fault feature learning results of the proposed method are shown in Fig. 27, which showcases the effects of increasing network depth on the classification of fault features.Initially, after CNN layer feature extraction, the results are visualized in Fig. 27a, the samples have a tendency to aggregate, but the clustering effect remains suboptimal, indicating some overlap and unclear boundaries between different fault categories.By superimposing the IResNet module, the number of network layers is gradually deepened, as shown in Fig. 27b, which significantly expands the distribution distance of fault features among different health conditions and makes the feature classification boundary clear and distinguishable.

Experiment setup and data preprocessing

67To verify the universality of the method proposed in this paper, the bearing dataset of Jiangnan University is used for verification 42 .This data was collected under the conditions of a sampling frequency of 50 kHz and rotation speeds of 600 r/min, 800 r/min, and 1000 r/min.The bearing dataset with a frequency of 50 kHz and a rotation speed of 800 r/min is adopted as the experimental data.According to the fault location, the bearing data is divided into four states: normal (N), inner ring (IR), outer ring (OR), and rolling element (TB).The signals are intercepted by means of overlapping sampling.The number of samples of a single class is 1000, and the signal length is 1024.The ratio of the training set, verification set, and test set is 8:1:1.The parameters of 5.The image of each type of fault signal after continuous wavelet transform is shown in Fig. 28.

Experimental results and performance comparison

68To verify the effectiveness of the proposed method, a comparative experiment was conducted between SAGAN_ IResNet and the method before the improvement.The experimental results are shown in Fig. 29.It can be seen from the figure that the traditional convolutional neural network (CNN) performs poorly in terms of fault diagnosis performance.However, after the introduction of the sample generation technology, the bearing fault diagnosis performance has significantly improved.It is worth noting that the method proposed in this paper performs the best in terms of fault diagnosis performance, fully demonstrating its remarkable advantages in improving the accuracy and reliability of fault diagnosis.

69The model proposed in this paper was respectively compared with SVM, MLP, DRL_ResNe, SECNN, DFCNN, Improved ResNet, CNN-LSTM-Attention, CNN, and SAGAN_CNN in comparative tests under noise conditions, and the results are shown in the Fig. 30.It can be seen from the figure that the method proposed in this paper has stronger noise resistance and practicality compared with other models.

70According to the speed, the data is divided into three loads of 0, 1 and 2 to carry out the model variable load comparison experiment.The proposed method is compared with SVM, MLP, DRL_ResNet, SECNN, DFCNN, Improved ResNet, CNN-LSTM-Attention, CNN, and SAGAN_CNN, respectively.The experimental results are shown in the Fig. 31.It can be seen from the figure that the method proposed in this paper has high accuracy of bearing fault diagnosis under variable load and good generalization performance of the model.

Conclusion

71In this paper, an intelligent bearing fault diagnosis method named SAGAN_IResNet is proposed to overcome challenges in feature extraction and insufficient bearing fault data in complex industrial environments.The main conclusions of this study are as follows:

72(1) SAGAN is utilized to generate high-quality bearing fault data, effectively addressing the issue of insufficient fault diagnosis datasets.The proposed data enhancement method demonstrates notable applicability, leading to a significant improvement in the accuracy of bearing diagnosis after data enhancement.(2) An improved residual network (IResNet) is used to construct the bearing fault diagnosis model, combining a Multi-head Self-Attention mechanism with the residual network to solve the problems related to gradient dispersion and network degradation.The method enables adaptive acquisition of long-distance correlation and global feature information, resulting in an average fault diagnosis accuracy of 97.13% in strong noise environments.This performance marks a 4.21% increase compared to SAGAN_CNN, showing strong robustness.

73(3) The experimental results under variable load conditions have underscored the efficacy of the proposed bearing fault diagnosis method, which achieves an accuracy rate of 94.14%.This performance not only demonstrates the method's robustness but also its superior generalization capabilities when compared to other fault diagnosis models.

74In summary, the proposed method stands out due to its ability to generate high-quality bearing fault data, effectively address the challenge of insufficient samples, and maintain robust performance under conditions of strong noise and variable loads.These attributes make it highly suitable for practical applications in bearing fault diagnosis.By integrating advanced data generation techniques and leveraging a sophisticated model architecture that includes improved residual networks and Multi-head Self-Attention, the method enhances the accuracy and reliability of fault detection in real-world industrial settings.Although the research in this paper has achieved certain results, in order to further promote its implementation in industrial scenarios, the authors will further explore the adaptability of the model proposed in this paper in online learning scenarios to cope with new fault modes or load conditions that may arise in bearing fault diagnosis; at the same time, we will further study the embedded deployment of this model in real-time monitoring systems to achieve faster and more accurate fault detection and early warning.

Fig. 1 .

75Fig. 1.The structure of GAN.

76address the challenges of bearing fault feature extraction and the insufficient samples in complex environment, this paper proposes a bearing fault diagnosis method based on SAGAN_IResNet.The method begins with preprocessing the original vibration signals, converting the one-dimensional vibration data into two-dimensional time-frequency images.Subsequently, SAGAN is used to generate high-quality samples to solve the issue of insufficient bearing fault sample data.An improved residual network model for bearing fault diagnosis is then established and trained.The trained model is used to perform the bearing fault diagnosis task.The flow chart of the proposed method is shown in Fig. 4. The detailed fault detection steps are as follows: Step 1: Signal Acquisition and Processing.Obtain bearing vibration signals in various health states and segment the signals by overlapping sampling.In addition, the vibration signals are converted into timefrequency images via CWT, and the images are divided into training, validation and test.Step 2: Data augmentation based on SAGAN.A Self-Attention Generative Adversarial network (SAGAN) is built.Training set samples are used as input to train the SAGAN until the network converges.This training produces a new set of samples that closely resemble the original sample distribution, which is used to enrich the original data set and solve the problem of insufficient samples.Step 3: Fault diagnosis based on IResNet.To improve the accuracy of bearing fault diagnosis under conditions of strong noise and variable load, a bearing fault diagnosis model based on an improved residual network (IResNet) has been developed.Both the original sample and the generated samples in Step 2 are combined as input to train the diagnostic model.At the same time, the accuracy of the model is verified by the validation set, and the model parameters are fine-tuned until the network converges.Step 4: Diagnosis result analysis and visualization.The test data set obtained in Step 1 is input into the trained bearing fault diagnosis model to realize the bearing fault diagnosis task, and the diagnosis results are analyzed and discussed.

Fig. 3 .

77Fig. 3. Schematic diagram of the Self-attentive mechanism.

Fig. 4 .

78Fig. 4. The framework of the proposed method to realize the bearing fault diagnosi.

Fig. 6 .

79Fig. 6.The architecture of the discriminator.

Fig. 5 .

80Fig. 5.The architecture of the generator.

Fig. 8 .

81Fig. 8.The structure of bearing fault diagnosis model based on IResNet.

Fig. 7 .

82Fig. 7.The structure of IResNet.

Fig. 9 .

83Fig. 9. CWRU rolling bearing experimental platform by 40 .

Fig. 10 .

84Fig. 10.1D vibration signals are converted into 2D time-frequency images.

Fig. 12 .

85Fig. 12.Comparison of generated images of different models.

Fig. 11 .

86Fig. 11.Generated images of different training epochs.

Fig. 15 .

87Fig. 15.Recognition accuracy of different depth networks in noisy environment.

Fig. 14 .

88Fig. 14.The influence of data expansion on model accuracy and loss.

8918.As depicted, the diagnostic accuracy exhibits rapid growth during the initial training phase.When the epoch reaches 5-15, minor fluctuations emerge in the training accuracy, likely attributed to the model's exploration of optimal feature representations.Beyond 15 epochs, both training and validation accuracies stabilize, indicating effective convergence and sufficient model training.

Fig. 17 .

90Fig. 17.Recognition accuracy of different heads in noisy environment.

Fig. 16 .

91Fig. 16.Comparison of model accuracy and training time.

Fig. 19 .

92Fig. 19.The average accuracy of different models in noisy environment.

Fig. 18 .

93Fig. 18.The model training and validation curves of SAGAN_IResNet.

Fig. 21 .

94Fig. 21.Visualization of feature vectors at different positions.

Fig. 20 .

95Fig. 20.Confusion matrix of diagnostic results in different noise environments.

Fig. 22 .

96Fig. 22.The average accuracy of different models in the variable load domain.

Fig. 24 .

97Fig. 24.Classification accuracy of the five trials in testing samples.

Fig. 23 .

98Fig. 23.Time-frequency images of ten fault categories.

Fig. 27 .

99Fig. 27.Visualization of feature vectors at different positions.

Fig. 26 .

100Fig. 26.Confusion matrix of diagnostic results in different noise environments.

Fig. 25 .

101Fig. 25.The average accuracy of different models in noisy environment.

Fig. 29 .

102Fig. 29.Classification accuracy of the five trials in testing samples.

Fig. 28 .

103Fig. 28.Time-frequency images of four fault categories.

Fig. 31 .

104Fig. 31.The average accuracy of different models in noisy environment.

Fig. 30 .

105Fig. 30.The average accuracy of different models in noisy environment.

Table 1 .

106Model parameter settings of IResNet.

Table 2 .

107The experiment dataset.

Table 4 .

108The experiment dataset of Southeast University.

Table 5 .

109The experiment dataset of Jiangnan University.

참고문헌 42건

  1. Rolling element bearing diagnostics using the Case Western Reserve University data: A benchmark study Mechanical Systems and Signal Processing · Elsevier BV · 2015 10.1016/j.ymssp.2015.04.021
  2. Multi-fault diagnosis for rolling element bearings based on ensemble empirical mode decomposition and optimized support vector machines Mechanical Systems and Signal Processing · Elsevier BV · 2013 10.1016/j.ymssp.2013.07.006
  3. A hierarchical multiple-model approach for detection and isolation of robotic actuator faults Robotics and Autonomous Systems · Elsevier BV · 2011 10.1016/j.robot.2011.10.003
  4. Deep Residual Learning for Image Recognition 2016 10.1109/cvpr.2016.90
  5. Deep neural networks: A promising tool for fault characteristic mining and intelligent diagnosis of rotating machinery with massive data Mechanical Systems and Signal Processing · Elsevier BV · 2015 10.1016/j.ymssp.2015.10.025
  6. Application of fuzzy C-means method and classification model of optimized K-nearest neighbor for fault diagnosis of bearing Journal of the Brazilian Society of Mechanical Sciences and Engineering · Springer Science+Business Media · 2015 10.1007/s40430-015-0455-9
  7. ImageNet classification with deep convolutional neural networks Communications of the ACM · Association for Computing Machinery · 2017 10.1145/3065386
  8. 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
  9. Repetitive transient extraction for machinery fault diagnosis using multiscale fractional order entropy infogram Mechanical Systems and Signal Processing · Elsevier BV · 2017 10.1016/j.ymssp.2017.10.024
  10. A novel method for intelligent fault diagnosis of rolling bearings using ensemble deep auto-encoders Mechanical Systems and Signal Processing · Elsevier BV · 2017 10.1016/j.ymssp.2017.09.026
  11. Deep learning and its applications to machine health monitoring Mechanical Systems and Signal Processing · Elsevier BV · 2018 10.1016/j.ymssp.2018.05.050
  12. Unsupervised fault diagnosis of rolling bearings using a deep neural network based on generative adversarial networks Neurocomputing · Elsevier BV · 2018 10.1016/j.neucom.2018.07.034
  13. 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
  14. Imbalanced Learning for Fault Diagnosis Problem of Rotating Machinery Based on Generative Adversarial Networks 2018 10.23919/chicc.2018.8483334
  15. A Systematic Review of Fuzzy Formalisms for Bearing Fault Diagnosis IEEE Transactions on Fuzzy Systems · Institute of Electrical and Electronics Engineers · 2018 10.1109/tfuzz.2018.2878200
  16. A bearing vibration data analysis based on spectral kurtosis and ConvNet Soft Computing · Springer Science+Business Media · 2018 10.1007/s00500-018-3644-5
  17. Generative adversarial networks for data augmentation in machine fault diagnosis Computers in Industry · Elsevier BV · 2019 10.1016/j.compind.2019.01.001
  18. Bearing Fault Diagnosis with a Feature Fusion Method Based on an Ensemble Convolutional Neural Network and Deep Neural Network Sensors · Multidisciplinary Digital Publishing Institute · 2019 10.3390/s19092034
  19. A bearing data analysis based on kurtogram and deep learning sequence models Measurement · Elsevier BV · 2019 10.1016/j.measurement.2019.05.039
  20. Improving Deep Learning with Generic Data Augmentation 2018 10.1109/ssci.2018.8628742
  21. A new bearing fault diagnosis method based on modified convolutional neural networks Chinese Journal of Aeronautics · Elsevier BV · 2019 10.1016/j.cja.2019.07.011
  22. Multi-Fault Bearing Classification Using Sensors and ConvNet-Based Transfer Learning Approach IEEE Sensors Journal · IEEE Sensors Council · 2019 10.1109/jsen.2019.2947026
  23. Understanding and Learning Discriminant Features based on Multiattention 1DCNN for Wheelset Bearing Fault Diagnosis IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tii.2019.2955540
  24. A New Intelligent Bearing Fault Diagnosis Method Using SDP Representation and SE-CNN IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2019 10.1109/tim.2019.2956332
  25. An Intelligent Fault Diagnosis Method based on STFT and Convolutional Neural Network for Bearings Under Variable Working Conditions 2019 10.1109/phm-qingdao46334.2019.8943026
  26. Intelligent fault diagnosis of rotating machinery via wavelet transform, generative adversarial nets and convolutional neural network Measurement · Elsevier BV · 2020 10.1016/j.measurement.2020.107768
  27. 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
  28. Fault diagnosis of rolling bearing of wind turbines based on the Variational Mode Decomposition and Deep Convolutional Neural Networks Applied Soft Computing · Elsevier BV · 2020 10.1016/j.asoc.2020.106515
  29. A new bearing fault diagnosis method based on signal-to-image mapping and convolutional neural network Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.109088
  30. Improved Structural Rotor Fault Diagnosis Using Multi-Sensor Fuzzy Recurrence Plots and Classifier Fusion IEEE Sensors Journal · IEEE Sensors Council · 2021 10.1109/jsen.2021.3079366
  31. Parameter Estimation for Quantitative EPR Spectroscopy IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2021 10.1109/tim.2021.3084289
  32. Research on diagnosis algorithm of mechanical equipment brake friction fault based on MCNN-SVM Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.110065
  33. A novel bearing fault diagnosis method using deep residual learning network Multimedia Tools and Applications · Springer Science+Business Media · 2022 10.1007/s11042-021-11617-1
  34. Adaptive single-mode variational mode decomposition and its applications in wheelset bearing fault diagnosis Measurement Science and Technology · IOP Publishing · 2022 10.1088/1361-6501/ac856c
  35. Multi-scale convolutional network with channel attention mechanism for rolling bearing fault diagnosis Measurement · Elsevier BV · 2022 10.1016/j.measurement.2022.111935
  36. 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
  37. Rolling bearing fault diagnosis based on 2D time-frequency images and data augmentation technique Measurement Science and Technology · IOP Publishing · 2022 10.1088/1361-6501/acabdb
  38. Lightweight Bearing Fault Diagnosis Method Based on Improved Residual Network Electronics · Multidisciplinary Digital Publishing Institute · 2024 10.3390/electronics13183749
  39. Centrifugal Pump Fault Detection with Hybrid Feature Pool and Deep Learning 2023 10.1109/ibcast59916.2023.10712967
  40. Milling Machine Fault Diagnosis Using Acoustic Emission and Hybrid Deep Learning with Feature Optimization Applied Sciences · Multidisciplinary Digital Publishing Institute · 2024 10.3390/app142210404
  41. Advanced Bearing-Fault Diagnosis and Classification Using Mel-Scalograms and FOX-Optimized ANN Sensors · Multidisciplinary Digital Publishing Institute · 2024 10.3390/s24227303
  42. Hybrid Deep Learning Model for Fault Diagnosis in Centrifugal Pumps: A Comparative Study of VGG16, ResNet50, and Wavelet Coherence Analysis Machines · Multidisciplinary Digital Publishing Institute · 2024 10.3390/machines12120905