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

CWMS-GAN: A small-sample bearing fault diagnosis method based on continuous wavelet transform and multi-size kernel attention mechanism

관련 산업용 섬유 · (17) 스펀본드 부직포

기본 정보

저자
  1. Shun Yu — School of Systems and Computing, University of New South Wales, Canberra, Australia
  2. Zi Li — School of Systems and Computing, University of New South Wales, Canberra, Australia
  3. Jialin Gu — School of Systems and Computing, University of New South Wales, Canberra, Australia
  4. Runpu Wang — School of Systems and Computing, University of New South Wales, Canberra, Australia
  5. Xiaoyu Liu — Guanghua School of Management, Peking university, Beijing, China
  6. Li Lin — Faculty of Science and Engineering, Southern Cross University, Gold Coast, Australia
  7. Fusen Guo — School of Systems and Computing, University of New South Wales, Canberra, Australia
  8. Yuheng Ren — School of Business Economics, European Union University, Montreux, Switzerland
DOI
10.1371/journal.pone.0319202
저널
PLoS ONE
발행년도
2025
발행기관
Public Library of Science
피인용수
18
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1371/journal.pone.0319202
토픽
Gear and Bearing Dynamics Analysis
OpenAlex ID
W4409350408

평가 내용

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

초록

In industrial production, obtaining sufficient bearing fault signals is often extremely difficult, leading to a significant degradation in the performance of traditional deep learning-based fault diagnosis models. Many recent studies have shown that data augmentation using generative adversarial networks (GAN) can effectively alleviate this problem. However, the quality of generated samples is closely related to the performance of fault diagnosis models. For this reason, this paper proposes a new GAN-based small-sample bearing fault diagnosis method. Specifically, this study proposes a continuous wavelet convolution strategy (CWCL) instead of the traditional convolution operation in GAN, which can additionally capture the signal's frequency domain features. Meanwhile, this study designed a new multi-size kernel attention mechanism (MSKAM), which can extract the features of bearing vibration signals from different scales and adaptively select the features that are more important for the generation task to improve the accuracy and authenticity of the generated signals. In addition, the structural similarity index (SSIM) is adopted to quantitatively evaluate the quality of the generated signal by calculating the similarity between the generated signal and the real signal in both the time and frequency domains. Finally, we conducted extensive experiments on the CWRU and MFPT datasets and made a comprehensive comparison with existing small-sample bearing fault diagnosis methods, which verified the effectiveness of the proposed approach.

본문 69,827자

본문 펼치기
# PLOS ONE OPEN ACCESS Citation: Yu S, Li Z, Gu J, Wang R, Li L, Li L. et al. (2025) CWMS-GAN: A small-sample bearing fault diagnosis method based on continuous wavelet transform and multi-size kernel attention mechanism. PLoS ONE 20(4): [e0319202. https://doi.org/10.1371/journal.pone.](https://doi.org/10.1371/journal.pone.0319202) [0319202](https://doi.org/10.1371/journal.pone.0319202) Editor: Burak Erkayman, Ataturk University, TÜRKIYE Received: October 29, 2024 Accepted: January 28, 2025 Published: April 11, 2025 Peer Review History: PLOS recognizes the benefits of transparency in the peer review process; therefore, we enable the publication of all of the content of peer review and author responses alongside final, published articles. The editorial history of this article is available [here: https://doi.org/10.1371/journal.pone.](https://doi.org/10.1371/journal.pone.0319202) [0319202](https://doi.org/10.1371/journal.pone.0319202) Copyright: © 2025 Yu et al. This is an open access article distributed under the terms of the [Creative Commons Attribution License, which](https://creativecommons.org/licenses/by/4.0/) permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. Data availability statement: The data for this study can be found in the following repositories: [CWRU dataset: https://doi.org/10.6084/](https://doi.org/10.6084/m9.figshare.27966906.v1) [m9.figshare.27966906.v1 and MFPT dataset:](https://doi.org/10.6084/m9.figshare.27966906.v1) RESEARCH ARTICLE ## CWMS-GAN: A small-sample bearing fault diagnosis method based on continuous wavelet transform and multi-size kernel attention mechanism Shun Yu <sup>1</sup> <sup>☯</sup> , Zi Li <sup>1</sup> <sup>☯</sup> , Jialin Gu <sup>1</sup> , Runpu Wang <sup>1</sup> , Xiaoyu Liu <sup>2</sup> , Lin Li <sup>3</sup> , Fusen Guo 1, Yuheng Ren 4 1, Yuheng Ren 4 1 School of Systems and Computing, University of New South Wales, Canberra, Australia, 2 Guanghua School of Management, Peking university, Beijing, China, 3 Faculty of Science and Engineering, Southern Cross University, Gold Coast, Australia, 4 School of Business Economics, European Union University, Montreux, Switzerland ☯ These authors contributed equally to this work. ∗ [hoture@126.com](mailto:hoture@126.com) ### Abstract In industrial production, obtaining sufficient bearing fault signals is often extremely diffi cult, leading to a significant degradation in the performance of traditional deep learning based fault diagnosis models. Many recent studies have shown that data augmenta tion using generative adversarial networks (GAN) can effectively alleviate this prob lem. However, the quality of generated samples is closely related to the performance of fault diagnosis models. For this reason, this paper proposes a new GAN-based small sample bearing fault diagnosis method. Specifically, this study proposes a continuous wavelet convolution strategy (CWCL) instead of the traditional convolution operation in GAN, which can additionally capture the signal’s frequency domain features. Mean while, this study designed a new multi-size kernel attention mechanism (MSKAM), which can extract the features of bearing vibration signals from different scales and adaptively select the features that are more important for the generation task to improve the accu racy and authenticity of the generated signals. In addition, the structural similarity index (SSIM) is adopted to quantitatively evaluate the quality of the generated signal by cal culating the similarity between the generated signal and the real signal in both the time and frequency domains. Finally, we conducted extensive experiments on the CWRU and MFPT datasets and made a comprehensive comparison with existing small-sample bear ing fault diagnosis methods, which verified the effectiveness of the proposed approach. Introduction Rolling bearings, known as the “joints of industry,” are critical components in rotating machinery and are widely used in various fields of industrial production [1]. However, due to prolonged high-speed operation, complex system environments, improper assembly, and inadequate lubrication, rolling bearings often experience failures during operation, which can PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 1/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method [https://doi.org/10.6084/m9.figshare.](https://doi.org/10.6084/m9.figshare.27966912.v1) affect the normal functioning of the equipment [2]. Once the equipment fails, it may cause [27966912.v1.](https://doi.org/10.6084/m9.figshare.27966912.v1) economic loss, or it may cause safety accidents and threaten people’s lives [3,4]. Therefore, Funding: The author(s) received no specific funding for this work. economic loss, or it may cause safety accidents and threaten people’s lives [3,4]. Therefore, accurately diagnosing the failure state of rolling bearings is crucial. This not only helps reduce maintenance costs and improve production efficiency but also enables timely elimination of safety hazards, thereby safeguarding people’s lives and property. With the continuous improvement of computer computing power and artificial intelligence technology, various intelligent bearing fault diagnosis models [5] have emerged in response to the ensuing challenges of massive data processing and the demand for real-time monitoring. The existing intelligent rolling bearing fault diagnosis methods can be categorized into two main categories: machine learning-based [6–8] and deep learning-based [9–12]. Moosavian et al. [6] proposed a fault diagnosis method for the main radial bearings of internal combustion engines based on power spectral density and K-Nearest Neighbors (KNN). Li et al. [7] analyzed multiple features reflecting bearing conditions and selected 12 critical features as inputs to Artificial Neural Network (ANN) for fault recognition. Zheng et al. [8] extracted multi-scale fuzzy entropy from bearing fault signals and used it as a feature input to Support Vector Machine (SVM) for fault classification. Deng et al. [9] introduced the Deep Boltzmann Machine (DBM) model to identify the fault conditions of rolling bearings, extracting time-domain, frequency-domain, and time-frequency domain features as input parameters for the DBM model, finding that combining time-domain and time-frequency features of the signal is more suitable for DBM in achieving bearing fault recognition. Fuan et al. [10] developed an Adaptive Deep Convolutional Neural Network (CNN) for rolling bearing fault diagnosis, utilizing Particle Swarm Optimization to determine the main parameters of the deep CNN model. Xia et al. [11] proposed an intelligent fault diagnosis method based on the stacked denoising autoencoder (AE) deep neural network, which applies the denoising autoencoder to unlabeled data to extract representative features. Ding et al. [12] introduced a method for extracting fault features of transmission devices using Adaptive Variational Mode Decomposition (AVMD) and employed a Deep Belief Network (DBN) for pattern recognition. Although the methods mentioned above have achieved excellent results in fault diagnosis, they rely on a large amount of data for model training. However, in practical engineering, monitoring data for mechanical equipment often suffers from low usability and low-value density, resulting in a severe scarcity of bearing fault data [13]. Therefore, fault diagnosis of bearings under small-sample conditions has become a research focus in this field [14]. To address this challenge, researchers have proposed various solutions, among which data sampling is one of the standard processing techniques. This method expands the data quantity of minority classes by undersampling the abundant samples and oversampling the scarce ones, thereby alleviating the problem of sample scarcity [15–17]. However, data sampling merely increases the quantity of the original data without fundamentally enhancing the diversity of the data, resulting in limited improvement effects from this approach. Meta-learning accumulates learning experience by training on multiple tasks to enhance a model’s ability to adapt quickly to new tasks, effectively addressing the small-sample problem. Models based on meta-learning [18,19] typically employ task partitioning and rapid adaptation strategies to improve the effectiveness of small-sample bearing fault diagnosis. In contrast, transfer learning guides target domain learning by leveraging information obtained from the source domain to address the issue of insufficient training data in the target domain. It often uses strategies such as model pre-training and fine-tuning to enhance the effectiveness of small-sample bearing fault diagnosis [20,21]. While meta-learning and transfer learning offer practical solutions for small-sample fault diagnosis, neither method has thoroughly resolved the issue of limited data in fault diagnosis. PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 2/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method In recent years, more researchers have focused on using Generative Adversarial Networks (GAN) and their variants [22–25] to address the challenge of insufficient bearing data in practical engineering applications. Liang et al. [26] extracted time-frequency image features from one-dimensional signals using wavelet transformation and employed GAN to generate additional time-frequency image samples to compensate for the lack of actual data. Yang et al. [27] proposed CGAN-2D-CNN, which converts vibration signals into two-dimensional grayscale images and utilizes Conditional Generative Adversarial Networks (CGAN) to generate grayscale images that assist actual samples in fault diagnosis. However, when converting signals from one dimension to two-dimensional images, inherent vibration features from the original one-dimensional bearing signals, such as periodicity and fault pulse characteristics, may be lost, adversely affecting the model’s diagnostic performance. Li et al. [28] introduced an Auxiliary Class Wasserstein GAN with Gradient Penalty (ACWGAN-GP) that directly generates one-dimensional bearing signals to alleviate the problem of data imbalance in fault diagnosis. Yang et al. [29] presented a Structure Similarity-based Generative Adversarial Network (SSGAN), which, combined with an improved MobileNetv3, is used for small-sample bearing fault diagnosis. Luo et al. [30] proposed a Conditional Deep Convolutional GAN (CDCGAN) for imbalanced fault diagnosis, conducting a detailed study on its effectiveness. Wang et al. [31] proposed E-GAN, which utilizes a Deep Convolutional GAN (DCGAN) to generate more samples and integrates a K-means clustering algorithm for small-sample fault classification. Gao et al. [32] combined transformers with convolutional neural networks to propose ICoT-GAN, which comprehensively extracts global and local temporal features from the original signals, thereby generating high-quality signals. Chen et al. [33] developed FMRGAN, which addresses the checkerboard artefacts caused by transposed convolutions in the generator, aiming to produce high-quality fault data to enhance the training dataset and improve the performance of fault diagnosis models under limited data conditions. Despite existing small-sample bearing fault diagnosis methods based on Generative Adversarial Networks (GAN) having achieved significant results, they typically focus on either timedomain or frequency-domain features when generating signals and lack a systematic analysis of the reliability of the generated signals. This may lead to issues with the effectiveness and accuracy of the generated data in practical applications. Therefore, this paper proposes a novel small-sample bearing fault diagnosis method based on GANs and conducts an in-depth analysis of the reliability of the generated samples to ensure that the generated data can more effectively assist in enhancing the performance of fault diagnosis models. The contributions of this paper are as follows: 1. This paper proposes a new GAN-based small-sample bearing fault diagnosis method. A large number of experiments are carried out on CWRU and MFPT data sets, which fully proves the method’s feasibility and effectiveness. 2. This study proposes a continuous wavelet convolution strategy (CWCL) to reconfigure the conventional convolutional layers of the generator and discriminator in GAN. The aim is to enable the model to capture detailed information about the signal in both time and frequency domains and thus generate higher-quality samples. 3. This paper designs a multi-size kernel attention mechanism (MSKAM) and applies it to GAN. MSKAM can extract feature information from bearing vibration signals at different scales and adaptively select the most important features for the generation task, thereby improving the accuracy and authenticity of the generated signals. PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 3/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method Relevant theory Deep Convolutional Generative Adversarial Network It is well known that Deep Convolutional Generative Adversarial Network (DCGAN) is identical to GAN [22] in principle; the main difference is that DCGAN replaces the traditional fully-connected layer in GAN with a convolutional layer, which enhances the model’s ability to capture sample features. As shown in Fig 1, DCGAN [24] consists of the generator and the discriminator, and its core is the adversarial training process between the generator and the discriminator. In this process, the goal of the discriminator is to maximize the ability to distinguish actual data from generated data, and its loss function is usually expressed as follows: _LD_ = _Ex_ ∼ _pdata_ ( _x_ )[log _D_ ( _x_ )] + _Ez_ ∼ _p_ ( _z_ )[log(1 – _D_ ( _G_ ( _z_ )))] (1) where _G_ ( _z_ ) denotes the generated data by the generator based on the random noise _z_, while _D_ ( _x_ ) and _D_ ( _G_ ( _z_ )) denote the discriminator’s output probabilities of the actual data _x_ and the generated data _G_ ( _z_ ), the discriminator tries to maximize _LD_, i.e., to keep _D_ ( _x_ ) as close to 1 as possible (i.e., to identify the actual data correctly), while keeping _D_ ( _G_ ( _z_ )) as close to 0 as possible (i.e., to identify the generated data as forged correctly). The generator’s goal is to produce realistic data that the discriminator cannot distinguish between true and false. Therefore, the loss function of the generator is as follows: _LG_ = _Ez_ ∼ _p_ ( _z_ )[log(1 – _D_ ( _G_ ( _z_ )))] (2) The generator tries to minimize the loss _LG_ (i.e., make _D_ ( _G_ ( _z_ )) close to 1), aiming to make the discriminator mistakenly believe that the generated data is actual. During the model training process, the generator and the discriminator continuously optimize their respective performances by confronting each other until both sides reach a Nash equilibrium, i.e., the generated data by the generator is indistinguishable from the actual data, and the discriminator is no longer able to judge the authenticity accurately. <u>Fig 1. The detailed structure of Deep Convolutional Generative Adversarial Network (DCGAN).</u> [https://doi.org/10.1371/journal.pone.0319202.g001](https://doi.org/10.1371/journal.pone.0319202.g001) PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 4/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method Continuous Wavelet Transform Due to the influence of load changes, rotational speed fluctuations, and changes in the state of the bearing itself, rolling bearing signals often show prominent non-stationary characteristics [34]. In recent years, wavelet theory has opened up a new path in fault diagnosis [35], owing to its unique advantage in dealing with non-stationary signals. Continuous Wavelet Transform (CWT) [36], one of the commonly used time-frequency analysis tools, is based on the core idea of convolving the signal with a mother wavelet function to extract the timefrequency features of the signal at different scales and time intervals. The mathematical expression of CWT is as follows: (3) _a_ <sup>_<u>b</u>_</sup> <sup>)</sup> <sup>_dt_</sup> <u>1</u> _W_ ( _a_, _b_ ) = ~~√~~ –∞∞ <sup>_x_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)?∗</sup> <sup>(</sup> <sup>_<u>t</u>_</sup> <sup><u>–</u></sup> _a_ <sup>_<u>b</u>_</sup> ∞ | _a_ | <sup>∫</sup> In Eq (3), _x_ ( _t_ ) represents the input signal, and ?( _t_ ) is the mother wavelet function. By adjusting the scale factor _a_, the wavelet can be compressed or stretched to capture components of different frequencies. In contrast, the translation factor _b_ controls the movement of the wavelet function along the time axis, allowing the analysis of signal features at different ~~√~~ time positions. The normalization factor 1/ | _a_ | ensures energy consistency across differ ~~√~~ time positions. The normalization factor 1/ | _a_ | ensures energy consistency across differ ent scales. In short, CWT provides both time and frequency information of the signal and performs multi-scale analysis through the dilation and translation of the wavelet function, making it widely used for time-frequency feature extraction of non-stationary signals. Convolutional Block Attention Module Traditional convolutional neural networks [37–39] still have some limitations in feature expressiveness, so Woo et al. [40] proposed the Convolutional Block Attention Module (CBAM), which effectively enhances the network’s attention to essential features while suppressing the influence of unimportant features, thus improving the model performance. As shown in Fig 2, CBAM consists of two separate sub-modules: the channel and spatial attention modules. The role of the channel attention module is to weight each channel of the feature map to highlight key features. Specifically, given an input feature _F_ ∈ℝ <sup>_H_</sup> <sup>×</sup> <sup>_W_</sup> <sup>×</sup> <sup>_C_</sup>, where _H_, _W_, and _C_ represent the height, width, and number of channels of _F_, respectively. _F_ is first compressed into two 1 × 1 × _C_ feature vectors by average pooling and max pooling and processed through a shared fully connected layer (MLP). Next, the output features of the MLP are summed channel-by-channel and activated by sigmoid to generate the final channel attention feature _Mc_ ( F ) ∈ℝ <sup>_C_</sup> . Finally, _Mc_ ( F ) is subjected to an element-by-element multiplication operation with the input feature map _F_, and the result _F_ <sup>′</sup> is then fed into the spatial attention module. _Mc_ ( _F_ ) = ?( _MLP_ ( _AvgPool_ ( _F_ )) + _MLP_ ( _MaxPool_ ( _F_ ))) (4) _F_ <sup>′</sup> = _Mc_ ( _F_ ) ⊗ _F_ (5) The spatial attention module first compresses the feature map _F_ <sup>′</sup> across the channel dimension, generating two feature maps of size _H_ × _W_ × 1, obtained through average pooling and max pooling operations. These two feature maps are then concatenated along the channel dimension to form a feature map of size _H_ × _W_ × 2, which is convolved using a 7×7 convolution layer. After passing through a sigmoid activation function, the spatial attention weight _Ms_ ( F ) ∈ℝ <sup>_H_</sup> <sup>×</sup> <sup>_W_</sup> is generated. Finally, _Ms_ ( F ) is multiplied element-wise with _F_ <sup>′</sup> to obtain the PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 5/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method <u>Fig 2. The detailed structure of Convolutional Block Attention Module (CBAM).</u> [https://doi.org/10.1371/journal.pone.0319202.g002](https://doi.org/10.1371/journal.pone.0319202.g002) final weighted feature map _F_ <sup>′′</sup> . The formula is as follows: _Ms_ ( _F_ ) = ? ( _f_ <sup>7×7</sup> ([ _AvgPool_ ( _F_ <sup>′</sup> ); _MaxPool_ ( _F_ <sup>′</sup> )])) (6) _F_ <sup>′′</sup> = _Ms_ ( _F_ ) ⊗ _F_ <sup>′</sup> (7) In Eq (6), _f_ <sup>7×7</sup> represents a convolution operation with a kernel size 7×7. [ _AvgPool_ ( _F_ <sup>′</sup> ); _MaxPool_ ( _F_ <sup>′</sup> )] refers to the concatenation of _AvgPool_ ( _F_ <sup>′</sup> ) and _MaxPool_ ( _F_ <sup>′</sup> ) along the channel dimension. In Eq (7), _F_ <sup>′′</sup> represents the key features that are more helpful to the current task after filtering irrelevant redundant information, thus improving the inherent feature representation ability of the model. Proposed methods Fig 3 illustrates the overall framework of the proposed small-sample rolling bearing fault diagnosis method, which consists of three parts: data preprocessing, data augmentation, and a classification model. First, the data preprocessing module collects bearing signals and divides them into limited training and test sets. Next, the data augmentation module optimizes the original DCGAN using Continuous Wavelet Convolution (CWCL) and Multi-Size Kernel Attention Mechanism (MSKAM) and trains on the limited training set to generate new samples. Subsequently, PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 6/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method <u>Fig 3. The overall framework of small sample fault diagnosis method based on CWMS-GAN.</u> [https://doi.org/10.1371/journal.pone.0319202.g003](https://doi.org/10.1371/journal.pone.0319202.g003) the generated signals are evaluated for quality using SSIM. Finally, the limited training set is mixed with the generated signals and input into the classification model for training, thereby achieving the final fault classification. PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 7/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method Continuous Wavelet Convolutional Layer Although conventional convolution performs well in many bearing fault diagnosis tasks, it cannot effectively capture transient variations and bursty signal features because it uses a fixed-size convolution kernel to extract features. In addition, conventional convolution cannot provide both time and frequency information, making a comprehensive understanding of the spectral and temporal characteristics of the signal difficult. The conventional convolution operation is defined as follows: –∞ <sup>_x_</sup> <sup>(?)</sup> <sup>_w_</sup> <sup>(</sup> <sup>_t_</sup> <sup>– ?)</sup> <sup>_d_</sup> <sup>?</sup> (8) _y_ ( _t_ ) = ( _x_ ∗ _w_ )( _t_ ) = ∫ ∞ where _w_ ( _t_ ) is a convolution kernel of fixed size, and _x_ ( _t_ ) and _y_ ( _t_ ) denote the input and output signals, respectively. As described in the subsection “Continuous Wavelet Transform,” the CWT can provide signal time and frequency information and perform multi-scale analysis by expanding and translating the wavelet function to extract the signal features effectively. However, in practical applications, the selection of the mother wavelet is crucial, and the Morlet wavelet [41] combines sinusoidal and Gaussian functions, which has good time and frequency localization ability, and its expression is ?( _t_ ) = _e_ <sup>_j_</sup> <sup>2?</sup> <sup>_f_</sup> <sup>0</sup> <sup>_t_</sup> _e_ <sup>–</sup> 2 <sup>_<u>t</u>_</sup> ? <sup>22</sup> (9) In Eq (9), _e_ <sup>–</sup> 2 <sup>_<u>t</u>_</sup> ? <sup>22</sup> represents a Gaussian function, _e_ <sup>_j_</sup> <sup>2?</sup> <sup>_f_</sup> <sup>0</sup> <sup>_t_</sup> represents a sinusoidal wave with frequency _f_ 0, _f_ 0 denotes the center frequency of the sinusoidal wave, which is set to 5, and ? represents the standard deviation of the Gaussian function, with its value set to 2?1 _f_ 0 <sup>. There-</sup> fore, this paper selects the Morlet wavelet as the mother wavelet function and applies it to the CWT to construct a Continuous Wavelet Convolutional Layer (CWCL). Subsequently, the CWCL will replace the traditional convolutional layers in the GAN and fault diagnosis classifier, as shown in the following formula: _y_ ( _a_, _b_ ) = ∫ –∞ <sup>_x_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)?</sup> <sup>_a_</sup> <sup>,</sup> <sup>_b_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_dt_</sup> (10) ∞ <u>1</u> ? _a_, _b_ ( _t_ ) = ~~√~~ | _a_ | 2 <sup>_<u>t</u>_</sup> _a_ <sup><u>–2</u></sup> <sup>_<u>b</u>_</sup> ? <sup><u>)22</u></sup> (11) _e_ <sup>_j_</sup> <sup>2?</sup> <sup>_f_</sup> <sup>0</sup> <u>(</u> _<u>t</u>_ <u>–</u> _<u>b</u>_ <u>)</u> <u>–</u> _<u>b</u>_ <u>)</u> _a_ _e_ <sup>–</sup> <sup><u>(</u></sup> 2 <sup>_<u>t</u>_</sup> _a_ <sup><u>–2</u></sup> <sup>_<u>b</u>_</sup> ? <sup><u>)22</u></sup> Compared with traditional convolutional operations, CWCL enables GAN to extract timedomain features and capture signal frequency variations. This results in a more comprehensive understanding of the time-frequency characteristics of non-smooth signals, which helps to improve the quality of the signals generated by the GAN. Multi-size kernel attention mechanism As mentioned earlier, the fault signals of bearings usually have non-stationary characteristics, i.e., their frequency components change continuously over time. The channel attention module of traditional CBAM only uses a single-scale convolution kernel, which makes it difficult to capture the variable frequency features in the fault signal effectively. Therefore, this paper improves the channel attention module in CBAM and proposes a new multi-size kernel attention mechanism (MSKAM), as shown in Fig 4, which is capable of extracting features under multi-frequency components through convolution kernels of different scales to enhance the model’s adaptability to non-smooth fault signals. PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 8/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method <u>Fig 4. The structure of multi-size kernel attention mechanism.</u> [https://doi.org/10.1371/journal.pone.0319202.g004](https://doi.org/10.1371/journal.pone.0319202.g004) In this study, we first use two different sizes of convolution kernels, 3×3 and 5×5, to perform convolution operations on the input feature maps _F_, respectively, so as to obtain the feature maps _F_ 1 and _F_ 2. Since feature maps _F_ 1 and _F_ 2 of different scales contain a large amount of redundancy information, we removed this redundancy information before performing channel concatenation. The formula is as follows: _F_ 1 = _FConv_ <sup>3×3</sup> _Conv_ <sup>3×3</sup> <sup>;</sup> <sup>_F_</sup> <sup>2</sup> <sup>=</sup> <sup>_F_</sup> Conv <sup>5×5</sup> Conv <sup>5×5</sup> <sup>;</sup> <sup>_F_</sup> <sup>3</sup> <sup>=</sup> <sup>_F_</sup> <sup>1</sup> <sup>–</sup> <sup>_F_</sup> <sup>2</sup> (12) _F_ <sup>_Con_</sup> = _Concatenate_ [ _F_ 1; _F_ 3] (13) where _F_ 3 denotes the feature map after removing the coexisting redundant information in _F_ 1 and _F_ 2, while _FConv_ denotes the feature map obtained by channel concatenation the feature maps _F_ 1 and _F_ 3 and then calculating its channel attention weight _Mc_ ( _F_ <sup>_Con_</sup> ). Next, _Mc_ ( _F_ <sup>_Con_</sup> ) is divided into two parts: _M_ <sup>3</sup> _c_ <sup>×3</sup> and _Mc_ <sup>5×5</sup> . Finally, the channel attention weights of the branches <sup>3</sup> _c_ <sup>×3</sup> and _Mc_ <sup>5×5</sup> divided into two parts: _M_ <sup>3</sup> _c_ <sup>×3</sup> and _Mc_ <sup>5×5</sup> . Finally, the channel attention weights of the branches are fused to obtain the final channel attention feature map _Ffin_ . The whole process can be represented as _Fc_ _1 = _Mc_ <sup>3×3</sup> _c_ <sup>3×3</sup> ⊗ _F_ 1; _Fc_ _3 = _Mc_ <sup>5×5</sup> _c_ <sup>5×5</sup> ⊗ _F_ 3 (14) _Ffin_ = _Fc_ _1 ⊗ _Fc_ _3 (15) Here, _M_ <sup>3</sup> _c_ <sup>×3</sup> <sup>3</sup> _c_ <sup>×3</sup> and _M_ <sup>5</sup> _c_ <sup>×5</sup> Here, _M_ <sup>3</sup> _c_ <sup>×3</sup> and _M_ <sup>5</sup> _c_ <sup>×5</sup> represent the channel attention weights corresponding to _F_ 1 and _F_ 3, respectively. _Fc_ _1 is the enhanced feature map obtained by element-wise multiplication of _M_ <sup>3</sup> _c_ <sup>×3</sup> and _F_ 1, while _Fc_ _3 is the enhanced feature map obtained by element-wise multiplication _M_ <sup>3</sup> _c_ <sup>×3</sup> and _F_ 1, while _Fc_ _3 is the enhanced feature map obtained by element-wise multiplication of _M_ <sup>5</sup> _c_ <sup>×5</sup> and _F_ 3. <sup>5</sup> _c_ <sup>×5</sup> and _F_ 3. Time and frequency feature similarity The CWMS-GAN proposed in this paper improves the original DCGAN by enabling the model to capture both time-domain features and frequency variations of the signals to generate higher-quality samples to solve the problem of limited bearing fault data in practice. Wang et al. proposed the Structural Similarity Index (SSIM) [42], which measures the similarity between two images by simulating the perceptual characteristics of the human visual PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 9/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method system. More importantly, as mentioned in their paper, SSIM is not limited to image processing. In fact, as a symmetric similarity measure, SSIM can also be used to assess the similarity between any two signals. Therefore, in this paper, SSIM is used to compute the similarity between the generated signal and the real signal in both time and frequency domains for quantitative evaluation of the generated signal. Suppose now there are a real signal _r_ and a generated signal _g_ and _r_, _g_ ∈ℝ <sup>1×1024</sup> ; the steps of SSIM are described as follows: - Calculate the mean as well as the variance of _r_ and _g_, respectively, with the mathematical formulas shown in Eqs (16) and (17). ? _r_ = <sup><u>1</u></sup> _N_ _N_ ∑ _i_ =1 _ri_, ? _g_ = <sup><u>1</u></sup> _N_ _ri_, ? _g_ = <sup><u>1</u></sup> _N_ ∑ _i_ =1 _gi_ (16) _N_ ∑ _i_ =1 _N_ ∑ _i_ =1 <u>1</u> ? _r_ <sup>2</sup> <sup>=</sup> _N_ - 1 <u>1</u> _r_ <sup>2</sup> <sup>=</sup> _N_ - 1 <u>1</u> ( _ri_ - ? _r_ ) <sup>2</sup>, ? _g_ <sup>2</sup> <sup>=</sup> _N_ - 1 ( _gi_ - ? _g_ ) <sup>2</sup> (17) where ? _r_ and ? _g_ denote the mean of _r_ and _g_, respectively, and ? _r_ <sup>2</sup> _r_ <sup>2</sup> <sup>and ?</sup> _g_ <sup>2</sup> where ? _r_ and ? _g_ denote the mean of _r_ and _g_, respectively, and ? _r_ <sup>2</sup> <sup>and ?</sup> _g_ <sup>2</sup> <sup>indicate the vari-</sup> ance of _r_ and _g_ . _N_ is the length of the signal, and _ri_ and _gi_ represent the value of the _i_ -th point of _r_ and _g_, respectively. - Calculate the covariance ? _rg_ between _r_ and _g_ as shown in Eq (18). <u>1</u> ? _rg_ = _N_ - 1 _N_ ∑ _i_ =1 ( _ri_ - ? _r_ )( _gi_ - ? _g_ ) (18) - Define three comparison functions for luminance comparison, contrast comparison, and structure comparison, as shown in Eq (19). _l_ ( _r_, _g_ ) = <sup><u>2?</u></sup> <sup>_<u>r</u>_</sup> <sup><u>?</u></sup> <sup>_<u>g</u>_</sup> <sup>+</sup> <sup>_<u>C</u>_</sup> <sup><u>1</u></sup> ? _r_ <sup>2</sup> + ? _g_ <sup>2</sup> + _C_ 1 , _c_ ( _r_, _g_ ) = <sup><u>2?</u></sup> <sup>_<u>r</u>_</sup> <sup><u>?</u></sup> <sup>_<u>g</u>_</sup> <sup>+</sup> <sup>_<u>C</u>_</sup> <sup><u>2</u></sup> ? _r_ <sup>_r_</sup> + ? _g_ <sup>2</sup> + _C_ 2 , _c_ ( _r_, _g_ ) = <sup><u>2?</u></sup> <sup>_<u>r</u>_</sup> <sup><u>?</u></sup> <sup>_<u>g</u>_</sup> <sup>+</sup> <sup>_<u>C</u>_</sup> <sup><u>2</u></sup> , _s_ ( _r_, _g_ ) = <sup><u>?</u></sup> <sup>_<u>rg</u>_</sup> <sup>+</sup> <sup>_<u>C</u>_</sup> <sup><u>3</u></sup> ? _r_ ? _g_ + _C_ 3 (19) where _C_ 1 = ( _K_ 1 × _L_ ) <sup>2</sup>, _C_ 2 = ( _K_ 2 × _L_ ) <sup>2</sup>, _C_ 3 = <sup>_<u>C</u>_</sup> 2 <sup><u>2</u></sup> <sup>.</sup> <sup>_L_</sup> <sup>is the maximum magnitude of the signal</sup> _r_, and the values of _K_ 1 and _K_ 2 are 0.01 and 0.03, respectively. Where _K_ 1 and _K_ 2 are chosen based on the recommendations of Wang et al. in their work [42]. - Finally, the three comparison functions are multiplied to obtain the final SSIM index, as shown in Eq (20). _SSIM_ ( _r_, _g_ ) = (2? _r_ ? _g_ + _<u>C</u>_ 1)(2? _rg_ + _<u>C</u>_ 2) (20) (? _r_ <sup>2</sup> + ? _g_ <sup>2</sup> + _C_ 1)(? _r_ <sup>2</sup> + ? _g_ <sup>2</sup> + _C_ 2) The SSIM values range from –1 to 1, where a value close to 1 indicates high similarity between the two signals, and a value close to -1 indicates complete dissimilarity. For the bearing signals used in this study, which are one-dimensional with a consistent sampling length of 1024 points, we compute the SSIM directly on the entire signal rather than using a sliding window approach. This decision is based on the following considerations:(1) the sampling length of the signal is relatively short, and the distribution of characteristics is relatively uniform; (2) bearing vibration signals are typically periodic, where overall trends or frequency characteristics are more critical than minor local variations; (3) avoiding the use of a sliding window PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 10/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method reduces computational complexity. Consequently, the SSIM is calculated for the entire signal, effectively treating the sliding window size as 1 × 1024. In this way, the similarity between signals _r_ and _g_ is first assessed based on their timedomain characteristics. Subsequently, their frequency-domain representations are obtained by applying the Fast Fourier Transform (FFT) to _r_ and _g_, and the SSIM calculation is repeated on their respective absolute values rather than the complex-valued outputs of the FFT. It is important to note that the SSIM values computed for the time and frequency domains are reported and analyzed separately without being combined into a single similarity metric. Experiments and results analysis In this paper, extensive experiments are conducted on two publicly available rolling bearing datasets, CWRU and MFPT, to evaluate the performance of the proposed CWMS-GAN. First, we use limited training samples to train CWMS-GAN to generate new samples. Then, these generated samples are fused with the original data to expand the training dataset, and the diagnostic performance of CWMS-GAN is evaluated on the test set. Finally, by comparing with multiple state-of-the-art methods, the effectiveness and superiority of the proposed method are further validated. Additionally, we use the SSIM metric to quantitatively assess the quality of the generated samples by CWMS-GAN. The method is implemented using the PyTorch framework and Python 3.8. The development environment is Pycharm 2022, and the experimental equipment is equipped with an Intel Core i7-12700H processor (16 GB RAM) and an RTX 3080 graphics card. Dataset description The CWRU dataset [43], collected by Case Western Reserve University, includes equipment such as a motor, torque sensor, dynamometer, and electronic controller. Single-point defects were introduced onto bearings using electric spark erosion to simulate fault conditions. Vibration signals were then collected under four load conditions (0, 1, 2, and 3 hp) at a sampling frequency of 12 kHz. The data covers four categories: healthy (H), inner race fault (IF), outer race fault (OF), and rolling element fault (BF). Each category is further subdivided into three damage sizes: 0.007, 0.014, and 0.021 inches. The MFPT dataset [44], provided by the American Society for Mechanical Failure Prevention Technology, contains multiple categories of data collected at different loads and sampling frequencies, organized into 23 categories. Specifically, the following categories are included: (1) three normal data and three outer ring fault data, all with a load of 270 lbs, an input shaft speed of 25 Hz, and a sampling frequency of 97,656 Hz. (2) seven sets of outer ring fault data, with an input shaft speed of 25 Hz, a sampling frequency of 48,828 Hz, and loads of 25, 50, 100, 150, 200, 250, and 300 lbs. (3) seven sets of inner ring fault data with the same rotational speed of 25 Hz, sampling frequency of 48828 Hz, and loads of 0, 50, 100, 150, 200, 250, and 300 lbs. Details of the CWRU and MFPT datasets used in the experiments in this study are shown in Table 1. Fault diagnosis under limited data condition In this section, we first analyze the performance of the CWMS-GAN-based bearing fault diagnosis method under different training sample sizes when the number of training samples is limited (i.e., no additional generated samples are used). To simulate the limited number of bearing fault samples in real working conditions, we selected 5, 10, 20, and 40 samples from each category to construct the training dataset. The test dataset was fixed at 100 samples per PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 11/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method Table 1. Detailed information about the CWRU and MFPT rolling bearing datasets. Dataset Fault location Labels Load Diameter/ Sample <u>frequency</u> Dataset Fault location Labels Load Diameter/ Sample Sampling Training set Test set <u>frequency</u> <u>points</u> <u>sample size</u> <u>sample size</u> CWRU Roller fault <u>Class 0</u> <u>0 hp</u> <u>0.007 inch</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> <u>Class 1</u> <u>0 hp</u> <u>0.014 inch</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> <u>Class 2</u> <u>0 hp</u> <u>0.021 inch</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> Inner race <u>Class 3</u> <u>0 hp</u> <u>0.007 inch</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> <u>Class 4</u> <u>0 hp</u> <u>0.014 inch</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> <u>Class 5</u> <u>0 hp</u> <u>0.021 inch</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> Outer race <u>Class 6</u> <u>0 hp</u> <u>0.007 inch</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> <u>Class 7</u> <u>0 hp</u> <u>0.014 inch</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> <u>Class 8</u> <u>0 hp</u> <u>0.021 inch</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> <u>Normal</u> <u>Class 9</u> <u>0 hp</u> <u>-</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> MFPT Inner race <u>Class 0</u> <u>0 lbs</u> <u>48828 Hz</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> <u>Class 1</u> <u>50 lbs</u> <u>48828 Hz</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> <u>Class 2</u> <u>150 lbs</u> <u>48828 Hz</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> <u>Class 3</u> <u>300 lbs</u> <u>48828 Hz</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> Outer race <u>Class 4</u> <u>0 lbs</u> <u>48828 Hz</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> <u>Class 5</u> <u>50 lbs</u> <u>48828 Hz</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> <u>Class 6</u> <u>150 lbs</u> <u>48828 Hz</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> <u>Class 7</u> <u>270 lbs</u> <u>97656 Hz</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> <u>Class 8</u> <u>300 lbs</u> <u>48828 Hz</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> <u>Normal</u> <u>Class 9</u> <u>270 lbs</u> <u>97656 Hz</u> <u>1024</u> <u>5/10/20/40</u> <u>100</u> Sampling <u>points</u> Training set <u>sample size</u> [https://doi.org/10.1371/journal.pone.0319202.t001](https://doi.org/10.1371/journal.pone.0319202.t001) Table 2. The diagnostic average accuracy on the test sets after attaching different numbers of generated samples to the CWRU and MFPT training sets. dataset Number of training samples for each class vAccuracy of the original dataset <u>Accuracy of the augmented datasets</u> 10 additional 20 additional generated generated samples per samples per <u>class</u> <u>class</u> <u>class</u> 20 additional generated samples per <u>class</u> training samples original dataset 10 additional 20 additional 30 additional 40 additional for each class generated generated generated generated samples per samples per samples per samples per <u>class</u> <u>class</u> <u>class</u> <u>class</u> CWRU <u>5</u> <u>76.54%</u> <u>85.62%</u> <u>91.25%</u> <u>93.04%</u> <u>94.31%</u> <u>10</u> <u>84.27%</u> <u>91.04%</u> <u>93.69%</u> <u>95.23%</u> <u>96.46%</u> <u>20</u> <u>91.79%</u> <u>94.55%</u> <u>96.35%</u> <u>97.47%</u> <u>98.79%</u> <u>40</u> <u>96.67%</u> <u>97.88%</u> <u>98.92%</u> <u>99.43%</u> <u>99.83%</u> MFPT <u>5</u> <u>71.25%</u> <u>82.56%</u> <u>88.31%</u> <u>90.57%</u> <u>91.74%</u> <u>10</u> <u>81.86%</u> <u>88.42%</u> <u>90.76%</u> <u>92.44%</u> <u>94.35%</u> <u>20</u> <u>89.06%</u> <u>91.55%</u> <u>93.24%</u> <u>94.85%</u> <u>96.09%</u> <u>40</u> <u>93.37%</u> <u>95.18%</u> <u>96.82%</u> <u>97.33%</u> <u>97.94%</u> 30 additional generated samples per <u>class</u> [https://doi.org/10.1371/journal.pone.0319202.t002](https://doi.org/10.1371/journal.pone.0319202.t002) category. To ensure the robustness of the results, we conducted 10 repetitions of the experiment, each with a different random split of the data into training and test sets, allowing us to obtain the average accuracy across these repetitions. As shown in Table 2, as the number of training samples increased from 5 to 40 per class, the accuracy of the CWRU dataset increased from 76.54% to 96.67%, and the accuracy of the MFPT dataset increased from 71.25% to 93.37%. These results indicate that as the number of training samples increases, the model is able to capture more feature information from the original data, which significantly enhances the generalization ability of the classification model and improves the fault diagnosis accuracy. Therefore, the number of training samples is crucial for deep learningbased fault diagnosis models, which also highlights the necessity of conducting bearing fault diagnosis research under small sample conditions. This section also explores the impact of the number of generated samples on the diagnostic performance of the model. Specifically, in the case of training CWMS-GAN to generate PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 12/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method new fault samples by selecting 5, 10, 20, and 40 samples for each class, respectively, 10, 20, 30, and 40 samples are generated sequentially to expand the original dataset and assist the classifier for training. The results are shown in Table 2. It can be easily found that the increase in the number of generated samples significantly improves the diagnostic accuracy of the model regardless of the number of original training samples. Taking the CWRU dataset as an example, the diagnostic accuracy of the model is only 76.54% when the number of original training samples is only 5, and with the increase in the number of generated samples from 10 to 40, the accuracy gradually increases from 85.62% to 94.31%. On the MFPT dataset, similarly, the diagnostic accuracy is only 71.25% when the original training sample is 5, but the accuracy improves to 91.74% when the generated samples are increased to 40. These results show that even under the condition of limited training samples, CWMS-GAN is able to generate sufficiently high-quality samples to significantly make up for the lack of raw data and effectively improve the performance of the diagnostic model. In order to visualize the effectiveness of CWMS-GAN in recognizing different fault types on the CWRU and MFPT datasets, in this section, the confusion matrix is used to visualize the classification results of CWMS-GAN with the number of training samples of 5, 10, 20, and 40, respectively, and supplemented with the generation of an additional 40 samples, as shown in Fig 5. The diagonal part of the confusion matrix represents the number of correctly classified samples, while the off-diagonal part shows the number of misclassified samples. It can be clearly seen that the recognition effect of CWMS-GAN on different fault types gradually improves as the number of training samples increases. The confusion matrix presented here is based on the median results of 10 repetitions for each experimental group. With fewer samples (e.g., 5 samples per class), there may be some confusion between certain fault types, resulting in a small number of misclassifications. However, as the number of training samples increases to 10, 20, and 40, the percentage of correct classifications improves significantly, and misclassifications in the non-diagonal part of the class gradually decrease. This trend is reflected in each fault type in both the CWRU and MFPT datasets, especially in the categories where the fault patterns are closer, which suggests that the samples generated by the CWMSGAN significantly help the model to learn the subtle features, especially when the number of samples is limited, which effectively enhances the model’s fault differentiation ability. To further evaluate the feature extraction capability of CWMS-GAN, this paper also examines the distribution of feature vectors in the embedding space. Specifically, under conditions where each class has 5, 10, 20, and 40 samples, along with an additional 40 generated samples, t-distributed Stochastic Neighbor Embedding (t-SNE) is used to reduce the high-dimensional features extracted from the last convolutional layer of the classifier into two-dimensional space for visualization (as shown in Fig 6). The results demonstrate that, on both the CWRU and MFPT datasets, the features extracted by CWMS-GAN exhibit distinct inter-class separation and high intra-class compactness in the two-dimensional space, highlighting the model’s ability to distinguish between different fault categories as well as the consistency within each category. Similarly, the t-SNE plots are generated based on the median results obtained from 10 repetitions of each experimental group. Comparison with the state-of-the-art methods In this section, the CWMS-GAN method proposed in this paper is compared with several current mainstream small-sample bearing fault diagnosis methods, including DCGAN, CGAN-2D-CNN, ACWGAN-GP, SSGAN, CDCGAN, E-GAN, and FMRGAN, to further validate its advantages. The comparison is conducted on the CWRU dataset. The choice of the CWRU dataset for this comparison is based on its widespread use in the literature, which PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 13/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method <u>Fig 5. Confusion matrix of CWMS-GAN on the test datasets of CWRU and MFPT.(a)-(d):CWRU 5,10,20,40;(e)-(h):MFPT 5,10,20,40.</u> [https://doi.org/10.1371/journal.pone.0319202.g005](https://doi.org/10.1371/journal.pone.0319202.g005) Fig 6. Distribution of t-SNE features of CWMS-GAN on the test datasets of CWRU and MFPT. (a)-(d):CWRU 5,10,20,40; (e)-(h):MFPT 5,10,20,40. Each category <u>has 100 points, representing the number of samples per category in the test dataset.</u> [https://doi.org/10.1371/journal.pone.0319202.g006](https://doi.org/10.1371/journal.pone.0319202.g006) PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 14/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method allows for a more direct and meaningful comparison with the majority of existing studies. Additionally, most research in this field has utilized the CWRU dataset along with private datasets to validate model performance, while the MFPT dataset has been less commonly used. Therefore, to ensure a consistent and fair comparison with other reported results, we have focused on the CWRU dataset in this study. The comparison results are shown in Table 3. It should be noted that these comparison methods are all based on the data provided in their original papers. As seen from Table 3, when the number of training samples per class is 5 and 20, the diagnostic accuracy of CWMSGAN is significantly higher than most of the comparison methods and only slightly lower than FMRGAN. Furthermore, compared to the training time of about 45 minutes for the CGAN-2D-CNN model, the training time of the proposed CWMS-GAN is about 52 minutes under the condition that only 10 samples per class are used as training data, and an additional 40 samples are generated. After training, the actual inference time of the CWMS-GAN in the bearing fault diagnosis task is about 5 minutes. Overall, the experimental results show that CWMS-GAN performs excellently under the condition of small samples and can generate high-quality fault samples and improve the accuracy of diagnostic models effectively, showing its advantages in the task of small-sample bearing fault diagnosis. Ablation experiment This section conducted detailed ablation experiments to assess the specific impact of the two components, CWCL and MSKAM, on the model’s classification accuracy. The related results are shown in Table 4. The experiments were conducted under different sample size conditions, specifically with each category having 5, 10, 20, and 40 samples, as well as an additional 40 generated samples. Consistent with the previous experimental setup, each set of experiments is repeated 10 times to ensure the robustness of the results. From Table 4, it can be observed that CWCL improved the performance by 2.25%, 1.62%, 0.75%, and 1.38% under different sample sizes, while MSKAM showed a more significant improvement, with increases of 3.07%, 2.1%, 1.49%, and 1.58%. This indicates that both CWCL and MSKAM can effectively enhance the model’s classification performance, with MSKAM demonstrating a more pronounced advantage. When combining CWCL, MSKAM, and TFPS, the classification accuracy of the model reached its optimal level, fully showcasing the synergistic effect among the three components. Table 3. Comparative experimental results under the CWRU dataset <u>Method</u> <u>Training Samples</u> <u>Addition generated samples</u> <u>Diagnostic average accuracy</u> <u>DCGAN [24] (2015)</u> <u>5</u> <u>20</u> <u>82.55%</u> <u>ACWGAN-GP [28] (2020)</u> <u>5</u> <u>20</u> <u>80.85%</u> <u>CDCGAN [30] (2021)</u> <u>5</u> <u>20</u> <u>80.9%</u> <u>CGAN-2D-CNN [27] (2021)</u> <u>12</u> <u>48</u> <u>96.33%</u> <u>E-GAN [31] (2021)</u> <u>20</u> <u>180</u> <u>98.62%</u> <u>SSGAN [29] (2022)</u> <u>5</u> <u>20</u> <u>84.6%</u> FMRGAN [33] (2024) <u>5</u> <u>20</u> <u>94.77%</u> <u>15</u> <u>40</u> <u>99.02%</u> CWMS-GAN <u>5</u> <u>20</u> <u>91.25%</u> <u>10</u> <u>40</u> <u>96.46%</u> <u>20</u> <u>40</u> <u>98.79%</u> <u>40</u> <u>40</u> <u>99.83%</u> [https://doi.org/10.1371/journal.pone.0319202.t003](https://doi.org/10.1371/journal.pone.0319202.t003) PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 15/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method Table 4. Results of ablation experiments on model classification accuracy. <u>CWCL</u> <u>MSKAM</u> <u>Diagnostic average accuracy of diferent samplesf</u> <u>5</u> <u>10</u> <u>20</u> <u>40</u> <u>89.31%</u> <u>92.46%</u> <u>95.79%</u> <u>97.45%</u> <u>✓</u> <u>91.56%</u> <u>94.08%</u> <u>96.54%</u> <u>98.83%</u> <u>✓</u> <u>92.38%</u> <u>94.56%</u> <u>97.28%</u> <u>99.03%</u> <u>✓</u> <u>✓</u> <u>94.31%</u> <u>96.46%</u> <u>98.79%</u> <u>99.83%</u> [https://doi.org/10.1371/journal.pone.0319202.t004](https://doi.org/10.1371/journal.pone.0319202.t004) Table 5. The SSIM evaluation values of generated signals and real signals on CWRU dataset <u>Method</u> <u>Fault location</u> <u>Average</u> DCGAN time domain <u>Class 0</u> <u>Class 1</u> <u>Class 2</u> <u>Class 3</u> <u>Class 4</u> <u>Class 5</u> <u>Class 6</u> <u>Class 7</u> <u>Class 8</u> <u>Class 9</u> 0.758 <u>0.6975</u> <u>0.7360</u> <u>0.6460</u> <u>0.7990</u> <u>0.7894</u> <u>0.8072</u> <u>0.8224</u> <u>0.8086</u> <u>0.6528</u> <u>0.8214</u> frequency <u>Class 0</u> <u>Class 1</u> <u>Class 2</u> <u>Class 3</u> <u>Class 4</u> <u>Class 5</u> <u>Class 6</u> <u>Class 7</u> <u>Class 8</u> <u>Class 9</u> 0.731 <u>domain</u> <u>0.7062</u> <u>0.6834</u> <u>0.6480</u> <u>0.7336</u> <u>0.7572</u> <u>0.7584</u> <u>0.8171</u> <u>0.7674</u> <u>0.6277</u> <u>0.8100</u> frequency <u>Class 0</u> <u>Class 1</u> <u>Class 2</u> <u>Class 3</u> <u>Class 4</u> <u>Class 5</u> <u>Class 6</u> <u>Class 7</u> <u>Class 8</u> <u>Class 9</u> 0.731 <u>domain</u> <u>0.7062</u> <u>0.6834</u> <u>0.6480</u> <u>0.7336</u> <u>0.7572</u> <u>0.7584</u> <u>0.8171</u> <u>0.7674</u> <u>0.6277</u> <u>0.8100</u> DCGAN +CWCL time domain <u>Class 0</u> <u>Class 1</u> <u>Class 2</u> <u>Class 3</u> <u>Class 4</u> <u>Class 5</u> <u>Class 6</u> <u>Class 7</u> <u>Class 8</u> <u>Class 9</u> 0.766 <u>0.7026</u> <u>0.7207</u> <u>0.6834</u> <u>0.8008</u> <u>0.8103</u> <u>0.8107</u> <u>0.8326</u> <u>0.8003</u> <u>0.6638</u> <u>0.8314</u> frequency <u>Class 0</u> <u>Class 1</u> <u>Class 2</u> <u>Class 3</u> <u>Class 4</u> <u>Class 5</u> <u>Class 6</u> <u>Class 7</u> <u>Class 8</u> <u>Class 9</u> 0.745 <u>domain</u> <u>0.7090</u> <u>0.7014</u> <u>0.6765</u> <u>0.7551</u> <u>0.7539</u> <u>0.7765</u> <u>0.8342</u> <u>0.7551</u> <u>0.6590</u> <u>0.8322</u> frequency <u>Class 0</u> <u>Class 1</u> <u>Class 2</u> <u>Class 3</u> <u>Class 4</u> <u>Class 5</u> <u>Class 6</u> <u>Class 7</u> <u>Class 8</u> <u>Class 9</u> 0.745 <u>domain</u> <u>0.7090</u> <u>0.7014</u> <u>0.6765</u> <u>0.7551</u> <u>0.7539</u> <u>0.7765</u> <u>0.8342</u> <u>0.7551</u> <u>0.6590</u> <u>0.8322</u> DCGAN time domain <u>Class 0</u> <u>Class 1</u> <u>Class 2</u> <u>Class 3</u> <u>Class 4</u> <u>Class 5</u> <u>Class 6</u> <u>Class 7</u> <u>Class 8</u> <u>Class 9</u> 0.785 +MSKAM <u>0.7584</u> <u>0.7361</u> <u>0.7043</u> <u>0.7924</u> <u>0.8231</u> <u>0.8307</u> <u>0.8475</u> <u>0.7909</u> <u>0.7035</u> <u>0.8649</u> time domain <u>Class 0</u> <u>Class 1</u> <u>Class 2</u> <u>Class 3</u> <u>Class 4</u> <u>Class 5</u> <u>Class 6</u> <u>Class 7</u> <u>Class 8</u> <u>Class 9</u> 0.785 <u>0.7584</u> <u>0.7361</u> <u>0.7043</u> <u>0.7924</u> <u>0.8231</u> <u>0.8307</u> <u>0.8475</u> <u>0.7909</u> <u>0.7035</u> <u>0.8649</u> frequency <u>Class 0</u> <u>Class 1</u> <u>Class 2</u> <u>Class 3</u> <u>Class 4</u> <u>Class 5</u> <u>Class 6</u> <u>Class 7</u> <u>Class 8</u> <u>Class 9</u> 0.77 <u>domain</u> <u>0.7215</u> <u>0.7380</u> <u>0.6966</u> <u>0.7855</u> <u>0.8065</u> <u>0.7980</u> <u>0.8458</u> <u>0.7517</u> <u>0.6997</u> <u>0.8519</u> time domain Class 0 Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7 Class 8 Class 9 0.818 <u>0.7787</u> <u>0.7949</u> <u>0.7304</u> <u>0.8261</u> <u>0.8377</u> <u>0.8583</u> <u>0.9084</u> <u>0.8159</u> <u>0.7349</u> <u>0.8983</u> frequency <u>Class 0</u> <u>Class 1</u> <u>Class 2</u> <u>Class 3</u> <u>Class 4</u> <u>Class 5</u> <u>Class 6</u> <u>Class 7</u> <u>Class 8</u> <u>Class 9</u> 0.795 <u>domain</u> <u>0.7537</u> <u>0.7740</u> <u>0.7058</u> <u>0.8104</u> <u>0.8242</u> <u>0.8054</u> <u>0.8735</u> <u>0.7966</u> <u>0.7251</u> <u>0.8729</u> frequency <u>Class 0</u> <u>Class 1</u> <u>Class 2</u> <u>Class 3</u> <u>Class 4</u> <u>Class 5</u> <u>Class 6</u> <u>Class 7</u> <u>Class 8</u> <u>Class 9</u> 0.77 <u>domain</u> <u>0.7215</u> <u>0.7380</u> <u>0.6966</u> <u>0.7855</u> <u>0.8065</u> <u>0.7980</u> <u>0.8458</u> <u>0.7517</u> <u>0.6997</u> <u>0.8519</u> CWMS-GAN time domain Class 0 Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7 Class 8 Class 9 0.818 (DCGAN +CWCL <u>0.7787</u> <u>0.7949</u> <u>0.7304</u> <u>0.8261</u> <u>0.8377</u> <u>0.8583</u> <u>0.9084</u> <u>0.8159</u> <u>0.7349</u> <u>0.8983</u> +MSKAM) frequency <u>Class 0</u> <u>Class 1</u> <u>Class 2</u> <u>Class 3</u> <u>Class 4</u> <u>Class 5</u> <u>Class 6</u> <u>Class 7</u> <u>Class 8</u> <u>Class 9</u> 0.795 <u>Class 0</u> <u>Class 1</u> <u>Class 2</u> <u>Class 3</u> <u>Class 4</u> <u>Class 5</u> <u>Class 6</u> <u>Class 7</u> <u>Class 8</u> <u>Class 9</u> 0.795 <u>0.7537</u> <u>0.7740</u> <u>0.7058</u> <u>0.8104</u> <u>0.8242</u> <u>0.8054</u> <u>0.8735</u> <u>0.7966</u> <u>0.7251</u> <u>0.8729</u> [https://doi.org/10.1371/journal.pone.0319202.t005](https://doi.org/10.1371/journal.pone.0319202.t005) Evaluation of generated samples The proposed CWMS-GAN employs a class-by-class approach to generating samples rather than training to generate all classes of data simultaneously. Notably, the above process is run in parallel. For each category, each sample is selected sequentially from the real samples, and an SSIM calculation is performed with all the generated samples for that category. Finally, the quality of the generated samples for that category is evaluated using the average of all calculations. In this subsection, we select five samples from each category of the CWRU dataset to constitute the training set and train DCGAN, DCGAN+CWCL, DCGAN+MSKAM, and our proposed CWMS-GAN model to generate an additional 40 samples. To evaluate the quality of the generated samples, we use the SSIM metrics in the time and frequency domains, respectively, and the results are shown in Table 5. Observing the results, firstly, the generated samples of all models are generally more similar to the real samples in the time domain. This phenomenon can be explained by the fact that since the models directly take the time-domain signals as inputs during the training process, the models naturally retain the time-domain features and laws when learning to generate the samples, which makes the generated samples highly similar to the real samples in the time domain. Secondly, we note that the four models’ similarity in Class 2 and Class 8 categories is lower in both time and frequency domains. We speculate this may be related to the fault characteristics or signaling patterns specific to Classes 2 and 8. The data in these categories have more complex features in both the time and frequency domains, and the models may have some limitations in capturing these complex features, which affects the quality of the generated samples. In addition, through comparative analysis, we find that MSKAM PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 16/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method contributes more to improving the quality of model-generated samples than CWCL, which is consistent with our analysis in the ablation experiments. Finally, by comparing the average SSIM values of the four model-generated samples with the real samples in the time and frequency domains, it can be found that the samples generated by CWMS-GAN at different fault locations in the CWRU dataset are the most similar to the real signals, which further proves the effectiveness of the proposed method in fault diagnosis tasks. Conclusion In this paper, a bearing fault diagnosis method based on CWMS-GAN is proposed, aiming to complement the real samples by generating high-quality signals to cope with the problem of limited rolling bearing data under real working conditions that lead to the degradation of the performance of traditional deep-learning-based diagnostic models. A continuous wavelet convolution (CWCL) and a Multi-Size Kernel Attention Mechanism (MSKAM) are designed in CWMS-GAN to improve the traditional DCGAN so that it can capture both time and frequency domain information of the signal while extracting features from vibration signals at different scales and adaptively selecting key features to improve the accuracy and authenticity of the generated signal. In addition, the SSIM evaluation metric is adopted to quantify the quality of the generated data by calculating the similarity between the generated signal and the real signal in terms of time and frequency domain features. The experimental results on the CWRU dataset show that compared to other small-sample diagnostic methods, CWMS-GAN exhibits higher classification accuracies for the number of training samples of 5 and 20, proving its excellent diagnostic capability under limited data conditions. The visualization analysis of the confusion matrix and t-SNE feature distribution further shows that CWMS-GAN has significant differentiation between different categories, while it exhibits good consistency among similar samples, verifying its effective feature extraction capability. In addition, it is not difficult to find that the SSIM values of the signals generated by CWMS-GAN and the real signals in the time domain and the frequency domain are relatively satisfactory, indicating that CWMS-GAN can generate high-quality bearing fault signals. Although CWMS-GAN performs well in small-sample fault diagnosis, it relies on fully labeled data, which is often complicated and costly to label under real-world working conditions. Future research can combine semi-supervised learning methods so that the model can still effectively extract fault features under limited labeling conditions, thus improving its adaptability and diagnostic capability in real scenarios. Author contributions Conceptualization: Jialin Gu. Methodology: Shun Yu. Software: Zi Li. Validation: Runpu Wang, Fusen Guo. Visualization: Lin Li. Writing – original draft: Xiaoyu Liu. Writing – review & editing: Fusen Guo, Yuheng Ren. PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 17/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method References 1. Jiang H, Li C, Li H. An improved EEMD with multiwavelet packet for rotating machinery multi-fault diagnosis. Mech Syst Signal Process. 2013;36(2):225–39. 2. Xu F, Ding N, Li N et al. A review of bearing failure modes, mechanisms and causes. Eng Fail Anal. 2023:107518. 3. Grebe M, Molter J, Schwack F et al. Damage mechanisms in pivoting rolling bearings and their differentiation and simulation. Bearing World J. 2018;3:71–86. 4. Liu R, Yang B, Zio E et al. Artificial intelligence for fault diagnosis of rotating machinery: a review. Mech Syst Signal Process. 2018;108:33–47. 5. Hakim M, Omran AAB, Ahmed AN et al. A systematic review of rolling bearing fault diagnoses based on deep learning and transfer learning: Taxonomy, overview, application, open challenges, weaknesses and recommendations. Ain Shams Eng J. 2023;14(4):101945. 6. Moosavian A, Ahmadi H, Tabatabaeefar A et al. Comparison of two classifiers; K-nearest neighbor and artificial neural network, for fault diagnosis on a main engine journal-bearing. Shock Vib. 2013;20(2):263–72. 7. Li C, De Oliveira JV, Cerrada M et al. Observer-biased bearing condition monitoring: from fault detection to multi-fault classification. Eng Appl Artif Intell. 2016;50:287–301. 8. Zheng J, Pan H, Cheng J. Rolling bearing fault detection and diagnosis based on composite multiscale fuzzy entropy and ensemble support vector machines. Mech Syst Signal Process 2017;85:746–59. 9. Deng S, Cheng Z, Li C et al. Rolling bearing fault diagnosis based on Deep Boltzmann machines. In: 2016 Prognostics and System Health Management Conference (PHM-Chengdu). IEEE; 2016, pp. 1–6. 10. Fuan W, Hongkai J, Haidong S et al. An adaptive deep convolutional neural network for rolling bearing fault diagnosis. Meas Sci Technol. 2017;28(9):095005. 11. Xia M, Li T, Liu L et al. Intelligent fault diagnosis approach with unsupervised feature learning by stacked denoising autoencoder. IET Sci Meas Technol. 2017;11(6):687–95. 12. Ding F, Xia Y, Tian J et al. An AVMD method based on energy ratio and deep belief network for fault identification of automation transmission device. IEEE Access. 2021;9:150088–97. 13. Gao T, Yang J, Jiang S. A novel fault detection model based on vector quantization sparse autoencoder for nonlinear complex systems. IEEE Trans Industr Inform. 2022;19(3):2693–704. 14. Dixit S, Verma NK. Intelligent condition-based monitoring of rotary machines with few samples. IEEE Sensors J. 2020;20(23):14337–46. 15. Li X, Zhang W, Ding Q et al. Intelligent rotating machinery fault diagnosis based on deep learning using data augmentation. J Intell Manuf. 2020;31(2):433–52. 16. Qian M, Li YF. A weakly supervised learning-based oversampling framework for class-imbalanced fault diagnosis. IEEE Trans Reliab. 2022;71(1):429–42. 17. Zhu QX, Wang XW, Zhang N et al. Novel K-Medoids based SMOTE integrated with locality preserving projections for fault diagnosis. IEEE Trans Instrum Meas. 2022;71:1–8. 18. Chen J, Hu W, Cao D et al. A meta-learning method for electric machine bearing fault diagnosis under varying working conditions with limited data. IEEE Trans Industr Inform. 2022;19(3):2552–64. 19. Su H, Xiang L, Hu A et al. A novel method based on meta-learning for bearing fault diagnosis with small sample learning under different working conditions. Mech Syst Signal Process. 2022;169:108765. 20. Mao W, Liu Y, Ding L et al. A new structured domain adversarial neural network for transfer fault diagnosis of rolling bearings under different working conditions. IEEE Trans Instrum Meas. 2020;70:1–13. 21. Wang Z, He X, Yang B et al. Subdomain adaptation transfer learning network for fault diagnosis of roller bearings. IEEE Trans Industr Electron. 2021;69(8):8430–9. 22. Goodfellow I, Pouget-Abadie J, Mirza M et al. Generative adversarial nets. Adv Neural Inf Process Syst. 2014;27. 23. Mirza M, Osindero S. Conditional generative adversarial nets. arXiv. 2014. arXiv:1411.1784. 24. Radford A. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv. 2015. arXiv:1511.06434. 25. Odena A, Olah C, Shlens J. Conditional image synthesis with auxiliary classifier GANs. In: International Conference on Machine Learning. PMLR; 2017, pp. 2642–51. 26. Liang P, Deng C, Wu J et al. Intelligent fault diagnosis of rotating machinery via wavelet transform, generative adversarial nets and convolutional neural network. Measurement. 2020;159:107768. PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 18/ 19 PLOS ONE CWMS-GAN: A small-sample bearing fault diagnosis method 27. Yang J, Liu J, Xie J et al. Conditional GAN and 2-D CNN for bearing fault diagnosis with small samples. IEEE Trans Instrum Meas. 2021;70:1–12. 28. Li Z, Zheng T, Wang Y et al. A novel method for imbalanced fault diagnosis of rotating machinery based on generative adversarial networks. IEEE Trans Instrum Meas. 2020;70:1–17. 29. Yang X, Liu B, Xiang L et al. A novel intelligent fault diagnosis method of rolling bearings with small samples. Measurement. 2022;203:111899. 30. Luo J, Huang J, Li H. A case study of conditional deep convolutional generative adversarial networks in machine fault diagnosis. J Intell Manuf. 2021;32(2):407–25. 31. Wang R, Zhang S, Chen Z et al. Enhanced generative adversarial network for extremely imbalanced fault diagnosis of rotating machine. Measurement. 2021;180:109467. 32. Gao H, Zhang X, Gao X et al. ICoT-GAN: integrated convolutional transformer GAN for rolling bearings fault diagnosis under limited data condition. IEEE Trans Instrum Meas. 2023. 33. Chen Y, Qiang Y, Chen J et al. FMRGAN: feature mapping reconstruction GAN for rolling bearings fault diagnosis under limited data condition. IEEE Sensors J. 2024. 34. Chen R, Liu J, Tang J et al. Vibration characteristics analysis of rolling bearing rotor system considering radial clearance and outer raceway defect. Adv Mech Eng. 2023;15(4):16878132231167670. 35. Yan R, Gao RX, Chen X. Wavelets for fault diagnosis of rotary machines: a review with applications. Signal Process. 2014;96:1–15. 36. Kumar HS, Upadhyaya G. Fault diagnosis of rolling element bearing using continuous wavelet transform and K-nearest neighbour. Mater Today Proc. 2023;92:56–60. 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. 2016, pp. 770–8. 38. Huang G, Liu Z, Van Der Maaten L et al. Densely connected convolutional networks. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. 2017, pp. 4700-8. 39. Howard AG. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv. 2017. arXiv:1704.04861. 40. Woo S, Park J, Lee JY et al. CBAM: convolutional block attention module. In: Proceedings of the European Conference on Computer Vision (ECCV). 2018, pp. 3–19. 41. Shao H, Xia M, Wan J et al. Modified stacked autoencoder using adaptive Morlet wavelet for intelligent fault diagnosis of rotating machinery. IEEE/ASME Trans Mechatron. 2021;27(1):24–33. 42. Wang Z, Bovik AC, Sheikh HR et al. Image quality assessment: from error visibility to structural similarity. IEEE Trans Image Process. 2004;13(4):600–12. 43. Smith WA, Randall RB. Rolling element bearing diagnostics using the Case Western Reserve University data: a benchmark study. Mech Syst Signal Process. 2015;64:100–31. 44. Dataset M. Society for Machinery Failure Prevention Technology. 2020. PLOS ONE [https://doi org/10 1371/journal pone 0319202](https://doi.org/10.1371/journal.pone.0319202) April 11 2025 19/ 19

섹션 본문 64문단 · 39,448자

(제목 없음)

1In industrial production, obtaining sufficient bearing fault signals is often extremely difficult, leading to a significant degradation in the performance of traditional deep learningbased fault diagnosis models.Many recent studies have shown that data augmentation using generative adversarial networks (GAN) can effectively alleviate this problem.However, the quality of generated samples is closely related to the performance of fault diagnosis models.For this reason, this paper proposes a new GAN-based smallsample bearing fault diagnosis method.Specifically, this study proposes a continuous wavelet convolution strategy (CWCL) instead of the traditional convolution operation in GAN, which can additionally capture the signal's frequency domain features.Meanwhile, this study designed a new multi-size kernel attention mechanism (MSKAM), which can extract the features of bearing vibration signals from different scales and adaptively select the features that are more important for the generation task to improve the accuracy and authenticity of the generated signals.In addition, the structural similarity index (SSIM) is adopted to quantitatively evaluate the quality of the generated signal by calculating the similarity between the generated signal and the real signal in both the time and frequency domains.Finally, we conducted extensive experiments on the CWRU and MFPT datasets and made a comprehensive comparison with existing small-sample bearing fault diagnosis methods, which verified the effectiveness of the proposed approach.

Introduction

2Rolling bearings, known as the "joints of industry, " are critical components in rotating machinery and are widely used in various fields of industrial production [1].However, due to prolonged high-speed operation, complex system environments, improper assembly, and inadequate lubrication, rolling bearings often experience failures during operation, which can affect the normal functioning of the equipment [2].Once the equipment fails, it may cause https://doi.org/10.6084/m9.figshare.27966912.v1.

3Funding: The author(s) received no specific funding for this work.

4economic loss, or it may cause safety accidents and threaten people's lives [3,4].Therefore, accurately diagnosing the failure state of rolling bearings is crucial.This not only helps reduce maintenance costs and improve production efficiency but also enables timely elimination of safety hazards, thereby safeguarding people's lives and property.

5With the continuous improvement of computer computing power and artificial intelligence technology, various intelligent bearing fault diagnosis models [5] have emerged in response to the ensuing challenges of massive data processing and the demand for real-time monitoring.The existing intelligent rolling bearing fault diagnosis methods can be categorized into two main categories: machine learning-based [6][7][8] and deep learning-based [9][10][11][12].Moosavian et al. [6] proposed a fault diagnosis method for the main radial bearings of internal combustion engines based on power spectral density and K-Nearest Neighbors (KNN).Li et al. [7] analyzed multiple features reflecting bearing conditions and selected 12 critical features as inputs to Artificial Neural Network (ANN) for fault recognition.Zheng et al. [8] extracted multi-scale fuzzy entropy from bearing fault signals and used it as a feature input to Support Vector Machine (SVM) for fault classification.Deng et al. [9] introduced the Deep Boltzmann Machine (DBM) model to identify the fault conditions of rolling bearings, extracting time-domain, frequency-domain, and time-frequency domain features as input parameters for the DBM model, finding that combining time-domain and time-frequency features of the signal is more suitable for DBM in achieving bearing fault recognition.Fuan et al. [10] developed an Adaptive Deep Convolutional Neural Network (CNN) for rolling bearing fault diagnosis, utilizing Particle Swarm Optimization to determine the main parameters of the deep CNN model.Xia et al. [11] proposed an intelligent fault diagnosis method based on the stacked denoising autoencoder (AE) deep neural network, which applies the denoising autoencoder to unlabeled data to extract representative features.Ding et al. [12] introduced a method for extracting fault features of transmission devices using Adaptive Variational Mode Decomposition (AVMD) and employed a Deep Belief Network (DBN) for pattern recognition.

6Although the methods mentioned above have achieved excellent results in fault diagnosis, they rely on a large amount of data for model training.However, in practical engineering, monitoring data for mechanical equipment often suffers from low usability and low-value density, resulting in a severe scarcity of bearing fault data [13].Therefore, fault diagnosis of bearings under small-sample conditions has become a research focus in this field [14].To address this challenge, researchers have proposed various solutions, among which data sampling is one of the standard processing techniques.This method expands the data quantity of minority classes by undersampling the abundant samples and oversampling the scarce ones, thereby alleviating the problem of sample scarcity [15][16][17].However, data sampling merely increases the quantity of the original data without fundamentally enhancing the diversity of the data, resulting in limited improvement effects from this approach.

7Meta-learning accumulates learning experience by training on multiple tasks to enhance a model's ability to adapt quickly to new tasks, effectively addressing the small-sample problem.Models based on meta-learning [18,19] typically employ task partitioning and rapid adaptation strategies to improve the effectiveness of small-sample bearing fault diagnosis.In contrast, transfer learning guides target domain learning by leveraging information obtained from the source domain to address the issue of insufficient training data in the target domain.It often uses strategies such as model pre-training and fine-tuning to enhance the effectiveness of small-sample bearing fault diagnosis [20,21].While meta-learning and transfer learning offer practical solutions for small-sample fault diagnosis, neither method has thoroughly resolved the issue of limited data in fault diagnosis.

8In recent years, more researchers have focused on using Generative Adversarial Networks (GAN) and their variants [22][23][24][25] to address the challenge of insufficient bearing data in practical engineering applications.Liang et al. [26] extracted time-frequency image features from one-dimensional signals using wavelet transformation and employed GAN to generate additional time-frequency image samples to compensate for the lack of actual data.Yang et al. [27] proposed CGAN-2D-CNN, which converts vibration signals into two-dimensional grayscale images and utilizes Conditional Generative Adversarial Networks (CGAN) to generate grayscale images that assist actual samples in fault diagnosis.However, when converting signals from one dimension to two-dimensional images, inherent vibration features from the original one-dimensional bearing signals, such as periodicity and fault pulse characteristics, may be lost, adversely affecting the model's diagnostic performance.Li et al. [28] introduced an Auxiliary Class Wasserstein GAN with Gradient Penalty (ACWGAN-GP) that directly generates one-dimensional bearing signals to alleviate the problem of data imbalance in fault diagnosis.Yang et al. [29] presented a Structure Similarity-based Generative Adversarial Network (SSGAN), which, combined with an improved MobileNetv3, is used for small-sample bearing fault diagnosis.Luo et al. [30] proposed a Conditional Deep Convolutional GAN (CDCGAN) for imbalanced fault diagnosis, conducting a detailed study on its effectiveness.Wang et al. [31] proposed E-GAN, which utilizes a Deep Convolutional GAN (DCGAN) to generate more samples and integrates a K-means clustering algorithm for small-sample fault classification.Gao et al. [32] combined transformers with convolutional neural networks to propose ICoT-GAN, which comprehensively extracts global and local temporal features from the original signals, thereby generating high-quality signals.Chen et al. [33] developed FMRGAN, which addresses the checkerboard artefacts caused by transposed convolutions in the generator, aiming to produce high-quality fault data to enhance the training dataset and improve the performance of fault diagnosis models under limited data conditions.

9Despite existing small-sample bearing fault diagnosis methods based on Generative Adversarial Networks (GAN) having achieved significant results, they typically focus on either timedomain or frequency-domain features when generating signals and lack a systematic analysis of the reliability of the generated signals.This may lead to issues with the effectiveness and accuracy of the generated data in practical applications.Therefore, this paper proposes a novel small-sample bearing fault diagnosis method based on GANs and conducts an in-depth analysis of the reliability of the generated samples to ensure that the generated data can more effectively assist in enhancing the performance of fault diagnosis models.The contributions of this paper are as follows:

101.This paper proposes a new GAN-based small-sample bearing fault diagnosis method.A large number of experiments are carried out on CWRU and MFPT data sets, which fully proves the method's feasibility and effectiveness.2. This study proposes a continuous wavelet convolution strategy (CWCL) to reconfigure the conventional convolutional layers of the generator and discriminator in GAN.The aim is to enable the model to capture detailed information about the signal in both time and frequency domains and thus generate higher-quality samples.3.This paper designs a multi-size kernel attention mechanism (MSKAM) and applies it to GAN.MSKAM can extract feature information from bearing vibration signals at different scales and adaptively select the most important features for the generation task, thereby improving the accuracy and authenticity of the generated signals.

Deep Convolutional Generative Adversarial Network

11It is well known that Deep Convolutional Generative Adversarial Network (DCGAN) is identical to GAN [22] in principle; the main difference is that DCGAN replaces the traditional fully-connected layer in GAN with a convolutional layer, which enhances the model's ability to capture sample features.As shown in Fig 1, DCGAN [24] consists of the generator and the discriminator, and its core is the adversarial training process between the generator and the discriminator.In this process, the goal of the discriminator is to maximize the ability to distinguish actual data from generated data, and its loss function is usually expressed as follows:

12where G(z) denotes the generated data by the generator based on the random noise z, while D(x) and D(G(z)) denote the discriminator's output probabilities of the actual data x and the generated data G(z), the discriminator tries to maximize L D , i.e., to keep D(x) as close to 1 as possible (i.e., to identify the actual data correctly), while keeping D(G(z)) as close to 0 as possible (i.e., to identify the generated data as forged correctly).The generator's goal is to produce realistic data that the discriminator cannot distinguish between true and false.Therefore, the loss function of the generator is as follows:

13The generator tries to minimize the loss L G (i.e., make D(G(z)) close to 1), aiming to make the discriminator mistakenly believe that the generated data is actual.During the model training process, the generator and the discriminator continuously optimize their respective performances by confronting each other until both sides reach a Nash equilibrium, i.e., the generated data by the generator is indistinguishable from the actual data, and the discriminator is no longer able to judge the authenticity accurately.

Continuous Wavelet Transform

14Due to the influence of load changes, rotational speed fluctuations, and changes in the state of the bearing itself, rolling bearing signals often show prominent non-stationary characteristics [34].In recent years, wavelet theory has opened up a new path in fault diagnosis [35], owing to its unique advantage in dealing with non-stationary signals.Continuous Wavelet Transform (CWT) [36], one of the commonly used time-frequency analysis tools, is based on the core idea of convolving the signal with a mother wavelet function to extract the timefrequency features of the signal at different scales and time intervals.The mathematical expression of CWT is as follows:

15In Eq (3), x(t) represents the input signal, and (t) is the mother wavelet function.By adjusting the scale factor a, the wavelet can be compressed or stretched to capture components of different frequencies.In contrast, the translation factor b controls the movement of the wavelet function along the time axis, allowing the analysis of signal features at different time positions.The normalization factor 1/ √ |a| ensures energy consistency across different scales.In short, CWT provides both time and frequency information of the signal and performs multi-scale analysis through the dilation and translation of the wavelet function, making it widely used for time-frequency feature extraction of non-stationary signals.

Convolutional Block Attention Module

16Traditional convolutional neural networks [37][38][39] still have some limitations in feature expressiveness, so Woo et al. [40] proposed the Convolutional Block Attention Module (CBAM), which effectively enhances the network's attention to essential features while suppressing the influence of unimportant features, thus improving the model performance.

17As shown in Fig 2 , CBAM consists of two separate sub-modules: the channel and spatial attention modules.The role of the channel attention module is to weight each channel of the feature map to highlight key features.Specifically, given an input feature F ∈ ℝ H×W×C , where H, W, and C represent the height, width, and number of channels of F, respectively.F is first compressed into two 1 × 1 × C feature vectors by average pooling and max pooling and processed through a shared fully connected layer (MLP).Next, the output features of the MLP are summed channel-by-channel and activated by sigmoid to generate the final channel attention feature M c (F) ∈ ℝ C .Finally, M c (F) is subjected to an element-by-element multiplication operation with the input feature map F, and the result F ′ is then fed into the spatial attention module.

18The spatial attention module first compresses the feature map F ′ across the channel dimension, generating two feature maps of size H × W × 1, obtained through average pooling and max pooling operations.These two feature maps are then concatenated along the channel dimension to form a feature map of size H × W × 2, which is convolved using a 7×7 convolution layer.After passing through a sigmoid activation function, the spatial attention weight M s (F) ∈ ℝ H×W is generated.Finally, M s (F) is multiplied element-wise with F ′ to obtain the final weighted feature map F ′′ .The formula is as follows:

19In Eq (6), f 7×7 represents a convolution operation with a kernel size 7×7.[AvgPool(F ′ ); MaxPool(F ′ )] refers to the concatenation of AvgPool(F ′ ) and MaxPool(F ′ ) along the channel dimension.In Eq (7), F ′′ represents the key features that are more helpful to the current task after filtering irrelevant redundant information, thus improving the inherent feature representation ability of the model.

Continuous Wavelet Convolutional Layer

20Although conventional convolution performs well in many bearing fault diagnosis tasks, it cannot effectively capture transient variations and bursty signal features because it uses a fixed-size convolution kernel to extract features.In addition, conventional convolution cannot provide both time and frequency information, making a comprehensive understanding of the spectral and temporal characteristics of the signal difficult.The conventional convolution operation is defined as follows:

21where w(t) is a convolution kernel of fixed size, and x(t) and y(t) denote the input and output signals, respectively.As described in the subsection "Continuous Wavelet Transform, " the CWT can provide signal time and frequency information and perform multi-scale analysis by expanding and translating the wavelet function to extract the signal features effectively.However, in practical applications, the selection of the mother wavelet is crucial, and the Morlet wavelet [41] combines sinusoidal and Gaussian functions, which has good time and frequency localization ability, and its expression is

22In Eq ( 9), e

232 2 represents a Gaussian function, e j2f 0 t represents a sinusoidal wave with frequency f 0 , f 0 denotes the center frequency of the sinusoidal wave, which is set to 5, and represents the standard deviation of the Gaussian function, with its value set to 1 2f 0 .Therefore, this paper selects the Morlet wavelet as the mother wavelet function and applies it to the CWT to construct a Continuous Wavelet Convolutional Layer (CWCL).Subsequently, the CWCL will replace the traditional convolutional layers in the GAN and fault diagnosis classifier, as shown in the following formula:

24Compared with traditional convolutional operations, CWCL enables GAN to extract timedomain features and capture signal frequency variations.This results in a more comprehensive understanding of the time-frequency characteristics of non-smooth signals, which helps to improve the quality of the signals generated by the GAN.

Multi-size kernel attention mechanism

25As mentioned earlier, the fault signals of bearings usually have non-stationary characteristics, i.e., their frequency components change continuously over time.The channel attention module of traditional CBAM only uses a single-scale convolution kernel, which makes it difficult to capture the variable frequency features in the fault signal effectively.Therefore, this paper improves the channel attention module in CBAM and proposes a new multi-size kernel attention mechanism (MSKAM), as shown in Fig 4, which is capable of extracting features under multi-frequency components through convolution kernels of different scales to enhance the model's adaptability to non-smooth fault signals.In this study, we first use two different sizes of convolution kernels, 3×3 and 5×5, to perform convolution operations on the input feature maps F, respectively, so as to obtain the feature maps F 1 and F 2 .Since feature maps F 1 and F 2 of different scales contain a large amount of redundancy information, we removed this redundancy information before performing channel concatenation.The formula is as follows:

26where F 3 denotes the feature map after removing the coexisting redundant information in F 1 and F 2 , while F Conv denotes the feature map obtained by channel concatenation the feature maps F 1 and F 3 and then calculating its channel attention weight M c (F Con ).Next, M c (F Con ) is divided into two parts: M 3×3 c and M 5×5 c .Finally, the channel attention weights of the branches are fused to obtain the final channel attention feature map F fin .The whole process can be represented as

27Here, M 3×3

Time and frequency feature similarity

28The CWMS-GAN proposed in this paper improves the original DCGAN by enabling the model to capture both time-domain features and frequency variations of the signals to generate higher-quality samples to solve the problem of limited bearing fault data in practice.Wang et al. proposed the Structural Similarity Index (SSIM) [42], which measures the similarity between two images by simulating the perceptual characteristics of the human visual system.More importantly, as mentioned in their paper, SSIM is not limited to image processing.In fact, as a symmetric similarity measure, SSIM can also be used to assess the similarity between any two signals.Therefore, in this paper, SSIM is used to compute the similarity between the generated signal and the real signal in both time and frequency domains for quantitative evaluation of the generated signal.

29Suppose now there are a real signal r and a generated signal g and r, g ∈ ℝ 1×1024 ; the steps of SSIM are described as follows:

30• Calculate the mean as well as the variance of r and g, respectively, with the mathematical formulas shown in Eqs ( 16) and (17).

31)

32where r and g denote the mean of r and g, respectively, and 2 r and 2 g indicate the variance of r and g.N is the length of the signal, and r i and g i represent the value of the i-th point of r and g, respectively.

33• Calculate the covariance rg between r and g as shown in Eq (18).

34• Define three comparison functions for luminance comparison, contrast comparison, and structure comparison, as shown in Eq (19).

35where

36L is the maximum magnitude of the signal r, and the values of K 1 and K 2 are 0.01 and 0.03, respectively.Where K 1 and K 2 are chosen based on the recommendations of Wang et al. in their work [42].• Finally, the three comparison functions are multiplied to obtain the final SSIM index, as shown in Eq (20).

37The SSIM values range from -1 to 1, where a value close to 1 indicates high similarity between the two signals, and a value close to -1 indicates complete dissimilarity.For the bearing signals used in this study, which are one-dimensional with a consistent sampling length of 1024 points, we compute the SSIM directly on the entire signal rather than using a sliding window approach.This decision is based on the following considerations:(1) the sampling length of the signal is relatively short, and the distribution of characteristics is relatively uniform; (2) bearing vibration signals are typically periodic, where overall trends or frequency characteristics are more critical than minor local variations; (3) avoiding the use of a sliding window reduces computational complexity.Consequently, the SSIM is calculated for the entire signal, effectively treating the sliding window size as 1 × 1024.In this way, the similarity between signals r and g is first assessed based on their timedomain characteristics.Subsequently, their frequency-domain representations are obtained by applying the Fast Fourier Transform (FFT) to r and g, and the SSIM calculation is repeated on their respective absolute values rather than the complex-valued outputs of the FFT.It is important to note that the SSIM values computed for the time and frequency domains are reported and analyzed separately without being combined into a single similarity metric.

Experiments and results analysis

38In this paper, extensive experiments are conducted on two publicly available rolling bearing datasets, CWRU and MFPT, to evaluate the performance of the proposed CWMS-GAN.First, we use limited training samples to train CWMS-GAN to generate new samples.Then, these generated samples are fused with the original data to expand the training dataset, and the diagnostic performance of CWMS-GAN is evaluated on the test set.Finally, by comparing with multiple state-of-the-art methods, the effectiveness and superiority of the proposed method are further validated.Additionally, we use the SSIM metric to quantitatively assess the quality of the generated samples by CWMS-GAN.

39The method is implemented using the PyTorch framework and Python 3.8.The development environment is Pycharm 2022, and the experimental equipment is equipped with an Intel Core i7-12700H processor (16 GB RAM) and an RTX 3080 graphics card.

Dataset description

40The CWRU dataset [43], collected by Case Western Reserve University, includes equipment such as a motor, torque sensor, dynamometer, and electronic controller.Single-point defects were introduced onto bearings using electric spark erosion to simulate fault conditions.Vibration signals were then collected under four load conditions (0, 1, 2, and 3 hp) at a sampling frequency of 12 kHz.The data covers four categories: healthy (H), inner race fault (IF), outer race fault (OF), and rolling element fault (BF).Each category is further subdivided into three damage sizes: 0.007, 0.014, and 0.021 inches.

41The MFPT dataset [44], provided by the American Society for Mechanical Failure Prevention Technology, contains multiple categories of data collected at different loads and sampling frequencies, organized into 23 categories.Specifically, the following categories are included:

42(1) three normal data and three outer ring fault data, all with a load of 270 lbs, an input shaft speed of 25 Hz, and a sampling frequency of 97,656 Hz. (2) seven sets of outer ring fault data, with an input shaft speed of 25 Hz, a sampling frequency of 48,828 Hz, and loads of 25, 50, 100, 150, 200, 250, and 300 lbs.(3) seven sets of inner ring fault data with the same rotational speed of 25 Hz, sampling frequency of 48828 Hz, and loads of 0, 50, 100, 150, 200, 250, and 300 lbs.Details of the CWRU and MFPT datasets used in the experiments in this study are shown in Table 1.

Fault diagnosis under limited data condition

43In this section, we first analyze the performance of the CWMS-GAN-based bearing fault diagnosis method under different training sample sizes when the number of training samples is limited (i.e., no additional generated samples are used).To simulate the limited number of bearing fault samples in real working conditions, we selected 5, 10, 20, and 40 samples from each category to construct the training dataset.The test dataset was fixed at 100 samples per This section also explores the impact of the number of generated samples on the diagnostic performance of the model.Specifically, in the case of training CWMS-GAN to generate new fault samples by selecting 5, 10, 20, and 40 samples for each class, respectively, 10, 20, 30, and 40 samples are generated sequentially to expand the original dataset and assist the classifier for training.The results are shown in Table 2.It can be easily found that the increase in the number of generated samples significantly improves the diagnostic accuracy of the model regardless of the number of original training samples.Taking the CWRU dataset as an example, the diagnostic accuracy of the model is only 76.54% when the number of original training samples is only 5, and with the increase in the number of generated samples from 10 to 40, the accuracy gradually increases from 85.62% to 94.31%.On the MFPT dataset, similarly, the diagnostic accuracy is only 71.25% when the original training sample is 5, but the accuracy improves to 91.74% when the generated samples are increased to 40.These results show that even under the condition of limited training samples, CWMS-GAN is able to generate sufficiently high-quality samples to significantly make up for the lack of raw data and effectively improve the performance of the diagnostic model.

44In order to visualize the effectiveness of CWMS-GAN in recognizing different fault types on the CWRU and MFPT datasets, in this section, the confusion matrix is used to visualize the classification results of CWMS-GAN with the number of training samples of 5, 10, 20, and 40, respectively, and supplemented with the generation of an additional 40 samples, as shown in Fig 5 .The diagonal part of the confusion matrix represents the number of correctly classified samples, while the off-diagonal part shows the number of misclassified samples.It can be clearly seen that the recognition effect of CWMS-GAN on different fault types gradually improves as the number of training samples increases.The confusion matrix presented here is based on the median results of 10 repetitions for each experimental group.With fewer samples (e.g., 5 samples per class), there may be some confusion between certain fault types, resulting in a small number of misclassifications.However, as the number of training samples increases to 10, 20, and 40, the percentage of correct classifications improves significantly, and misclassifications in the non-diagonal part of the class gradually decrease.This trend is reflected in each fault type in both the CWRU and MFPT datasets, especially in the categories where the fault patterns are closer, which suggests that the samples generated by the CWMS-GAN significantly help the model to learn the subtle features, especially when the number of samples is limited, which effectively enhances the model's fault differentiation ability.

45To further evaluate the feature extraction capability of CWMS-GAN, this paper also examines the distribution of feature vectors in the embedding space.Specifically, under conditions where each class has 5, 10, 20, and 40 samples, along with an additional 40 generated samples, t-distributed Stochastic Neighbor Embedding (t-SNE) is used to reduce the high-dimensional features extracted from the last convolutional layer of the classifier into two-dimensional space for visualization (as shown in Fig 6).The results demonstrate that, on both the CWRU and MFPT datasets, the features extracted by CWMS-GAN exhibit distinct inter-class separation and high intra-class compactness in the two-dimensional space, highlighting the model's ability to distinguish between different fault categories as well as the consistency within each category.Similarly, the t-SNE plots are generated based on the median results obtained from 10 repetitions of each experimental group.

Comparison with the state-of-the-art methods

46In this section, the CWMS-GAN method proposed in this paper is compared with several current mainstream small-sample bearing fault diagnosis methods, including DCGAN, CGAN-2D-CNN, ACWGAN-GP, SSGAN, CDCGAN, E-GAN, and FMRGAN, to further validate its advantages.The comparison is conducted on the CWRU dataset.The choice of the CWRU dataset for this comparison is based on its widespread use in the literature, which allows for a more direct and meaningful comparison with the majority of existing studies.Additionally, most research in this field has utilized the CWRU dataset along with private datasets to validate model performance, while the MFPT dataset has been less commonly used.Therefore, to ensure a consistent and fair comparison with other reported results, we have focused on the CWRU dataset in this study.

47The comparison results are shown in Table 3.It should be noted that these comparison methods are all based on the data provided in their original papers.As seen from Table 3, when the number of training samples per class is 5 and 20, the diagnostic accuracy of CWMS-GAN is significantly higher than most of the comparison methods and only slightly lower than FMRGAN.Furthermore, compared to the training time of about 45 minutes for the CGAN-2D-CNN model, the training time of the proposed CWMS-GAN is about 52 minutes under the condition that only 10 samples per class are used as training data, and an additional 40 samples are generated.After training, the actual inference time of the CWMS-GAN in the bearing fault diagnosis task is about 5 minutes.Overall, the experimental results show that CWMS-GAN performs excellently under the condition of small samples and can generate high-quality fault samples and improve the accuracy of diagnostic models effectively, showing its advantages in the task of small-sample bearing fault diagnosis.

Ablation experiment

48This section conducted detailed ablation experiments to assess the specific impact of the two components, CWCL and MSKAM, on the model's classification accuracy.The related results are shown in Table 4.The experiments were conducted under different sample size conditions, specifically with each category having 5, 10, 20, and 40 samples, as well as an additional 40 generated samples.Consistent with the previous experimental setup, each set of experiments is repeated 10 times to ensure the robustness of the results.From Table 4, it can be observed that CWCL improved the performance by 2.25%, 1.62%, 0.75%, and 1.38% under different sample sizes, while MSKAM showed a more significant improvement, with increases of 3.07%, 2.1%, 1.49%, and 1.58%.This indicates that both CWCL and MSKAM can effectively enhance the model's classification performance, with MSKAM demonstrating a more pronounced advantage.When combining CWCL, MSKAM, and TFPS, the classification accuracy of the model reached its optimal level, fully showcasing the synergistic effect among the three components.

Evaluation of generated samples

49The proposed CWMS-GAN employs a class-by-class approach to generating samples rather than training to generate all classes of data simultaneously.Notably, the above process is run in parallel.For each category, each sample is selected sequentially from the real samples, and an SSIM calculation is performed with all the generated samples for that category.Finally, the quality of the generated samples for that category is evaluated using the average of all calculations.

50In this subsection, we select five samples from each category of the CWRU dataset to constitute the training set and train DCGAN, DCGAN+CWCL, DCGAN+MSKAM, and our proposed CWMS-GAN model to generate an additional 40 samples.To evaluate the quality of the generated samples, we use the SSIM metrics in the time and frequency domains, respectively, and the results are shown in Table 5.

51Observing the results, firstly, the generated samples of all models are generally more similar to the real samples in the time domain.This phenomenon can be explained by the fact that since the models directly take the time-domain signals as inputs during the training process, the models naturally retain the time-domain features and laws when learning to generate the samples, which makes the generated samples highly similar to the real samples in the time domain.Secondly, we note that the four models' similarity in Class 2 and Class 8 categories is lower in both time and frequency domains.We speculate this may be related to the fault characteristics or signaling patterns specific to Classes 2 and 8.The data in these categories have more complex features in both the time and frequency domains, and the models may have some limitations in capturing these complex features, which affects the quality of the generated samples.In addition, through comparative analysis, we find that MSKAM contributes more to improving the quality of model-generated samples than CWCL, which is consistent with our analysis in the ablation experiments.Finally, by comparing the average SSIM values of the four model-generated samples with the real samples in the time and frequency domains, it can be found that the samples generated by CWMS-GAN at different fault locations in the CWRU dataset are the most similar to the real signals, which further proves the effectiveness of the proposed method in fault diagnosis tasks.

Conclusion

52In this paper, a bearing fault diagnosis method based on CWMS-GAN is proposed, aiming to complement the real samples by generating high-quality signals to cope with the problem of limited rolling bearing data under real working conditions that lead to the degradation of the performance of traditional deep-learning-based diagnostic models.A continuous wavelet convolution (CWCL) and a Multi-Size Kernel Attention Mechanism (MSKAM) are designed in CWMS-GAN to improve the traditional DCGAN so that it can capture both time and frequency domain information of the signal while extracting features from vibration signals at different scales and adaptively selecting key features to improve the accuracy and authenticity of the generated signal.In addition, the SSIM evaluation metric is adopted to quantify the quality of the generated data by calculating the similarity between the generated signal and the real signal in terms of time and frequency domain features.

53The experimental results on the CWRU dataset show that compared to other small-sample diagnostic methods, CWMS-GAN exhibits higher classification accuracies for the number of training samples of 5 and 20, proving its excellent diagnostic capability under limited data conditions.The visualization analysis of the confusion matrix and t-SNE feature distribution further shows that CWMS-GAN has significant differentiation between different categories, while it exhibits good consistency among similar samples, verifying its effective feature extraction capability.In addition, it is not difficult to find that the SSIM values of the signals generated by CWMS-GAN and the real signals in the time domain and the frequency domain are relatively satisfactory, indicating that CWMS-GAN can generate high-quality bearing fault signals.

54Although CWMS-GAN performs well in small-sample fault diagnosis, it relies on fully labeled data, which is often complicated and costly to label under real-world working conditions.Future research can combine semi-supervised learning methods so that the model can still effectively extract fault features under limited labeling conditions, thus improving its adaptability and diagnostic capability in real scenarios.

Fig 1 .

55Fig 1.The detailed structure of Deep Convolutional Generative Adversarial Network (DCGAN).https://doi.org/10.1371/journal.pone.0319202.g001

Fig 2 .

56Fig 2. The detailed structure of Convolutional Block Attention Module (CBAM).https://doi.org/10.1371/journal.pone.0319202.g002

Fig 3

57Fig 3 illustrates the overall framework of the proposed small-sample rolling bearing fault diagnosis method, which consists of three parts: data preprocessing, data augmentation, and a classification model.First, the data preprocessing module collects bearing signals and divides them into limited training and test sets.Next, the data augmentation module optimizes the original DCGAN using Continuous Wavelet Convolution (CWCL) and Multi-Size Kernel Attention Mechanism (MSKAM) and trains on the limited training set to generate new samples.Subsequently,

Fig 3 .

58Fig 3.The overall framework of small sample fault diagnosis method based on CWMS-GAN.https://doi.org/10.1371/journal.pone.0319202.g003

Fig 4 .

59Fig 4. The structure of multi-size kernel attention mechanism.https://doi.org/10.1371/journal.pone.0319202.g004

c and M 5×5 c

60represent the channel attention weights corresponding to F 1 and F 3 , respectively.F c_1 is the enhanced feature map obtained by element-wise multiplication of M 3×3 c and F 1 , while F c_3 is the enhanced feature map obtained by element-wise multiplication of M 5×5 c and F 3 .

Fig 5 .

61Fig 5. Confusion matrix of CWMS-GAN on the test datasets of CWRU and MFPT.(a)-(d):CWRU 5,10,20,40;(e)-(h):MFPT 5,10,20,40.https://doi.org/10.1371/journal.pone.0319202.g005

Fig 6 .

62Fig 6.Distribution of t-SNE features of CWMS-GAN on the test datasets of CWRU and MFPT.(a)-(d):CWRU 5,10,20,40; (e)-(h):MFPT 5,10,20,40.Each category has 100 points, representing the number of samples per category in the test dataset.https://doi.org/10.1371/journal.pone.0319202.g006

Table 2 . The diagnostic average accuracy on the test sets after attaching different numbers of generated samples to the CWRU and MFPT training sets.

63To ensure the robustness of the results, we conducted 10 repetitions of the experiment, each with a different random split of the data into training and test sets, allowing us to obtain the average accuracy across these repetitions.As shown in Table2, as the number of training samples increased from 5 to 40 per class, the accuracy of the CWRU dataset increased from 76.54% to 96.67%, and the accuracy of the MFPT dataset increased from 71.25% to 93.37%.These results indicate that as the number of training samples increases, the model is able to capture more feature information from the original data, which significantly enhances the generalization ability of the classification model and improves the fault diagnosis accuracy.Therefore, the number of training samples is crucial for deep learningbased fault diagnosis models, which also highlights the necessity of conducting bearing fault diagnosis research under small sample conditions.

Table 3 . Comparative experimental results under the CWRU dataset

64https://doi.org/10.1371/journal.pone.0319202.t003

참고문헌 38건

  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. Wavelets for fault diagnosis of rotary machines: A review with applications Signal Processing · Elsevier BV · 2013 10.1016/j.sigpro.2013.04.015
  3. An improved EEMD with multiwavelet packet for rotating machinery multi-fault diagnosis Mechanical Systems and Signal Processing · Elsevier BV · 2013 10.1016/j.ymssp.2012.12.010
  4. Image quality assessment: from error visibility to structural similarity IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2004 10.1109/tip.2003.819861
  5. Observer-biased bearing condition monitoring: From fault detection to multi-fault classification Engineering Applications of Artificial Intelligence · Elsevier BV · 2016 10.1016/j.engappai.2016.01.038
  6. Rolling bearing fault detection and diagnosis based on composite multiscale fuzzy entropy and ensemble support vector machines Mechanical Systems and Signal Processing · Elsevier BV · 2016 10.1016/j.ymssp.2016.09.010
  7. Conditional image synthesis with auxiliary classifier GANs International Conference on Machine Learning · 2017
  8. Rolling bearing fault diagnosis based on Deep Boltzmann machines 2016 10.1109/phm.2016.7819840
  9. Intelligent fault diagnosis approach with unsupervised feature learning by stacked denoising autoencoder IET Science Measurement & Technology · Institution of Engineering and Technology · 2017 10.1049/iet-smt.2016.0423
  10. An adaptive deep convolutional neural network for rolling bearing fault diagnosis Measurement Science and Technology · IOP Publishing · 2017 10.1088/1361-6501/aa6e22
  11. Artificial intelligence for fault diagnosis of rotating machinery: A review Mechanical Systems and Signal Processing · Elsevier BV · 2018 10.1016/j.ymssp.2018.02.016
  12. Intelligent rotating machinery fault diagnosis based on deep learning using data augmentation Journal of Intelligent Manufacturing · Springer Science+Business Media · 2018 10.1007/s10845-018-1456-1
  13. Conditional Image Synthesis With Auxiliary Classifier GANs arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1610.09585
  14. 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
  15. A case study of conditional deep convolutional generative adversarial networks in machine fault diagnosis Journal of Intelligent Manufacturing · Springer Science+Business Media · 2020 10.1007/s10845-020-01579-w
  16. Intelligent Condition-Based Monitoring of Rotary Machines With Few Samples IEEE Sensors Journal · IEEE Sensors Council · 2020 10.1109/jsen.2020.3008177
  17. A Novel Method for Imbalanced Fault Diagnosis of Rotating Machinery Based on Generative Adversarial Networks IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2020 10.1109/tim.2020.3009343
  18. Low-Noise Magnetic Coil System for Recording 3-D Eye Movements IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2020 10.1109/tim.2020.3020682
  19. A New Structured Domain Adversarial Neural Network for Transfer Fault Diagnosis of Rolling Bearings Under Different Working Conditions IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2020 10.1109/tim.2020.3038596
  20. Modified Stacked Autoencoder Using Adaptive Morlet Wavelet for Intelligent Fault Diagnosis of Rotating Machinery IEEE/ASME Transactions on Mechatronics · Institute of Electrical and Electronics Engineers · 2021 10.1109/tmech.2021.3058061
  21. Damage mechanisms in pivoting rolling bearings and their differentiation and simulation 2018
  22. Enhanced generative adversarial network for extremely imbalanced fault diagnosis of rotating machine Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.109467
  23. An AVMD Method Based on Energy Ratio and Deep Belief Network for Fault Identification of Automation Transmission Device IEEE Access · Institute of Electrical and Electronics Engineers · 2021 10.1109/access.2021.3079237
  24. Subdomain Adaptation Transfer Learning Network for Fault Diagnosis of Roller Bearings IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2021 10.1109/tie.2021.3108726
  25. Conditional GAN and 2-D CNN for Bearing Fault Diagnosis With Small Samples IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2021 10.1109/tim.2021.3119135
  26. A Weakly Supervised Learning-Based Oversampling Framework for Class-Imbalanced Fault Diagnosis IEEE Transactions on Reliability · Institute of Electrical and Electronics Engineers · 2022 10.1109/tr.2021.3138448
  27. A novel method based on meta-learning for bearing fault diagnosis with small sample learning under different working conditions Mechanical Systems and Signal Processing · Elsevier BV · 2022 10.1016/j.ymssp.2021.108765
  28. A Meta-Learning Method for Electric Machine Bearing Fault Diagnosis Under Varying Working Conditions With Limited Data IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2022 10.1109/tii.2022.3165027
  29. A Novel Fault Detection Model Based on Vector Quantization Sparse Autoencoder for Nonlinear Complex Systems IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2022 10.1109/tii.2022.3174715
  30. A Novel Intelligent Fault Diagnosis Method of Rolling Bearings with Small Samples SSRN Electronic Journal · RELX Group (Netherlands) · 2022 10.2139/ssrn.4174851
  31. A novel intelligent fault diagnosis method of rolling bearings with small samples Measurement · Elsevier BV · 2022 10.1016/j.measurement.2022.111899
  32. A systematic review of rolling bearing fault diagnoses based on deep learning and transfer learning: Taxonomy, overview, application, open challenges, weaknesses and recommendations Ain Shams Engineering Journal · Elsevier BV · 2022 10.1016/j.asej.2022.101945
  33. Novel K-Medoids Based SMOTE Integrated With Locality Preserving Projections for Fault Diagnosis IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2022 10.1109/tim.2022.3218551
  34. Generative Adversarial Nets Springer eBooks · Springer Nature · 2023 10.1007/978-3-658-40442-0_9
  35. Fault diagnosis of rolling element bearing using continuous wavelet transform and K- nearest neighbour Materials Today Proceedings · Elsevier BV · 2023 10.1016/j.matpr.2023.03.618
  36. Vibration characteristics analysis of rolling bearing rotor system considering radial clearance and outer raceway defect Advances in Mechanical Engineering · SAGE Publishing · 2023 10.1177/16878132231167670
  37. ICoT-GAN: Integrated Convolutional Transformer GAN for Rolling Bearings Fault Diagnosis Under Limited Data Condition IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2023 10.1109/tim.2023.3271729
  38. FMRGAN: Feature Mapping Reconstruction GAN for Rolling Bearings Fault Diagnosis Under Limited Data Condition IEEE Sensors Journal · IEEE Sensors Council · 2024 10.1109/jsen.2024.3415713