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

A fault diagnosis method based on an improved diffusion model under limited sample conditions

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (3) 자동차 인테리어 소재(4) 카시트 모듈

기본 정보

저자
  1. Qiushi Wang — Shenyang Institute of Automation, Chinese Academy of Sciences, Shenyang, China|||Key Laboratory of Networked Control Systems, Chinese Academy of Sciences, Shenyang, China
  2. Zhicheng Sun — Shenyang Institute of Automation, Chinese Academy of Sciences, Shenyang, China|||Key Laboratory of Networked Control Systems, Chinese Academy of Sciences, Shenyang, China
  3. Yueming Zhu — Shenyang Institute of Automation, Chinese Academy of Sciences, Shenyang, China|||Key Laboratory of Networked Control Systems, Chinese Academy of Sciences, Shenyang, China
  4. Dong Li — State Key Laboratory of Robotics, Shenyang Institute of Automation, Chinese Academy of Sciences, Shenyang, Liaoning Province, China|||Key Laboratory of Networked Control Systems, Chinese Academy of Sciences, Shenyang, China
  5. Yunbin Ma — PipeChina Institute of Science and Technology, Langfang, China
DOI
10.1371/journal.pone.0309714
저널
PLoS ONE
발행년도
2024
발행기관
Public Library of Science
피인용수
3
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1371/journal.pone.0309714
토픽
Gear and Bearing Dynamics Analysis
OpenAlex ID
W4402206961

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(3) 자동차 인테리어 소재, (4) 카시트 모듈
R&D 측면
분석·모델링
확신도
0.70
근거 용어
fault diagnosis, rolling bearings, vibration data, diffusion model, 1D-CNN
판단 근거
이 논문은 기계 시스템의 핵심 부품인 베어링의 결함을 진단하는 딥러닝 모델(DDPM, CNN) 연구입니다. 코오롱인더스트리의 직접적인 제품은 아니나, 자동차 부품(카시트 모듈 등)이나 엔지니어링 플라스틱 관련 제조 설비의 예지 보전 및 상태 모니터링 시스템 구축에 응용 가능한 기술입니다.
R&D 활용 포인트
자동차 부품 제조 공정이나 화학/수지 생산 설비의 회전 기기(모터, 펌프 등)에 대한 결함 진단 및 예지 보전(Predictive Maintenance) 알고리즘 개발에 활용 가능합니다.
평가 입력
본문 61,046자 중 30,032자 발췌

초록

As a critical component in mechanical systems, the operational status of rolling bearings plays a pivotal role in ensuring the stability and safety of the entire system. However, in practical applications, the fault diagnosis of rolling bearings often encounters limitations due to the constraint of sample size, leading to suboptimal diagnostic accuracy. This article proposes a rolling bearing fault diagnosis method based on an improved denoising diffusion probability model (DDPM) to address this issue. The practical value of this research lies in its ability to address the limitation of small sample sizes in rolling bearing fault diagnosis. By leveraging DDPM to generate one-dimensional vibration data, the proposed method significantly enriches the datasets and consequently enhances the generalization capability of the diagnostic model. During the model training process, we innovatively introduce the feature differences between the original vibration data and the predicted vibration data generated based on prediction noise into the loss function, making the generated data more directional and targeted. In addition, this article adopts a one-dimensional convolutional neural network (1D-CNN) to construct a fault diagnosis model to more accurately extract and focus on key feature information related to faults. The experimental results show that this method can effectively improve the accuracy and reliability of rolling bearing fault diagnosis, providing new ideas and methods for fault detection and prevention in industrial applications. This advancement in diagnostic technology has the potential to significantly reduce the risk of system failures, enhance operational efficiency, and lower maintenance costs, thus contributing significantly to the safety and efficiency of mechanical systems.

본문 61,046자

본문 펼치기
# PLOS ONE ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0309714&domain=pdf&date_stamp=2024-09-03)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0309714&domain=pdf&date_stamp=2024-09-03)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0309714&domain=pdf&date_stamp=2024-09-03)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0309714&domain=pdf&date_stamp=2024-09-03)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0309714&domain=pdf&date_stamp=2024-09-03)</u>~~ OPEN ACCESS Citation: Wang Q, Sun Z, Zhu Y, Li D, Ma Y (2024) A fault diagnosis method based on an improved diffusion model under limited sample conditions. [PLoS ONE 19(9): e0309714. https://doi.org/](https://doi.org/10.1371/journal.pone.0309714) [10.1371/journal.pone.0309714](https://doi.org/10.1371/journal.pone.0309714) Editor: Lei Zhang, Beijing Institute of Technology, CHINA Received: April 29, 2024 Accepted: August 14, 2024 Published: September 3, 2024 Copyright: © 2024 Wang et al. This is an open access article distributed under the terms of the [Creative Commons Attribution License, which](http://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: All dataset files are [available from https://engineering.case.edu/](https://engineering.case.edu/bearingdatacenter/download-data-file) [bearingdatacenter/download-data-file and doi:10.](https://engineering.case.edu/bearingdatacenter/download-data-file) [3390/s130608013.](https://doi.org/10.3390/s130608013) Funding: Applied Basic Research Project of Liaoning Province, China (Grant No. 2023JH2/ 101300183). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript. Competing interests: The authors have declared that no competing interests exist. RESEARCH ARTICLE ## A fault diagnosis method based on an improved diffusion model under limited sample conditions Qiushi Wang <sup>1,2</sup> [, Zhicheng SunID](https://orcid.org/0009-0001-1071-3958) <sup>1,2</sup> *, Yueming Zhu <sup>1,2</sup> , Dong Li <sup>1,3</sup> , Yunbin Ma <sup>4</sup> 1 Key Laboratory of Networked Control Systems, Chinese Academy of Sciences, Shenyang, China, 2 Shenyang Institute of Automation, Chinese Academy of Sciences, Shenyang, China, 3 State Key Laboratory of Robotics, Shenyang Institute of Automation, Chinese Academy of Sciences, Shenyang, Liaoning Province, China, 4 PipeChina Institute of Science and Technology, Langfang, China - sunzhicheng@sia.cn ### Abstract As a critical component in mechanical systems, the operational status of rolling bearings plays a pivotal role in ensuring the stability and safety of the entire system. However, in prac tical applications, the fault diagnosis of rolling bearings often encounters limitations due to the constraint of sample size, leading to suboptimal diagnostic accuracy. This article pro poses a rolling bearing fault diagnosis method based on an improved denoising diffusion probability model (DDPM) to address this issue. The practical value of this research lies in its ability to address the limitation of small sample sizes in rolling bearing fault diagnosis. By leveraging DDPM to generate one-dimensional vibration data, the proposed method signifi cantly enriches the datasets and consequently enhances the generalization capability of the diagnostic model. During the model training process, we innovatively introduce the feature differences between the original vibration data and the predicted vibration data generated based on prediction noise into the loss function, making the generated data more directional and targeted. In addition, this article adopts a one-dimensional convolutional neural network (1D-CNN) to construct a fault diagnosis model to more accurately extract and focus on key feature information related to faults. The experimental results show that this method can effectively improve the accuracy and reliability of rolling bearing fault diagnosis, providing new ideas and methods for fault detection and prevention in industrial applications. This advancement in diagnostic technology has the potential to significantly reduce the risk of system failures, enhance operational efficiency, and lower maintenance costs, thus contrib uting significantly to the safety and efficiency of mechanical systems. Introduction In a wide range of applications, such as industrial manufacturing, aerospace and automotive engineering, rolling bearings play a key and indispensable role. However, due to the complexity and variability of their operating environment, as well as possible improper maintenance [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 1 / 19 PLOS ONE A fault diagnosis method with limited samples and other problems, rolling bearings often become the most common failure components in rotating machinery [1]. As a core component in mechanical equipment, the health condition of rolling bearings has a profound impact on the performance and stability of the entire system [1, 2]. Therefore, timely and accurate fault diagnosis of rolling bearings is an indispensable part of ensuring the stable operation of mechanical equipment [3]. The process of fault diagnosis for rolling bearings typically encompasses a variety of methods and technologies. Currently, these methods and techniques can be systematically grouped into three main categories: model-based diagnostic methods, data-based analysis techniques [4], and hybrid integrated diagnostic strategies [5, 6]. Model-based diagnostic methods aim to simulate the actual running state and potential failure modes of bearings by constructing physical or mathematical models of the bearings, so as to realize fault prediction and accurate diagnosis of bearings in operation [7]. On the other hand, data-based analysis technology relies on bearing operating data collected by sensors in real time, and with the help of data analysis tools and pattern recognition algorithms, a comprehensive assessment of the bearing’s health status is carried out. However, with the increasing complexity of modern equipment, it has become increasingly difficult to construct models that can accurately reflect failure mechanisms, which to some extent limits the application of physical models in the field of fault diagnosis. Therefore, data-based fault diagnosis methods are currently favored as mainstream diagnostic techniques in practical applications due to their flexibility and practicality [8]. With rapid advancements in science and technology, the field of data-based fault diagnosis is experiencing unprecedented changes. With this wave of change, deep learning-based fault diagnosis methods have garnered significant interest and application [9, 10]. This is attributed to their ability to automatically extract and process features from raw vibration data, showing notable potential for practical application [11]. Guo et al. [12] improves the comprehensiveness and accuracy of fault diagnosis by fusing the time-domain and time-frequency-domain features of signals through parallel network deployment, while combining the anomalous attention mechanism of AT and the attributes of CBAM to form a dual attention mechanism. Chen et al. [13] proposed a bearing fault diagnosis algorithm based on multisource sensor data and an improved long short-term memory network (LSTM), which can effectively fuse features and cope with noise interference, improving diagnostic accuracy. Shao et al. [14] proposed a high-precision deep learning algorithm for machine fault diagnosis based on transfer learning, which converts sensor data into images, extracts features through pretrained networks, and fine tunes the network architecture. Chen et al. [15] combined CNN with transfer learning and proposed a transferable CNN algorithm that reuses prior knowledge to improve the learning performance of deep models in mechanical fault diagnosis. Xiao et al. [16] proposed a fault diagnosis algorithm based on a graph neural network (GNN). The algorithm constructs a graph through sample similarity, uses a GNN for feature mapping, fuses neighbor feature information, and then inputs the mapped samples into the basic detector for fault detection. Meanwhile, the attention mechanism, which has made a large splash in the field of natural language processing and computer vision, is now being actively explored and applied to the field of fault diagnosis by researchers, such as channel attention [17], spatial attention [18], self-attention [19], CBAM [20], and coordinate attention [21], which have led to new breakthroughs in fault diagnosis technology [22]. However, the above research relies heavily on laboratory environments where faults are artificially created to generate large amounts of fault data. Conversely, in real production environments, rolling bearings are shut down immediately when they fail, and companies tend to adopt preventive maintenance, which makes it difficult to collect fault data. In the realm of fault diagnosis [23], a large amount of normal data and a relatively small amount of fault data often occur during the monitoring process [24]. To solve this challenge, researchers have [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 2 / 19 PLOS ONE A fault diagnosis method with limited samples made many efforts and attempts. Yan et al. [25] proposed a deep regularized variational autoencoder (DRVAE) fault diagnosis method to optimize the VAE through regularization techniques, solve its overfitting problem, and enhance the feature learning capability of the model. Zhao et al. [26] proposed an improved generative adversarial network (GAN), which optimized the training process and improved the diagnostic performance by introducing auxiliary classifiers and autoencoder-based similarity estimation. Qiu et al. [27] proposed an auxiliary classifier generative adversarial network (ACGAN) to achieve controllable generation of category labels. Zhang et al. [28] proposed a CVAE-GAN model that enhances the GAN generator stability via a VAE encoder and introduces sample labeling to improve the training efficiency. When comparing the above methods, the GAN is deficient due to its instability in the training process and its susceptibility to pattern collapse, while the VAE is limited by the limited diversity of its generated data [29]. In contrast, a generative model called the denoising diffusion probabilistic model (DDPM) performs well in improving the quality and diversity of generated samples, and its training process is more stable and reliable. Cui et al. [30] proposed a fault diagnosis algorithm based on a symmetrized dot pattern (SDP) and DDPM, which converts one-dimensional vibration data into SDP and uses DDPM to generate samples to construct a datasets with significant and balanced features, thereby achieving accurate fault diagnosis. Yang et al. [31] generated more realistic and diverse generated samples based on DDPM and time-frequency maps of vibration data and mixed the real data with the generated data for fault diagnosis. However, methods using image data lead to the loss of temporal features when processing vibration data and lack additional guidance for the diffusion generation process. Although significant results have been achieved in the field of small-sample fault diagnosis, considerable challenges remain in obtaining high-quality fault samples. For example, most of the current methods focus on sample generation from image data, while fault sample generation techniques for raw 1D data are still insufficient, which becomes a key challenge for us to further improve fault diagnosis performance. Therefore, this paper proposes an improved DDPM fault diagnosis method based on one-dimensional vibration data, aiming to solve the above problems and improve the diagnostic performance. The contributions of this paper can be summarized as follows. 1. To address the problem of low model accuracy caused by insufficient fault data in rolling bearing fault diagnosis in reality, an improved 1D-DDPM model is proposed for generating fault samples. 2. The feature difference loss function is introduced in the training process of the 1D-DDPM model to make the generated data more directional and targeted and improve the quality of the generated samples. 3. Combining the data generation ability of the 1D-DDPM method and the feature extraction ability of the convolutional neural network, a 1D-DDPM-CNN fault diagnosis method is constructed, and the experiments show that this method is effective and accurate for the fault diagnosis of limited sample datasets. The paper is organized as follows: The Methods section presents the methodology employed in this study. The Results and discussion section shows the results and discussion, and finally, the paper concludes with the Conclusion section. Methods This article proposes a rolling bearing fault diagnosis method that integrates one-dimensional DDPM and CNN, aiming to solve the problem of scarce fault data in real production [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 3 / 19 PLOS ONE A fault diagnosis method with limited samples <u>Fig 1.</u> <u>The structure of the fault diagnosis method.</u> [https://doi.org/10.1371/journal.pone.0309714.g001](https://doi.org/10.1371/journal.pone.0309714.g001) environments. This method first uses one-dimensional DDPM to generate fault data, then mixes the original data with the generated data, and finally uses one-dimensional CNN for fault diagnosis. The specific process of the algorithm is shown in Fig 1. 1D-DDPM The concept of diffusion modeling has been rooted in researchers’ exploration since 2015, and after several years of deep cultivation and sharpening, its theory and application have gradually matured. Until 2020, Jonhan Ho and other scholars successfully introduced the DDPM model on the basis of previous work and after subtle adjustments to the mathematical structure, [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 4 / 19 PLOS ONE A fault diagnosis method with limited samples <u>Fig 2.</u> <u>1D-DDPM schematic.</u> [https://doi.org/10.1371/journal.pone.0309714.g002](https://doi.org/10.1371/journal.pone.0309714.g002) which brought new innovative momentum to related fields. However, at present, the DDPM model mainly focuses on the generation of image data, and its application is still insufficient for the key area of fault diagnosis, especially fault diagnosis based on one-dimensional vibration data. As a direct carrier of equipment vibration information, raw 1D vibration data contain rich and detailed details. Therefore, this paper is dedicated to exploring the possibility of applying the DDPM model to 1D vibration data to utilize its unique advantages in the field of fault diagnosis. The structure of 1D-DDPM is shown as Fig 2. As shown in Fig 2, 1D-DDPM mainly includes two processes: the forward process and the reverse process. The forward process involves gradually adding Gaussian noise to the original one-dimensional vibration data, ultimately resulting in the generation of pure Gaussian noise. The process of gradually adding noise is as follows: _xt_ - 1 þ _xt_ ¼ pf f i f f i f f i f f i f f i f f 1 � b _t_ pf f i f f b _tzt_ _zt_ - _N_ ð0 _; I_ Þ ð1Þ _xt_ - 1 _;_ b _tI_ Þ ð2Þ _q_ ð _xt_ j _xt_ - 1Þ ¼ _N_ ð _xt_ ; pf f i f f i f f i f f i f f i f f 1 � b _t_ where x0 represents the raw vibration data, xt represents the data after adding noiss, t represents the diffusion steps, βt represents the diffusion rate, which gradually increases with increasing diffusion steps, zt represents the Gaussian noise that conforms to the standard normal distribution, and N represents the Gaussian distribution. In the forward diffusion process, xt is related only to xt-1, so it can be regarded as a Markov chain process. For the convenience of calculation, let _αt_ = 1− _βt_ From this, it can be concluded that _x_ 0 þ _xt_ ¼ pfa� f i f _t_ f i pf f i f f i f f i f f i f f i f f 1 � a� _tz_ _z_ - _N_ ð0 _; I_ Þ ð3Þ Y _T_ _q_ ð _x_ 1: _T_ j _x_ 0Þ ¼ _q_ ð _xt_ j _xt_ - 1Þ ð4Þ _t_ ¼1 The reverse process involves a gradual denoising procedure, entailing the step-by-step removal of noise from data adhering to a normal distribution, ultimately leading to the generation of one-dimensional vibration data. The reverse process is the process of gradual denoising which gradually denoises noise data that conform to a normal distribution and generates one-dimensional vibration data. However, due to the need to determine the data distribution from the complete datasets, we cannot easily predict _q_ ( _xt_ | _xt_ −1). Therefore, the construction of a neural network parameterized by θ is adopted to approximate its distribution, assuming that _pθ_ ( _xt_ −1| _xt_ ) is the probability distribution of the inverse process and obeys a Gaussian distribution with its mean _μθ_ and variance ∑ _θ_ [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 5 / 19 PLOS ONE A fault diagnosis method with limited samples both taking xt and t as input parameters. Y _T_ _p_ yð _x_ 0: _T_ Þ ¼ _p_ ð _xT_ Þ _t_ ¼1 _p_ yð _xt_ - 1j _xt_ Þ ð5Þ X _p_ yð _xt_ - 1j _xt_ Þ ¼ _N_ ð _xt_ - 1; myð _xt; t_ Þ _;_ y <sup>ð</sup> <sup>_xt; t_</sup> <sup>ÞÞ</sup> ð6Þ In the process of inverse diffusion, if we give xt and x0, we can calculate xt-1 based on the posterior diffusion conditional probability. _q_ ð _xt_ - 1j _xt; x_ 0Þ ¼ _q_ ð _xt_ j _xt_ - 1 _; x_ 0Þ <sup>_<u>q</u>_</sup> <sup>ð</sup> <sup>_<u>xt</u>_</sup> <sup><u>�</u></sup> <sup><u>1j</u></sup> <sup>_<u>x</u>_</sup> <sup><u>0Þ</u></sup> ð7Þ _q_ ð _xt_ j _x_ 0Þ According to the properties of the Gaussian distribution and Formula (1), it can be concluded that _q_ ð _xt_ - 1j _xt; x_ 0Þ ¼ _N_ ð _xt_ - 1; ~m _t_ ð _xt; x_ 0Þ _;_ b <sup>~</sup> _tI_ Þ ð8Þ Among them, pfa� f i f _<u>t</u>_ f i <u>ð1 �</u> <u>a�</u> _<u>t</u>_ <u>�</u> <u>1Þ</u> _xt_ ð9Þ 1 � a� _t_ m~ _t_ ð _xt; x_ 0Þ ¼ pf f i f f i f f i ffiffi <u>a�</u> _<u>t</u>_ <u>�</u> <u>1b</u> _<u>t</u>_ _x_ 0 þ 1 � a� _t_ b~ _t_ ¼ <sup><u>1 �</u></sup> <sup><u>a�</u></sup> <sup>_<u>t</u>_</sup> <sup><u>�</u></sup> <sup><u>1</u></sup> b _t_ ð10Þ 1 � a� _t_ According to Formula (3), it can be obtained that _x_ 0 ¼ <sup>_<u>xt</u>_</sup> <sup>�</sup> pf f i f f i f f i f f i f f i f f 1 � a� _<u>tz</u>_ ~~pf~~ a� f i ~~f~~ _t_ f i _z_ - _N_ ð0 _; I_ Þ ð11Þ By substituting it into Formula (9), it can be concluded that <u>b</u> _<u>t</u>_ m~ _t_ ð _xt; t_ Þ ¼ ~~p~~ ð _xt_ - _z_ yÞ ð12Þ <u>1</u> ~~f~~ a f i ~~f~~ _t_ f i 1 � a� _t_ _zθ_ in the formula is the added noise that needs to be predicted by the model. The loss function of the original DDPM calculates the difference between the predicted noise and the true noise distribution. To make the generated model more interpretable and directional, this paper adds a sample quality evaluation loss to the loss function. By calculating the feature difference between the original vibration data and the predicted vibration data generated based on the predicted noise, the features are first normalized, and then the MSE loss is calculated. The selected features included time-domain indicators such as the mean, absolute mean, variance, standard variance, root mean square amplitude, root mean square value, peak, maximum, minimum, waveform index, peak index, pulse index, margin index, skewness, and kurtosis. To maintain sample diversity, the weights of the losses are 0.9 and 0.1, and the specific calculation method is as follows: _loss_ ¼ 0 _:_ 9 � _Ext_ _;t;z_ ½k _z_ - _z_ yð _xt; t_ Þk2�þ 0 _:_ 1 � _Ext_ _;t;z_ y ½k _y_ ð _x_ 0Þ � _y_ yð _x_ yð _xt; t; z_ yÞÞk2� ð13Þ where y represents the calculation function of the feature. The specific calculation formulas for each feature are listed in Table 1. [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 6 / 19 PLOS ONE A fault diagnosis method with limited samples Table 1. The specific calculation formulas for each feature. _<u>n</u>_ <u>¼1</u> 1. mean _x_ <sup>��</sup> ¼ _N_ <sup><u>1</u></sup> X _N_ _<u>n</u>_ <u>¼1</u> _x_ ð _n_ Þ 2. absolute mean j _x_ <sup>��</sup> j ¼ _N_ <sup><u>1</u></sup> X _N_ j _x_ ð _n_ Þj ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f _<u>n</u>_ ¼1 f i f i f i f i f i f i f i f i f i f i ~~sf~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f <u>1</u> X _N_ 2 <u>1</u> _N_ - 1 f i f i f i f i f i f i f i f i f i f i f i f i f i f i f i f i f i f X _N_ 3. variance d ¼ _N_ <sup><u>1</u></sup> X _N_ _n_ ¼1 _xn_ <sup>2</sup> 4. standard variance s _x_ ¼ ½ _x_ ð _n_ Þ � _x_ <sup>��</sup> �2 ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ 6. root mean square value _xrms_ ¼ ~~s~~ f i f i f i f i f i f i f i f i f i f i _x_ <sup>2</sup> ð _n_ Þ <u>!2</u> pf f i f f i f f i f f i f f i f j _x_ ð _n_ Þj f i f i f i f i f i f i f i f i f i f i X _N_ <u>1</u> _N_ 5. root mean square amplitude _xr_ ¼ _N_ <u>1</u> X _N_ _<u>n</u>_ ¼1 _n_ ¼1 7. peak _<u>xp</u>_ ¼ maxj _<u>x</u>_ ð _<u>n</u>_ Þj 8. maximum _<u>xp</u>_ ¼ max _<u>x</u>_ ð _<u>n</u>_ Þ <u>9. minimum</u> _<u>x</u>_ <u>min</u> <u>¼ min</u> _<u>x</u>_ <u>ð</u> _<u>n</u>_ <u>Þ</u> <u>10. waveform index</u> _<u>W</u>_ <u>¼</u> _<u>xrmsx</u>_ <sup>��</sup> 11. peak index _C_ ¼ _<u>xxrmsp</u>_ 12. pulse index _I_ ¼ _xpx_ <sup>��</sup> 13. margin index _L_ ¼ _xxpr_ ½ _x_ ð _n_ Þ � _x_ <sup>��</sup> �3 ð _<u>N</u>_ - 1Þs <sup>3</sup> _<u>x</u>_ 14. skewness _S_ ¼ X _N_ _<u>n</u>_ <u>¼1</u> ½ _x_ ð _n_ Þ � _x_ <sup>��</sup> �4 ð _<u>N</u>_ - 1Þs <sup>4</sup> _<u>x</u>_ 15. kurtosis _K_ ¼ X _N_ _<u>n</u>_ <u>¼1</u> [https://doi.org/10.1371/journal.pone.0309714.t001](https://doi.org/10.1371/journal.pone.0309714.t001) 1D-CNN One-dimensional convolutional neural networks (1DCNNs), as variants of convolutional neural networks, perform excellently in handling local relationships in sequence data. It can not only reduce the complexity of the model and avoid tedious feature extraction processes, but also effectively reduce the number of required weights. Therefore, this article specifically uses a 1DCNN to process one-dimensional vibration data, and its structural diagram is shown in Fig 3. <u>Fig 3.</u> <u>The structure of the 1DCNN.</u> [https://doi.org/10.1371/journal.pone.0309714.g003](https://doi.org/10.1371/journal.pone.0309714.g003) [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 7 / 19 PLOS ONE A fault diagnosis method with limited samples In this paper, the network structure of a 1DCNN is constructed by alternating convolutional and pooling layers, and finally, the extracted features are mapped to the output through a fully connected layer. In the convolutional layer, a series of trainable convolutional kernels slide over the input data to extract features, which can accurately capture the local patterns of the input sequence. Moreover, the application of activation functions results in nonlinear transformations on the output of convolutional layers, further enhancing the model’s expressive power. The convolution process can be described by the following formula: _yi;j;k_ ¼ _f_ ð X _s_ _i_ ¼ _l_ _xi;k_ ∗ _wj;i_ þ _bi_ Þ ð14Þ where yi,j, and k are the results of the convolution operation, f represents the ReLU activation function used in this article, xi,k represents the input data, * represents the convolution operation, wj,i represents the weights, and bi represents the bias. The pooling layer performs dimensionality reduction on the output of the convolutional layer, significantly reducing computational complexity and enhancing the robustness and generalization ability of the model. This article adopts the maximum pooling method, and the specific process is as follows: _X_ ¼ ð _i_ - 1 _ma_ Þ _l_ þ1x� _t_ - _il_ <sup>_Xl_</sup> <sup>�</sup> <sup>1ð</sup> <sup>_t_</sup> <sup>Þ</sup> ð15Þ where X represents the feature map after dimensionality reduction and l represents the length of the pooling region. Finally, the fully connected layer maps the output of the pooling layer to the final output of the model and identifies the output probability through the softmax function to complete the fault diagnosis task. Results and discussion To comprehensively verify the effectiveness and superiority of the method proposed in this paper, we designed an exhaustive experiment. In this study, we choose two representative datasets for the experiments, aiming to comprehensively test the generalization ability and stability of the method. In addition, to objectively evaluate the performance of the method proposed in this paper, we conducted comparative experiments with popular generative models such as Variable AutoEncoder (VAE) and Generative Adversarial Network (GAE). We also compare CNN fault diagnosis algorithms that do not use generative models to highlight the advantages of this paper’s approach in dealing with data scarcity and generative capabilities. For the hardware configurations of the experiments, we chose a high-performance computing environment, including a Windows 10 operating system, an RTX 3090 GPU, and a Core i7-12700K processor. These configurations provide sufficient computing resources for the experiments and ensure the accuracy and reliability of the results. During the experiments, all the fault diagnosis models were trained iteratively for 100 training cycles, and a learning rate of 0.001 and an Adam optimizer were used for parameter optimization and model tuning to ensure that the models were fully trained and converged. We chose Python as the development language and relied on the powerful deep learning framework TensorFlow to build and train the models to ensure the smooth execution of the experiments and the accuracy of the results. [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 8 / 19 PLOS ONE A fault diagnosis method with limited samples Case 1: CWRU bearing datasets Data description. The CWRU bearing fault diagnosis datasets is a commonly used datasets provided by Case Western Reserve University and is specifically designed for bearing fault detection and diagnosis. This datasets contains vibration signal data, covering the normal operating status of bearings and three common fault states, namely inner race faults, outer race faults, and rolling ball faults. These fault states simulate different fault situations that may occur in actual industry. In this paper, we selected the 48k drive end bearing fault data from the CWRU bearing fault diagnosis datasets as the experimental data. Specifically, three types of faults were selected: inner ring fault, outer ring fault, and rolling element fault, with a speed of 1730 rpm, a horsepower of 3 hp, and a fault diameter of 21 miles. For the outer ring fault, we selected the fault data with the fault location at 12 o’clock. More descriptions of the datasets are described in Table 2. To construct the experimental data, we combined the fault data with the normal data. For each fault type, we randomly selected 200 samples as the datasets, each containing 1024 vibration data points. Among them, we use 100 samples as training samples for the generative model, and the other 100 samples as test datasets to evaluate the performance of the fault diagnosis model.For the normal type, as there is no need for data generation, 200 samples are randomly selected as training samples, and the remaining 100 samples are used as testing samples. To solve the problem of difficult attribute data processing by classifiers, we adopted unique hot encoding instead of real number encoding. This encoding method converts each attribute value into a binary vector, where only one element is 1 and the rest are 0. This approach can effectively represent attribute data, enabling the classifier to better process and learn features. Through such experimental design and data preprocessing methods, we can use the CWRU bearing fault diagnosis datasets for research on bearing fault detection and diagnosis. This will help us extract features related to faults and train models to automatically identify and classify different types of bearing faults. The performance of the 1D-DDPM. The accuracy of fault diagnosis methods based on deep learning depends on the number of samples. The sample generation method of 1D-DDPM proposed in this paper can effectively supplement fault samples. However, the generated samples may be close to real samples in terms of their statistical characteristics, as they are actually generated through algorithm simulation, which cannot fully replicate the complexity and diversity of fault occurrence in the real environment and cannot completely replace real samples. To evaluate the impact of the number of generated samples on the accuracy of fault diagnosis, a series of experiments were conducted in this paper. In these experiments, we first generated three types of fault samples using 1D-DDPM and mixed them with real samples to construct a training set. To ensure the consistency of the results, all data augmentation is performed only on the training set, while the test set contains only the original real samples. The purpose of doing so is to eliminate the interference of other factors when evaluating the impact of the generated sample size on accuracy. In addition, the Table 2. Description of the CWRU datasets. <u>Fault Type</u> <u>Fault Size</u> <u>Fault Position</u> <u>Training Datasets For 1D-DDPM</u> <u>Testing Datasets For FD model</u> <u>Label</u> <u>Inner Race Fault</u> <u>21 mils</u> <u>—</u> <u>100</u> <u>100</u> <u>0</u> <u>Ball Fault</u> <u>21 mils</u> <u>—</u> <u>100</u> <u>100</u> <u>1</u> <u>Outer Race Fault</u> <u>21 mils</u> <u>Centered@12:00</u> <u>100</u> <u>100</u> <u>2</u> <u>Normal</u> <u>—</u> <u>—</u> <u>200</u> <u>100</u> <u>3</u> [https://doi.org/10.1371/journal.pone.0309714.t002](https://doi.org/10.1371/journal.pone.0309714.t002) [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 9 / 19 PLOS ONE A fault diagnosis method with limited samples Table 3. Diagnostic results of different generated samples. Experiment number <u>Training samples (fault types)</u> <u>Training samples (normal type)</u> Testing samples Average accuracy (%) <u>Real samples</u> <u>Generate samples</u> <u>Real samples</u> <u>1</u> <u>600</u> <u>0</u> <u>200</u> <u>400</u> <u>98.68</u> <u>2</u> <u>450</u> <u>0</u> <u>150</u> <u>400</u> <u>95.73</u> <u>3</u> <u>300</u> <u>0</u> <u>100</u> <u>400</u> <u>93.52</u> <u>4</u> <u>150</u> <u>0</u> <u>50</u> <u>400</u> <u>90.35</u> <u>5</u> <u>75</u> <u>0</u> <u>25</u> <u>400</u> <u>88.78</u> <u>6</u> <u>300</u> <u>600</u> <u>300</u> <u>400</u> <u>97.92</u> <u>7</u> <u>300</u> <u>450</u> <u>250</u> <u>400</u> <u>99.53</u> <u>8</u> <u>300</u> <u>300</u> <u>200</u> <u>400</u> <u>97.08</u> <u>9</u> <u>300</u> <u>150</u> <u>150</u> <u>400</u> <u>95.23</u> <u>10</u> <u>300</u> <u>75</u> <u>125</u> <u>400</u> <u>93.82</u> <u>11</u> <u>0</u> <u>600</u> <u>200</u> <u>400</u> <u>91.53</u> <u>12</u> <u>0</u> <u>450</u> <u>150</u> <u>400</u> <u>94.14</u> <u>13</u> <u>0</u> <u>300</u> <u>100</u> <u>400</u> <u>88.73</u> <u>14</u> <u>0</u> <u>150</u> <u>50</u> <u>400</u> <u>80.12</u> <u>15</u> <u>0</u> <u>75</u> <u>25</u> <u>400</u> <u>74.28</u> [https://doi.org/10.1371/journal.pone.0309714.t003](https://doi.org/10.1371/journal.pone.0309714.t003) number of normal samples used for training is not fixed but matches the number of faulty samples. This approach can ensure a balance between normal and faulty samples in the experiment, avoiding the impact of data imbalance on the results. Each experiment was repeated 10 times, and the average accuracy was recorded in Table 3. In the above experiments, we conducted a series of different experiments, covering experiments 1 to 15. Experiments 1 to 5 considered only real data, experiments 6 to 10 used mixed generated data with real data for experimentation, and experiments 11 to 15 used only generated data for fault diagnosis. From Experiment 1 to Experiment 5, it can be observed that the accuracy decreases as the number of training samples decreases. This indicates that the number of samples has a significant impact on accuracy without generating samples. Through experiments 6 to 10, it can be observed that as the number of generated samples increases, the accuracy improves. However, when the ratio of generated samples to original samples is 1:1.5, the fault diagnosis accuracy is the highest. Excessive generation of fault data does not improve the accuracy of diagnostic models, as these samples may contain redundant information in addition to fault information. This further indicates that the generated samples cannot completely replace the real samples. Through experiments 11 to 15, it can be observed that using only generated samples for training without using real samples resulted in a decrease in accuracy compared to experiments 1 to 5. This indicates that although generating samples can fit the distribution of real data, there are still certain limitations in fault diagnosis. In summary, we can conclude that the method of mixing generated data with real data has better performance in fault diagnosis compared to a single data source. This means that mixing generated data with real data can provide better performance in fault diagnosis. However, although generating data can fit the distribution of real data well, there is still a certain gap in fault diagnosis compared to real data. This gap is mainly reflected in two aspects, namely, noise difference and dynamic characteristics. In terms of noise difference, although the generated data are similar to real data in distribution, they lack the randomness and complex noise in real-world data, which affects the robustness of the fault diagnosis model, and in terms of dynamic characteristics, the real data often contain complex dynamic processes, which are [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 10 / 19 PLOS ONE A fault diagnosis method with limited samples <u>Fig 4.</u> <u>The gap between original data and generate data.</u> [https://doi.org/10.1371/journal.pone.0309714.g004](https://doi.org/10.1371/journal.pone.0309714.g004) difficult to be fully captured by the generated model, leading to a diagnostic performance gap. The gap between the generated data and the original data can be visualized as Fig 4, which shows the original data is more centralized in distribution than the generate data. The method of mixing generated data with real data performs well in improving fault diagnosis performance. When the ratio of real samples to generated samples is 1:1.5, the fault diagnosis effect is optimal. Although the sample generation method effectively compensates for the problem of insufficient samples, it is still necessary to pay attention to the situation where there is a certain gap in fault diagnosis performance between the generated data and the real data. Fault diagnosis of rolling bearings based on 1D-DDPM-CNN To further evaluate the feasibility and effectiveness of the method proposed in this article, comparative experiments were conducted. First, we use different sample generation methods to generate fault samples, where the ratio of real samples to fault samples is 1:1.5. Next, we use a mixed datasets to train the fault diagnosis model. Table 4 describes the detailed information of the data. Table 4. Mixed datasets of rolling bearing samples in different states. Fault state <u>Training samples</u> Testing samples <u>Real samples</u> <u>Generate samples</u> <u>Normal</u> <u>250</u> <u>0</u> <u>100</u> <u>Inner-ring fault</u> <u>100</u> <u>150</u> <u>100</u> <u>Outer-ring fault</u> <u>100</u> <u>150</u> <u>100</u> <u>Rolling-ball fault</u> <u>100</u> <u>150</u> <u>100</u> [https://doi.org/10.1371/journal.pone.0309714.t004](https://doi.org/10.1371/journal.pone.0309714.t004) [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 11 / 19 PLOS ONE A fault diagnosis method with limited samples Table 5. The hyperparameters settings. <u>Kernel counts (KC)</u> <u>Kernel length (KL)</u> <u>Pooling Length (PL)</u> <u>Dropout</u> <u>Learning Rate</u> <u>Batch Size</u> <u>32</u> <u>32</u> <u>3</u> <u>0.2</u> <u>0.001</u> <u>16</u> [https://doi.org/10.1371/journal.pone.0309714.t005](https://doi.org/10.1371/journal.pone.0309714.t005) Through the above experimental setup, we evaluate the impact of different sample generation methods on fault diagnosis models. In this paper, a fault diagnosis model is constructed based on a 1D-CNN, and the hyperparameter settings are shown in Table 5. The number of convolution kernels for the 1D-CNN in this article is set to 32, and the length of each convolution kernel is set to 32. When performing pooling operations, use a pooling window of size 3 is used. To reduce overfitting, the dropout is set to 0.2, which will randomly discard a portion of the neurons in the network. The initial learning rate is set to 0.001, and after every 5 iterations, the learning rate is halved. The batch size is set to 16 and the number of epochs is 30. Categorical_crossentropy is used as the loss function to update the model parameters. Fig 5 shows the training results of fault diagnosis for different generative models. By observing the figure, it can be observed that after 10 iterations, the training accuracy and loss of the four methods reached a convergence state, and the accuracy all reached 100%. However, compared to algorithms that only use real samples, algorithms that mix three types of generated samples with real samples have faster convergence speed and higher accuracy. In particular, the 1D-DDPM algorithm used in this article performs the best among these methods, proving the effectiveness and superiority of our method. Table 6 shows the accuracy, recall and F1 values of the four fault diagnosis methods on the test set. From the table, it can be seen that the method proposed in this paper performs the best on all three indicators, further proving the effectiveness of the method proposed in this paper. To further validate the effectiveness of the developed method, we plotted Fig 6, which shows the confusion matrix obtained when using a CNN model for fault diagnosis after supplementing fault samples with three generation models namely, 1D-DDPM, 1D-VAE, and 1D-GAN, and mixing them with real samples. The y-coordinate of the confusion matrix represents the classification of the actual labels, and the x-coordinate represents the predicted labels. <u>Fig 5.</u> <u>The accuracy and loss of the fault diagnosis methods.</u> [https://doi.org/10.1371/journal.pone.0309714.g005](https://doi.org/10.1371/journal.pone.0309714.g005) [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 12 / 19 PLOS ONE A fault diagnosis method with limited samples Table 6. The result of the four fault diagnosis methods using CWRU. <u>Fault diagnosis model</u> <u>1D-DDPM-CNN</u> <u>1D-VAE-CNN</u> <u>1D-GAN-CNN</u> <u>1D-CNN</u> <u>Accuracy</u> <u>99.75%</u> <u>97%</u> <u>96%</u> <u>95.25%</u> <u>Recall</u> <u>99.752%</u> <u>97.04%</u> <u>96.02%</u> <u>95.53%</u> <u>F1</u> <u>99.751%</u> <u>97.02%</u> <u>96.01%</u> <u>95.39%</u> [https://doi.org/10.1371/journal.pone.0309714.t006](https://doi.org/10.1371/journal.pone.0309714.t006) <u>Fig 6.</u> <u>The confusion matrix of the different algorithms.</u> [https://doi.org/10.1371/journal.pone.0309714.g006](https://doi.org/10.1371/journal.pone.0309714.g006) [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 13 / 19 PLOS ONE A fault diagnosis method with limited samples Table 7. The accuracy for each operation condition of different algorithms. <u>Fault diagnosis model</u> <u>1D-DDPM-CNN</u> <u>1D-VAE-CNN</u> <u>1D-GAN-CNN</u> <u>1D-CNN</u> <u>IF</u> <u>99%</u> <u>95%</u> <u>95%</u> <u>94%</u> <u>OF</u> <u>100%</u> <u>99%</u> <u>96%</u> <u>96%</u> <u>BF</u> <u>100%</u> <u>94%</u> <u>93%</u> <u>91%</u> <u>Normal</u> <u>100%</u> <u>100%</u> <u>100%</u> <u>100%</u> [https://doi.org/10.1371/journal.pone.0309714.t007](https://doi.org/10.1371/journal.pone.0309714.t007) The main diagonal elements of the confusion matrix represent the number of correctly classified samples in the current category,and the diagnostic accuracy for each running state is shown in Table 7. The recognition accuracy of the four algorithms for normal samples is 100%. However, for the fault samples generated by mixing the generated samples with the real samples, the recognition accuracy did not all reach 100%. This indicates that although the generative model can effectively supplement the missing fault samples, there is still a gap in the data quality of the generated samples compared to the real samples. On the other hand, for the recognition accuracy of the three types of fault samples, the algorithm proposed in this paper shows the highest accuracy, further proving the effectiveness and superiority of the algorithm proposed in this paper. Case 2: JNU bearing datasets Data description. The JUN bearing datasets, which originated from Jiangnan University, encompasses a comprehensive collection of bearing running status data [32]. This datasets was generated utilizing a centrifugal fan system test bed, equipped with a Mitsubishi SB-JR induction motor, where a fault was intentionally introduced into one of the bearings. The accelerometers were positioned perpendicular to the bearings to capture the vibration signals. The datasets encompasses four distinct running states: normal, inner ring fault, outer ring fault, and rolling element fault. The vibration acceleration signals were precisely captured at a sampling frequency of 50 kHz, across various rotational speeds of 600, 800, and 1000 rpm, providing a rich resource for multivariate analysis. For this study, the four states at 600 rpm were selected for fault diagnosis experiments, and the specific details are outlined in Table 8. Fault diagnosis of rolling bearings based on 1D-DDPM-CNN. The optimal ratio was verified by the CWRU datasets, i.e., a 1:1.5 ratio of real data to generated data. We generated 150 simulated data samples for each of the three different fault types based on 100 real data samples, and added an additional 250 normal data samples, which together constructed a comprehensive fault diagnosis training set. For the test set, we ensure that each operation state contains 100 samples to comprehensively evaluate the model performance. In this experiment, we tested the 1D-DDPM-CNN model, the VAE-CNN model, the GAN-CNN model proposed in this paper, and a traditional CNN model without using generated samples. The experimental results are shown in Table 9, and the confusion matrix of the results is shown in Fig 7 . The Table 8. Description of the JNU datasets. <u>Fault Type</u> <u>Training Data-sets For 1D-DDPM</u> <u>Testing Data-sets For FD model</u> <u>Label</u> <u>Normal</u> <u>0</u> <u>250</u> <u>0</u> <u>Outer Ring Failure (OF)</u> <u>100</u> <u>250</u> <u>1</u> <u>Rolling Body Failure (BF)</u> <u>100</u> <u>250</u> <u>2</u> <u>Inner Ring Failure (IF)</u> <u>100</u> <u>250</u> <u>3</u> [https://doi.org/10.1371/journal.pone.0309714.t008](https://doi.org/10.1371/journal.pone.0309714.t008) [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 14 / 19 PLOS ONE A fault diagnosis method with limited samples Table 9. The results of the four fault diagnosis methods using JNU. <u>Fault diagnosis model</u> <u>1D-DDPM-CNN</u> <u>1D-VAE-CNN</u> <u>1D-GAN-CNN</u> <u>1D-CNN</u> <u>Accuracy</u> <u>96.5%</u> <u>87.5%</u> <u>86%</u> <u>82.5%</u> <u>Recall</u> <u>96.68%</u> <u>87.37%</u> <u>85.87%</u> <u>83.73%</u> <u>F1</u> <u>96.59%</u> <u>87.43%</u> <u>85.93%</u> <u>83.11%</u> [https://doi.org/10.1371/journal.pone.0309714.t009](https://doi.org/10.1371/journal.pone.0309714.t009) <u>Fig 7.</u> <u>The confusion matrix of different algorithms in JNU datasets.</u> [https://doi.org/10.1371/journal.pone.0309714.g007](https://doi.org/10.1371/journal.pone.0309714.g007) [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 15 / 19 PLOS ONE A fault diagnosis method with limited samples Table 10. Comparison between fault diagnosis methods. <u>Fault diagnosis model</u> <u>Accuracy</u> <u>The proposed method</u> <u>99.75%</u> <u>DTL-Res2Net-CBAM</u> <u>99.68%</u> <u>ERGAN</u> <u>99.34%</u> <u>DCGAN</u> <u>98.95%</u> <u>SMOTE</u> <u>97.98%</u> <u>DCNN</u> <u>97.81%</u> [https://doi.org/10.1371/journal.pone.0309714.t010](https://doi.org/10.1371/journal.pone.0309714.t010) results show that the algorithm proposed in this paper achieves the optimal performance in terms of accuracy, recall, and F1, which fully verifies the efficiency and practicability of this algorithm in fault diagnosis tasks. Comparison with other methods. To further evaluate the performance of the proposed method and its effectiveness in the field of fault diagnosis, we conduct a comparative study with five existing and representative methods. These comparative methods include two generative models (i.e., DCGAN and ERGAN) and three nongenerative models (DTL-Res2NetCBAM, SMOTE, and DCNN). During the experiments, we use the widely recognized CWRU datasets to ensure the reliability and wide adaptability of the experimental results. For the generative models, we selected 100 real samples and the corresponding generative samples for each fault type to jointly construct the training set, in contrast to the training set for the nongenerative models, where we used only 100 real samples. The test set used another 100 real samples for each type to evaluate and compare the performances of all the models. The experimental results are shown in Table 10 . The experimental results show that the accuracy of the proposed method in this paper is the highest for both generative and nongenerative models, further proving the effectiveness of the method proposed in this paper. Conclusion The rolling bearing fault diagnosis method based on the improved denoising diffusion probability model (DDPM) proposed in this article has achieved significant results under limited sample conditions. By using DDPM to generate one-dimensional vibration data, the problem of insufficient data has been effectively solved, and the generalization ability of the model has improved. At the same time, introducing feature differences into the loss function makes the generated data more directional and improves diagnostic accuracy. In addition, the CNN model can better capture key features and enhance the robustness of the model. However, there are still some shortcomings in this study. Under extremely sparse sample conditions, the performance of this method has not been fully validated, and its adaptability needs to be further strengthened. Moreover, this method also has certain limitations in terms of model transfer performance, making it difficult to directly apply to the fault diagnosis of rolling bearings of different models or working environments. In future work, we will focus on addressing the issues mentioned above and implementing the following recommendations. First, we will dedicate efforts to optimizing the model structure, enhancing its universality, and improving its generalization ability. This will enable the model to effectively adapt to various fault modes in a better manner. Second, we will explore fault diagnosis methods specifically designed for situations with extremely sparse sample conditions. By doing so, we aim to enhance the model’s performance in such scenarios. [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 16 / 19 PLOS ONE A fault diagnosis method with limited samples Additionally, we will investigate strategies to improve the transfer performance of the model, allowing it to be applied more extensively in different scenarios for fault diagnosis of rolling bearings. Author Contributions Conceptualization: Qiushi Wang, Zhicheng Sun. Data curation: Yueming Zhu. Formal analysis: Yueming Zhu, Dong Li. Funding acquisition: Dong Li. Investigation: Dong Li, Yunbin Ma. Methodology: Qiushi Wang, Zhicheng Sun. Project administration: Dong Li, Yunbin Ma. Resources: Qiushi Wang, Yunbin Ma. Software: Zhicheng Sun. Supervision: Qiushi Wang, Dong Li. Validation: Qiushi Wang, Zhicheng Sun, Yueming Zhu. Visualization: Qiushi Wang, Zhicheng Sun, Yueming Zhu. Writing – original draft: Qiushi Wang, Zhicheng Sun. Writing – review & editing: Qiushi Wang. References 1. Qing Ni, J.C. Ji, Benjamin Halkon, Ke Feng, Asoke K. Nandi. Physics-Informed Residual Network (PIResNet) for rolling element bearing fault diagnostics. Mechanical Systems and Signal Processing. 2023; Volume [200, 110544. https://doi.org/10.1016/j.ymssp.2023.110544](https://doi.org/10.1016/j.ymssp.2023.110544) 2. Miao J., Wang J., Zhang D., Miao Q. Improved Generative Adversarial Network for Rotating Component Fault Diagnosis in Scenarios With Extremely Limited Data. IEEE Transactions on Instrumentation and Measurement. 2022; [71: 1–13. https://doi.org/10.1109/TIM.2021.3127636](https://doi.org/10.1109/TIM.2021.3127636) 3. Wang Zuolu, Shi Dawei, Xu Yuandong, Zhen Dong, Gu Fengshou, Ball Andrew D. Early rolling bearing fault diagnosis in induction motors based on on-rotor sensing vibrations. Measurement. 2022; Volume [222, https://doi.org/10.1016/j.measurement.2023.113614](https://doi.org/10.1016/j.measurement.2023.113614) 4. Ni Q., Ji J. C., Feng K. Data-Driven Prognostic Scheme for Bearings Based on a Novel Health Indicator and Gated Recurrent Unit Network. IEEE Transactions on Industrial Informatics. 2023; 19(2): 1301– [1311. https://doi.org/10.1109/TII.2022.3169465](https://doi.org/10.1109/TII.2022.3169465) 5. Ke Feng, J.C. Ji, Yongchao Zhang, Qing Ni, Zheng Liu, et al. Digital twin-driven intelligent assessment of gear surface degradation. Mechanical Systems and Signal Processing. 2023; Volume [186. https://](https://doi.org/10.1016/j.ymssp.2022.109896) [doi.org/10.1016/j.ymssp.2022.109896](https://doi.org/10.1016/j.ymssp.2022.109896) 6. Maurya M., Panigrahi I., Dash D., Malla C. Intelligent fault diagnostic system for rotating machinery based on IoT with cloud computing and artificial intelligence techniques: a review. Soft Comput. 2024; [28: 477–494. https://doi.org/10.1007/s00500-023-08255-0](https://doi.org/10.1007/s00500-023-08255-0) 7. Wu Renqiong, Wang Xiufeng, Ni Zexing, Zeng Chun. Dual-impulse behavior analysis and quantitative diagnosis of the raceway fault of rolling bearing. Mechanical Systems and Signal Processing. 2022; Volume [169, https://doi.org/10.1016/j.ymssp.2021.108734](https://doi.org/10.1016/j.ymssp.2021.108734) 8. Guo Junyu, Wang Zhiyuan, Li He, Yang Yulai, Huang Cheng-Geng, Yazdi Mohammad, et al. A hybrid prognosis scheme for rolling bearings based on a novel health indicator and nonlinear Wiener process. Reliability Engineering & System Safety. 2024; Volume [245, 110014. https://doi.org/10.1016/j.ress.](https://doi.org/10.1016/j.ress.2024.110014) [2024.110014](https://doi.org/10.1016/j.ress.2024.110014) [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 17 / 19 PLOS ONE A fault diagnosis method with limited samples 9. Li H., Wu X., Liu T., Li S. Rotating Machinery Fault Diagnosis Based on Typical Resonance Demodulation Methods: A Review. IEEE Sensors Journal. 2023; [23(7): 6439–6459., https://doi.org/10.1109/](https://doi.org/10.1109/JSEN.2023.3235585) [JSEN.2023.3235585](https://doi.org/10.1109/JSEN.2023.3235585) 10. An F., Wang J. Rolling bearing fault diagnosis algorithm using overlapping group sparse-deep complex convolutional neural network. Nonlinear Dyn 2022; [108: 2353–2368. https://doi.org/10.1007/s11071-](https://doi.org/10.1007/s11071-022-07314-9) [022-07314-9](https://doi.org/10.1007/s11071-022-07314-9) 11. Xu M, Shi Y, Deng M, Liu Y, Ding X, Deng A. An improved multi-scale branching convolutional neural network for rolling bearing fault diagnosis. PLoS ONE. 2023; [18(9): e0291353. https://doi.org/10.1371/](https://doi.org/10.1371/journal.pone.0291353) [journal.pone.0291353 PMID: 37703236](https://doi.org/10.1371/journal.pone.0291353) 12. Guo Junyu, Yang Yulai, Li He, Dai Le, Huang Bangkui. A parallel deep neural network for intelligent fault diagnosis of drilling pumps. Engineering Applications of Artificial Intelligence.2024; Volume [133,108071. https://doi.org/10.1016/j.engappai.2024.108071](https://doi.org/10.1016/j.engappai.2024.108071) 13. Xiang Chen, Qinming Liu, Jianrui Hu. Bearing Fault Diagnosis and Life Prediction Based on Attention Mechanism and Long Short-term Memory Network under Multi-source Sensor Data Information and Control. 2023; [52(4): 1–23. https://doi.org/10.13976/j.cnki.xk.2023.3056](https://doi.org/10.13976/j.cnki.xk.2023.3056) 14. Shao S., McAleer S., Yan R., Baldi P., Highly Accurate Machine Fault Diagnosis Using Deep Transfer Learning. IEEE Transactions on Industrial Informatics. 2019; [15(4): 2446–2455. https://doi.org/10.](https://doi.org/10.1109/TII.2018.2864759) [1109/TII.2018.2864759](https://doi.org/10.1109/TII.2018.2864759) 15. Chen Z., Gryllias K., Li W. Intelligent Fault Diagnosis for Rotary Machinery Using Transferable Convolutional Neural Network. IEEE Transactions on Industrial Informatics. 2020; [16(1): 339–349. https://doi.](https://doi.org/10.1109/TII.2019.2917233) [org/10.1109/TII.2019.2917233](https://doi.org/10.1109/TII.2019.2917233) 16. Xiao L., Yang X. & Yang X. A graph neural network-based bearing fault detection method. Sci Rep. 2023; [13: 5286. https://doi.org/10.1038/s41598-023-32369-y PMID: 37002257](https://doi.org/10.1038/s41598-023-32369-y) 17. Wang H., Xu J., Yan R. and Gao R. X. A New Intelligent Bearing Fault Diagnosis Method Using SDP Representation and SE-CNN. IEEE Transactions on Instrumentation and Measurement. 2020; 69(5): [2377–2389. https://doi.org/10.1109/TIM.2019.2956332](https://doi.org/10.1109/TIM.2019.2956332) 18. Fang H., Deng J., Zhao B., Shi Y., Zhou J., Shao S. LEFE-Net: A Lightweight Efficient Feature Extraction Network With Strong Robustness for Bearing Fault Diagnosis. IEEE Transactions on Instrumentation and Measurement. 2021; [70: 1–11. https://doi.org/10.1109/TIM.2021.3067187](https://doi.org/10.1109/TIM.2021.3067187) 19. Ding Yifei, Jia Minping, Miao Qiuhua, Cao Yudong. A novel time–frequency Transformer based on self– attention mechanism and its application in fault diagnosis of rolling bearings. Mechanical Systems and Signal Processing. 2022; [168: 108616. https://doi.org/10.1016/j.ymssp.2021.108616](https://doi.org/10.1016/j.ymssp.2021.108616) 20. Li Jun, Liu Yongbao, Li Qijie. Intelligent fault diagnosis of rolling bearings under imbalanced data conditions using attention-based deep learning method. Measurement. 2022; [189: 110500. https://doi.org/](https://doi.org/10.1016/j.measurement.2021.110500) [10.1016/j.measurement.2021.110500](https://doi.org/10.1016/j.measurement.2021.110500) 21. Lv Haixin, Chen Jinglong, Pan Tongyang, Zhang Tianci, Feng Yong, Liu Shen. Attention mechanism in intelligent fault diagnosis of machinery: A review of technique and application. Measurement. 2022; [199. https://doi.org/10.1016/j.measurement.2022.111594](https://doi.org/10.1016/j.measurement.2022.111594) 22. Zhang Xin, He Chao, Lu Yanping, Chen Biao, Zhu Le, Zhang Li. Fault diagnosis for small samples based on attention mechanism. Measurement. 2022; [187: 110242. https://doi.org/10.1016/j.](https://doi.org/10.1016/j.measurement.2021.110242) [measurement.2021.110242](https://doi.org/10.1016/j.measurement.2021.110242) 23. Zhang Tianci, Chen Jinglong, Li Fudong, Zhang Kaiyu, Lv Haixin, He Shuilong, et al. Intelligent fault diagnosis of machines with small & imbalanced data: A state-of-the-art review and possible extensions. ISA Transactions. 2022; [119: 152–171. https://doi.org/10.1016/j.isatra.2021.02.042 PMID: 33736889](https://doi.org/10.1016/j.isatra.2021.02.042) 24. Zhou Funa, Yang Shuai, Fujita Hamido, Chen Danmin, Wen Chenglin. Deep learning fault diagnosis method based on global optimization GAN for unbalanced data. Knowledge-Based Systems. 2020; [187: 104837. https://doi.org/10.1016/j.knosys.2019.07.008](https://doi.org/10.1016/j.knosys.2019.07.008) 25. Yan Xiaoan, She Daoming, Xu Yadong, Jia Minping. Deep regularized variational autoencoder for intelligent fault diagnosis of rotor–bearing system within entire life-cycle process. Knowledge-Based Systems. 2021; [226. https://doi.org/10.1016/j.knosys.2021.107142](https://doi.org/10.1016/j.knosys.2021.107142) 26. Zhao Bingxi, Yuan Qi. Improved generative adversarial network for vibration-based fault diagnosis with imbalanced data. Measurement. 2021; [169: 108522. https://doi.org/10.1016/j.measurement.2020.](https://doi.org/10.1016/j.measurement.2020.108522) [108522](https://doi.org/10.1016/j.measurement.2020.108522) 27. Jier Qiu, Hongfeng Tao, Long Cheng, Lingzhi Shen. Bearing Fault Diagnosis Based on Self-Attention Mechanism ACGAN. Information and Control. 2022; [51(06): 753–762. https://doi.org/10.13976/j.cnki.](https://doi.org/10.13976/j.cnki.xk.2022.2002) [xk.2022.2002](https://doi.org/10.13976/j.cnki.xk.2022.2002) 28. Zhang L., Zhang H. and Cai G. The Multiclass Fault Diagnosis of Wind Turbine Bearing Based on Multisource Signal Fusion and Deep Learning Generative Model. IEEE Transactions on Instrumentation and Measurement. 2022; [71: 1–12. https://doi.org/10.1109/TIM.2022.3178483](https://doi.org/10.1109/TIM.2022.3178483) [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 18 / 19 PLOS ONE A fault diagnosis method with limited samples 29. Wang Huaqing, Zhang Wenbo, Han Changkun, Fu Zhenbao and Song Liuyang. A bearing fault diagnosis method with an improved residual Unet diffusion model under extreme data imbalance. Meas. Sci. Technol. 2024; [35: 046113. https://doi.org/10.1088/1361-6501/ad1708](https://doi.org/10.1088/1361-6501/ad1708) 30. Cui W., Ding J., Meng G., Lv Z., Feng Y., Wang A., et al. Fault Diagnosis of Rolling Bearings in Primary Mine Fans under Sample Imbalance Conditions. Entropy 2023, [25, 1233. https://doi.org/10.3390/](https://doi.org/10.3390/e25081233) [e25081233 PMID: 37628263](https://doi.org/10.3390/e25081233) 31. Yang X., Ye T., Yuan X., Zhu W., Mei X., Zhou F. A Novel Data Augmentation Method Based on Denoising Diffusion Probabilistic Model for Fault Diagnosis Under Imbalanced Data. IEEE Transactions on Industrial Informatics. 2024; [20(5): 7820–7831. https://doi.org/10.1109/TII.2024.3366991](https://doi.org/10.1109/TII.2024.3366991) 32. Li K., Ping X., Wang H., Chen P., Cao Y. Sequential Fuzzy Diagnosis Method for Motor Roller Bearing in Variable Operating Conditions Based on Vibration Analysis. Sensors. 2013; 13(6): 8013–8041. [https://doi.org/10.3390/s130608013 PMID: 23793021](https://doi.org/10.3390/s130608013) [PLOS ONE | https://doi org/10 1371/journal pone 0309714](https://doi.org/10.1371/journal.pone.0309714) September 3 2024 19 / 19

섹션 본문 73문단 · 33,063자

(제목 없음)

1As a critical component in mechanical systems, the operational status of rolling bearings plays a pivotal role in ensuring the stability and safety of the entire system.However, in practical applications, the fault diagnosis of rolling bearings often encounters limitations due to the constraint of sample size, leading to suboptimal diagnostic accuracy.This article proposes a rolling bearing fault diagnosis method based on an improved denoising diffusion probability model (DDPM) to address this issue.The practical value of this research lies in its ability to address the limitation of small sample sizes in rolling bearing fault diagnosis.By leveraging DDPM to generate one-dimensional vibration data, the proposed method significantly enriches the datasets and consequently enhances the generalization capability of the diagnostic model.During the model training process, we innovatively introduce the feature differences between the original vibration data and the predicted vibration data generated based on prediction noise into the loss function, making the generated data more directional and targeted.In addition, this article adopts a one-dimensional convolutional neural network (1D-CNN) to construct a fault diagnosis model to more accurately extract and focus on key feature information related to faults.The experimental results show that this method can effectively improve the accuracy and reliability of rolling bearing fault diagnosis, providing new ideas and methods for fault detection and prevention in industrial applications.This advancement in diagnostic technology has the potential to significantly reduce the risk of system failures, enhance operational efficiency, and lower maintenance costs, thus contributing significantly to the safety and efficiency of mechanical systems.

Introduction

2In a wide range of applications, such as industrial manufacturing, aerospace and automotive engineering, rolling bearings play a key and indispensable role.However, due to the complexity and variability of their operating environment, as well as possible improper maintenance and other problems, rolling bearings often become the most common failure components in rotating machinery [1].As a core component in mechanical equipment, the health condition of rolling bearings has a profound impact on the performance and stability of the entire system [1,2].Therefore, timely and accurate fault diagnosis of rolling bearings is an indispensable part of ensuring the stable operation of mechanical equipment [3].

3The process of fault diagnosis for rolling bearings typically encompasses a variety of methods and technologies.Currently, these methods and techniques can be systematically grouped into three main categories: model-based diagnostic methods, data-based analysis techniques [4], and hybrid integrated diagnostic strategies [5,6].Model-based diagnostic methods aim to simulate the actual running state and potential failure modes of bearings by constructing physical or mathematical models of the bearings, so as to realize fault prediction and accurate diagnosis of bearings in operation [7].On the other hand, data-based analysis technology relies on bearing operating data collected by sensors in real time, and with the help of data analysis tools and pattern recognition algorithms, a comprehensive assessment of the bearing's health status is carried out.However, with the increasing complexity of modern equipment, it has become increasingly difficult to construct models that can accurately reflect failure mechanisms, which to some extent limits the application of physical models in the field of fault diagnosis.Therefore, data-based fault diagnosis methods are currently favored as mainstream diagnostic techniques in practical applications due to their flexibility and practicality [8].

4With rapid advancements in science and technology, the field of data-based fault diagnosis is experiencing unprecedented changes.With this wave of change, deep learning-based fault diagnosis methods have garnered significant interest and application [9,10].This is attributed to their ability to automatically extract and process features from raw vibration data, showing notable potential for practical application [11].Guo et al. [12] improves the comprehensiveness and accuracy of fault diagnosis by fusing the time-domain and time-frequency-domain features of signals through parallel network deployment, while combining the anomalous attention mechanism of AT and the attributes of CBAM to form a dual attention mechanism.Chen et al. [13] proposed a bearing fault diagnosis algorithm based on multisource sensor data and an improved long short-term memory network (LSTM), which can effectively fuse features and cope with noise interference, improving diagnostic accuracy.Shao et al. [14] proposed a high-precision deep learning algorithm for machine fault diagnosis based on transfer learning, which converts sensor data into images, extracts features through pretrained networks, and fine tunes the network architecture.Chen et al. [15] combined CNN with transfer learning and proposed a transferable CNN algorithm that reuses prior knowledge to improve the learning performance of deep models in mechanical fault diagnosis.Xiao et al. [16] proposed a fault diagnosis algorithm based on a graph neural network (GNN).The algorithm constructs a graph through sample similarity, uses a GNN for feature mapping, fuses neighbor feature information, and then inputs the mapped samples into the basic detector for fault detection.Meanwhile, the attention mechanism, which has made a large splash in the field of natural language processing and computer vision, is now being actively explored and applied to the field of fault diagnosis by researchers, such as channel attention [17], spatial attention [18], self-attention [19], CBAM [20], and coordinate attention [21], which have led to new breakthroughs in fault diagnosis technology [22].

5However, the above research relies heavily on laboratory environments where faults are artificially created to generate large amounts of fault data.Conversely, in real production environments, rolling bearings are shut down immediately when they fail, and companies tend to adopt preventive maintenance, which makes it difficult to collect fault data.In the realm of fault diagnosis [23], a large amount of normal data and a relatively small amount of fault data often occur during the monitoring process [24].To solve this challenge, researchers have made many efforts and attempts.Yan et al. [25] proposed a deep regularized variational autoencoder (DRVAE) fault diagnosis method to optimize the VAE through regularization techniques, solve its overfitting problem, and enhance the feature learning capability of the model.Zhao et al. [26] proposed an improved generative adversarial network (GAN), which optimized the training process and improved the diagnostic performance by introducing auxiliary classifiers and autoencoder-based similarity estimation.Qiu et al. [27] proposed an auxiliary classifier generative adversarial network (ACGAN) to achieve controllable generation of category labels.Zhang et al. [28] proposed a CVAE-GAN model that enhances the GAN generator stability via a VAE encoder and introduces sample labeling to improve the training efficiency.When comparing the above methods, the GAN is deficient due to its instability in the training process and its susceptibility to pattern collapse, while the VAE is limited by the limited diversity of its generated data [29].In contrast, a generative model called the denoising diffusion probabilistic model (DDPM) performs well in improving the quality and diversity of generated samples, and its training process is more stable and reliable.Cui et al. [30] proposed a fault diagnosis algorithm based on a symmetrized dot pattern (SDP) and DDPM, which converts one-dimensional vibration data into SDP and uses DDPM to generate samples to construct a datasets with significant and balanced features, thereby achieving accurate fault diagnosis.Yang et al. [31] generated more realistic and diverse generated samples based on DDPM and time-frequency maps of vibration data and mixed the real data with the generated data for fault diagnosis.However, methods using image data lead to the loss of temporal features when processing vibration data and lack additional guidance for the diffusion generation process.

6Although significant results have been achieved in the field of small-sample fault diagnosis, considerable challenges remain in obtaining high-quality fault samples.For example, most of the current methods focus on sample generation from image data, while fault sample generation techniques for raw 1D data are still insufficient, which becomes a key challenge for us to further improve fault diagnosis performance.Therefore, this paper proposes an improved DDPM fault diagnosis method based on one-dimensional vibration data, aiming to solve the above problems and improve the diagnostic performance.

7The contributions of this paper can be summarized as follows.

81. To address the problem of low model accuracy caused by insufficient fault data in rolling bearing fault diagnosis in reality, an improved 1D-DDPM model is proposed for generating fault samples.

92. The feature difference loss function is introduced in the training process of the 1D-DDPM model to make the generated data more directional and targeted and improve the quality of the generated samples.

103. Combining the data generation ability of the 1D-DDPM method and the feature extraction ability of the convolutional neural network, a 1D-DDPM-CNN fault diagnosis method is constructed, and the experiments show that this method is effective and accurate for the fault diagnosis of limited sample datasets.

11The paper is organized as follows: The Methods section presents the methodology employed in this study.The Results and discussion section shows the results and discussion, and finally, the paper concludes with the Conclusion section.

Methods

12This article proposes a rolling bearing fault diagnosis method that integrates one-dimensional DDPM and CNN, aiming to solve the problem of scarce fault data in real production environments.This method first uses one-dimensional DDPM to generate fault data, then mixes the original data with the generated data, and finally uses one-dimensional CNN for fault diagnosis.The specific process of the algorithm is shown in Fig 1.

1D-DDPM

13The concept of diffusion modeling has been rooted in researchers' exploration since 2015, and after several years of deep cultivation and sharpening, its theory and application have gradually matured.Until 2020, Jonhan Ho and other scholars successfully introduced the DDPM model on the basis of previous work and after subtle adjustments to the mathematical structure, The process of gradually adding noise is as follows:

14ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffiffi

15where x 0 represents the raw vibration data, x t represents the data after adding noiss, t represents the diffusion steps, β t represents the diffusion rate, which gradually increases with increasing diffusion steps, z t represents the Gaussian noise that conforms to the standard normal distribution, and N represents the Gaussian distribution.

16In the forward diffusion process, x t is related only to x t-1 , so it can be regarded as a Markov chain process.For the convenience of calculation, let α t = 1−β t From this, it can be concluded that

17The reverse process involves a gradual denoising procedure, entailing the step-by-step removal of noise from data adhering to a normal distribution, ultimately leading to the generation of one-dimensional vibration data.

18The reverse process is the process of gradual denoising which gradually denoises noise data that conform to a normal distribution and generates one-dimensional vibration data.However, due to the need to determine the data distribution from the complete datasets, we cannot easily predict q(x t |x t−1 ).Therefore, the construction of a neural network parameterized by θ is adopted to approximate its distribution, assuming that p θ (x t−1 |x t ) is the probability distribution of the inverse process and obeys a Gaussian distribution with its mean μ θ and variance ∑ θ both taking x t and t as input parameters.

19In the process of inverse diffusion, if we give x t and x 0 , we can calculate x t-1 based on the posterior diffusion conditional probability.

20According to the properties of the Gaussian distribution and Formula (1), it can be concluded that

21Among them,

22According to Formula (3), it can be obtained that

23By substituting it into Formula (9), it can be concluded that

24z θ in the formula is the added noise that needs to be predicted by the model.The loss function of the original DDPM calculates the difference between the predicted noise and the true noise distribution.To make the generated model more interpretable and directional, this paper adds a sample quality evaluation loss to the loss function.By calculating the feature difference between the original vibration data and the predicted vibration data generated based on the predicted noise, the features are first normalized, and then the MSE loss is calculated.The selected features included time-domain indicators such as the mean, absolute mean, variance, standard variance, root mean square amplitude, root mean square value, peak, maximum, minimum, waveform index, peak index, pulse index, margin index, skewness, and kurtosis.To maintain sample diversity, the weights of the losses are 0.9 and 0.1, and the specific calculation method is as follows:

25where y represents the calculation function of the feature.The specific calculation formulas for each feature are listed in Table 1.

1D-CNN

26One-dimensional convolutional neural networks (1DCNNs), as variants of convolutional neural networks, perform excellently in handling local relationships in sequence data.It can not only reduce the complexity of the model and avoid tedious feature extraction processes, but also effectively reduce the number of required weights.Therefore, this article specifically uses a 1DCNN to process one-dimensional vibration data, and its structural diagram is shown in Fig 3.

27Table 1.The specific calculation formulas for each feature.

28ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi

29ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffiffi jxðnÞj p ! 2

306. root mean square value x rms ¼ ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffi ffiffi In this paper, the network structure of a 1DCNN is constructed by alternating convolutional and pooling layers, and finally, the extracted features are mapped to the output through a fully connected layer.In the convolutional layer, a series of trainable convolutional kernels slide over the input data to extract features, which can accurately capture the local patterns of the input sequence.Moreover, the application of activation functions results in nonlinear transformations on the output of convolutional layers, further enhancing the model's expressive power.The convolution process can be described by the following formula:

31where y i,j , and k are the results of the convolution operation, f represents the ReLU activation function used in this article, x i,k represents the input data, * represents the convolution operation, w j,i represents the weights, and b i represents the bias.

32The pooling layer performs dimensionality reduction on the output of the convolutional layer, significantly reducing computational complexity and enhancing the robustness and generalization ability of the model.This article adopts the maximum pooling method, and the specific process is as follows:

33where X represents the feature map after dimensionality reduction and l represents the length of the pooling region.Finally, the fully connected layer maps the output of the pooling layer to the final output of the model and identifies the output probability through the softmax function to complete the fault diagnosis task.

Results and discussion

34To comprehensively verify the effectiveness and superiority of the method proposed in this paper, we designed an exhaustive experiment.In this study, we choose two representative datasets for the experiments, aiming to comprehensively test the generalization ability and stability of the method.In addition, to objectively evaluate the performance of the method proposed in this paper, we conducted comparative experiments with popular generative models such as Variable AutoEncoder (VAE) and Generative Adversarial Network (GAE).We also compare CNN fault diagnosis algorithms that do not use generative models to highlight the advantages of this paper's approach in dealing with data scarcity and generative capabilities.

35For the hardware configurations of the experiments, we chose a high-performance computing environment, including a Windows 10 operating system, an RTX 3090 GPU, and a Core i7-12700K processor.These configurations provide sufficient computing resources for the experiments and ensure the accuracy and reliability of the results.

36During the experiments, all the fault diagnosis models were trained iteratively for 100 training cycles, and a learning rate of 0.001 and an Adam optimizer were used for parameter optimization and model tuning to ensure that the models were fully trained and converged.We chose Python as the development language and relied on the powerful deep learning framework TensorFlow to build and train the models to ensure the smooth execution of the experiments and the accuracy of the results.

Case 1: CWRU bearing datasets

37Data description.The CWRU bearing fault diagnosis datasets is a commonly used datasets provided by Case Western Reserve University and is specifically designed for bearing fault detection and diagnosis.This datasets contains vibration signal data, covering the normal operating status of bearings and three common fault states, namely inner race faults, outer race faults, and rolling ball faults.These fault states simulate different fault situations that may occur in actual industry.

38In this paper, we selected the 48k drive end bearing fault data from the CWRU bearing fault diagnosis datasets as the experimental data.Specifically, three types of faults were selected: inner ring fault, outer ring fault, and rolling element fault, with a speed of 1730 rpm, a horsepower of 3 hp, and a fault diameter of 21 miles.For the outer ring fault, we selected the fault data with the fault location at 12 o'clock.More descriptions of the datasets are described in Table 2.

39To construct the experimental data, we combined the fault data with the normal data.For each fault type, we randomly selected 200 samples as the datasets, each containing 1024 vibration data points.Among them, we use 100 samples as training samples for the generative model, and the other 100 samples as test datasets to evaluate the performance of the fault diagnosis model.For the normal type, as there is no need for data generation, 200 samples are randomly selected as training samples, and the remaining 100 samples are used as testing samples.

40To solve the problem of difficult attribute data processing by classifiers, we adopted unique hot encoding instead of real number encoding.This encoding method converts each attribute value into a binary vector, where only one element is 1 and the rest are 0.This approach can effectively represent attribute data, enabling the classifier to better process and learn features.

41Through such experimental design and data preprocessing methods, we can use the CWRU bearing fault diagnosis datasets for research on bearing fault detection and diagnosis.This will help us extract features related to faults and train models to automatically identify and classify different types of bearing faults.

42The performance of the 1D-DDPM.The accuracy of fault diagnosis methods based on deep learning depends on the number of samples.The sample generation method of 1D-DDPM proposed in this paper can effectively supplement fault samples.However, the generated samples may be close to real samples in terms of their statistical characteristics, as they are actually generated through algorithm simulation, which cannot fully replicate the complexity and diversity of fault occurrence in the real environment and cannot completely replace real samples.To evaluate the impact of the number of generated samples on the accuracy of fault diagnosis, a series of experiments were conducted in this paper.

43In these experiments, we first generated three types of fault samples using 1D-DDPM and mixed them with real samples to construct a training set.To ensure the consistency of the results, all data augmentation is performed only on the training set, while the test set contains only the original real samples.The purpose of doing so is to eliminate the interference of other factors when evaluating the impact of the generated sample size on accuracy.In addition, the number of normal samples used for training is not fixed but matches the number of faulty samples.This approach can ensure a balance between normal and faulty samples in the experiment, avoiding the impact of data imbalance on the results.Each experiment was repeated 10 times, and the average accuracy was recorded in Table 3.

44In the above experiments, we conducted a series of different experiments, covering experiments 1 to 15. Experiments 1 to 5 considered only real data, experiments 6 to 10 used mixed generated data with real data for experimentation, and experiments 11 to 15 used only generated data for fault diagnosis.

45From Experiment 1 to Experiment 5, it can be observed that the accuracy decreases as the number of training samples decreases.This indicates that the number of samples has a significant impact on accuracy without generating samples.

46Through experiments 6 to 10, it can be observed that as the number of generated samples increases, the accuracy improves.However, when the ratio of generated samples to original samples is 1:1.5, the fault diagnosis accuracy is the highest.Excessive generation of fault data does not improve the accuracy of diagnostic models, as these samples may contain redundant information in addition to fault information.This further indicates that the generated samples cannot completely replace the real samples.

47Through experiments 11 to 15, it can be observed that using only generated samples for training without using real samples resulted in a decrease in accuracy compared to experiments 1 to 5.This indicates that although generating samples can fit the distribution of real data, there are still certain limitations in fault diagnosis.

48In summary, we can conclude that the method of mixing generated data with real data has better performance in fault diagnosis compared to a single data source.This means that mixing generated data with real data can provide better performance in fault diagnosis.However, although generating data can fit the distribution of real data well, there is still a certain gap in fault diagnosis compared to real data.This gap is mainly reflected in two aspects, namely, noise difference and dynamic characteristics.In terms of noise difference, although the generated data are similar to real data in distribution, they lack the randomness and complex noise in real-world data, which affects the robustness of the fault diagnosis model, and in terms of dynamic characteristics, the real data often contain complex dynamic processes, which are difficult to be fully captured by the generated model, leading to a diagnostic performance gap.

49The gap between the generated data and the original data can be visualized as Fig 4, which shows the original data is more centralized in distribution than the generate data.

50The method of mixing generated data with real data performs well in improving fault diagnosis performance.When the ratio of real samples to generated samples is 1:1.5, the fault diagnosis effect is optimal.Although the sample generation method effectively compensates for the problem of insufficient samples, it is still necessary to pay attention to the situation where there is a certain gap in fault diagnosis performance between the generated data and the real data.

Fault diagnosis of rolling bearings based on 1D-DDPM-CNN

51To further evaluate the feasibility and effectiveness of the method proposed in this article, comparative experiments were conducted.First, we use different sample generation methods to generate fault samples, where the ratio of real samples to fault samples is 1:1.5.Next, we use a mixed datasets to train the fault diagnosis model.Table 4 describes the detailed information of the data.Through the above experimental setup, we evaluate the impact of different sample generation methods on fault diagnosis models.

52In this paper, a fault diagnosis model is constructed based on a 1D-CNN, and the hyperparameter settings are shown in Table 5.

53The number of convolution kernels for the 1D-CNN in this article is set to 32, and the length of each convolution kernel is set to 32.When performing pooling operations, use a pooling window of size 3 is used.To reduce overfitting, the dropout is set to 0.2, which will randomly discard a portion of the neurons in the network.The initial learning rate is set to 0.001, and after every 5 iterations, the learning rate is halved.The batch size is set to 16 and the number of epochs is 30.Categorical_crossentropy is used as the loss function to update the model parameters.By observing the figure, it can be observed that after 10 iterations, the training accuracy and loss of the four methods reached a convergence state, and the accuracy all reached 100%.However, compared to algorithms that only use real samples, algorithms that mix three types of generated samples with real samples have faster convergence speed and higher accuracy.In particular, the 1D-DDPM algorithm used in this article performs the best among these methods, proving the effectiveness and superiority of our method.

54Table 6 shows the accuracy, recall and F1 values of the four fault diagnosis methods on the test set.From the table, it can be seen that the method proposed in this paper performs the best on all three indicators, further proving the effectiveness of the method proposed in this paper.

55To further validate the effectiveness of the developed method, we plotted Fig 6, which shows the confusion matrix obtained when using a CNN model for fault diagnosis after supplementing fault samples with three generation models namely, 1D-DDPM, 1D-VAE, and 1D-GAN, and mixing them with real samples.The y-coordinate of the confusion matrix represents the classification of the actual labels, and the x-coordinate represents the predicted labels.The main diagonal elements of the confusion matrix represent the number of correctly classified samples in the current category,and the diagnostic accuracy for each running state is shown in Table 7.

56The recognition accuracy of the four algorithms for normal samples is 100%.However, for the fault samples generated by mixing the generated samples with the real samples, the recognition accuracy did not all reach 100%.This indicates that although the generative model can effectively supplement the missing fault samples, there is still a gap in the data quality of the generated samples compared to the real samples.On the other hand, for the recognition accuracy of the three types of fault samples, the algorithm proposed in this paper shows the highest accuracy, further proving the effectiveness and superiority of the algorithm proposed in this paper.

Case 2: JNU bearing datasets

57Data description.The JUN bearing datasets, which originated from Jiangnan University, encompasses a comprehensive collection of bearing running status data [32].This datasets was generated utilizing a centrifugal fan system test bed, equipped with a Mitsubishi SB-JR induction motor, where a fault was intentionally introduced into one of the bearings.The accelerometers were positioned perpendicular to the bearings to capture the vibration signals.The datasets encompasses four distinct running states: normal, inner ring fault, outer ring fault, and rolling element fault.The vibration acceleration signals were precisely captured at a sampling frequency of 50 kHz, across various rotational speeds of 600, 800, and 1000 rpm, providing a rich resource for multivariate analysis.For this study, the four states at 600 rpm were selected for fault diagnosis experiments, and the specific details are outlined in Table 8.

58Fault diagnosis of rolling bearings based on 1D-DDPM-CNN.The optimal ratio was verified by the CWRU datasets, i.e., a 1:1.5 ratio of real data to generated data.We generated 150 simulated data samples for each of the three different fault types based on 100 real data samples, and added an additional 250 normal data samples, which together constructed a comprehensive fault diagnosis training set.For the test set, we ensure that each operation state contains 100 samples to comprehensively evaluate the model performance.In this experiment, we tested the 1D-DDPM-CNN model, the VAE-CNN model, the GAN-CNN model proposed in this paper, and a traditional CNN model without using generated samples.The experimental results are shown in Table 9, and the confusion matrix of the results is shown in Fig 7 .The results show that the algorithm proposed in this paper achieves the optimal performance in terms of accuracy, recall, and F1, which fully verifies the efficiency and practicability of this algorithm in fault diagnosis tasks.

59Comparison with other methods.To further evaluate the performance of the proposed method and its effectiveness in the field of fault diagnosis, we conduct a comparative study with five existing and representative methods.These comparative methods include two generative models (i.e., DCGAN and ERGAN) and three nongenerative models (DTL-Res2Net-CBAM, SMOTE, and DCNN).During the experiments, we use the widely recognized CWRU datasets to ensure the reliability and wide adaptability of the experimental results.For the generative models, we selected 100 real samples and the corresponding generative samples for each fault type to jointly construct the training set, in contrast to the training set for the nongenerative models, where we used only 100 real samples.The test set used another 100 real samples for each type to evaluate and compare the performances of all the models.The experimental results are shown in Table 10.

60The experimental results show that the accuracy of the proposed method in this paper is the highest for both generative and nongenerative models, further proving the effectiveness of the method proposed in this paper.

Conclusion

61The rolling bearing fault diagnosis method based on the improved denoising diffusion probability model (DDPM) proposed in this article has achieved significant results under limited sample conditions.By using DDPM to generate one-dimensional vibration data, the problem of insufficient data has been effectively solved, and the generalization ability of the model has improved.At the same time, introducing feature differences into the loss function makes the generated data more directional and improves diagnostic accuracy.In addition, the CNN model can better capture key features and enhance the robustness of the model.

62However, there are still some shortcomings in this study.Under extremely sparse sample conditions, the performance of this method has not been fully validated, and its adaptability needs to be further strengthened.Moreover, this method also has certain limitations in terms of model transfer performance, making it difficult to directly apply to the fault diagnosis of rolling bearings of different models or working environments.

63In future work, we will focus on addressing the issues mentioned above and implementing the following recommendations.First, we will dedicate efforts to optimizing the model structure, enhancing its universality, and improving its generalization ability.This will enable the model to effectively adapt to various fault modes in a better manner.Second, we will explore fault diagnosis methods specifically designed for situations with extremely sparse sample conditions.By doing so, we aim to enhance the model's performance in such scenarios.

Fig 1 .

64Fig 1.The structure of the fault diagnosis method.https://doi.org/10.1371/journal.pone.0309714.g001

Fig 2 .

65Fig 2. 1D-DDPM schematic.https://doi.org/10.1371/journal.pone.0309714.g002

Fig 4 .

66Fig 4. The gap between original data and generate data.https://doi.org/10.1371/journal.pone.0309714.g004

Fig 5

67shows the training results of fault diagnosis for different generative models.

Table 2 . Description of the CWRU datasets.

68https://doi.org/10.1371/journal.pone.0309714.t002

Table 4 . Mixed datasets of rolling bearing samples in different states.

69https://doi.org/10.1371/journal.pone.0309714.t004

The accuracy and loss of the fault diagnosis methods.

70https://doi.org/10.1371/journal.pone.0309714.g005

The confusion matrix of the different algorithms.

71https://doi.org/10.1371/journal.pone.0309714.g006

Table 8 . Description of the JNU datasets.

72https://doi.org/10.1371/journal.pone.0309714.t008

Table 9 . The results of the four fault diagnosis methods using JNU. Fault diagnosis model 1D-DDPM-CNN 1D-VAE-CNN 1D-GAN-CNN 1D-CNN

73https://doi.org/10.1371/journal.pone.0309714.t009Fig 7. The confusion matrix of different algorithms in JNU datasets.https://doi.org/10.1371/journal.pone.0309714.g007

참고문헌 30건

  1. Sequential Fuzzy Diagnosis Method for Motor Roller Bearing in Variable Operating Conditions Based on Vibration Analysis Sensors · Multidisciplinary Digital Publishing Institute · 2013 10.3390/s130608013
  2. Highly Accurate Machine Fault Diagnosis Using Deep Transfer Learning IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2018 10.1109/tii.2018.2864759
  3. Intelligent Fault Diagnosis for Rotary Machinery Using Transferable Convolutional Neural Network IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tii.2019.2917233
  4. Deep learning fault diagnosis method based on global optimization GAN for unbalanced data Knowledge-Based Systems · Elsevier BV · 2019 10.1016/j.knosys.2019.07.008
  5. A New Intelligent Bearing Fault Diagnosis Method Using SDP Representation and SE-CNN IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2019 10.1109/tim.2019.2956332
  6. Improved generative adversarial network for vibration-based fault diagnosis with imbalanced data Measurement · Elsevier BV · 2020 10.1016/j.measurement.2020.108522
  7. Intelligent fault diagnosis of machines with small &amp; imbalanced data: A state-of-the-art review and possible extensions ISA Transactions · Elsevier BV · 2021 10.1016/j.isatra.2021.02.042
  8. LEFE-Net: A Lightweight Efficient Feature Extraction Network With Strong Robustness for Bearing Fault Diagnosis IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2021 10.1109/tim.2021.3067187
  9. Deep regularized variational autoencoder for intelligent fault diagnosis of rotor–bearing system within entire life-cycle process Knowledge-Based Systems · Elsevier BV · 2021 10.1016/j.knosys.2021.107142
  10. Fault diagnosis for small samples based on attention mechanism Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.110242
  11. Improved Generative Adversarial Network for Rotating Component Fault Diagnosis in Scenarios With Extremely Limited Data IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2021 10.1109/tim.2021.3127636
  12. Intelligent fault diagnosis of rolling bearings under imbalanced data conditions using attention-based deep learning method Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.110500
  13. A novel time–frequency Transformer based on self–attention mechanism and its application in fault diagnosis of rolling bearings Mechanical Systems and Signal Processing · Elsevier BV · 2021 10.1016/j.ymssp.2021.108616
  14. Dual-impulse behavior analysis and quantitative diagnosis of the raceway fault of rolling bearing Mechanical Systems and Signal Processing · Elsevier BV · 2021 10.1016/j.ymssp.2021.108734
  15. Rolling bearing fault diagnosis algorithm using overlapping group sparse-deep complex convolutional neural network Nonlinear Dynamics · Springer Science+Business Media · 2022 10.1007/s11071-022-07314-9
  16. Data-Driven Prognostic Scheme for Bearings Based on a Novel Health Indicator and Gated Recurrent Unit Network IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2022 10.1109/tii.2022.3169465
  17. Attention mechanism in intelligent fault diagnosis of machinery: A review of technique and application Measurement · Elsevier BV · 2022 10.1016/j.measurement.2022.111594
  18. The Multiclass Fault Diagnosis of Wind Turbine Bearing Based on Multisource Signal Fusion and Deep Learning Generative Model IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2022 10.1109/tim.2022.3178483
  19. Digital twin-driven intelligent assessment of gear surface degradation Mechanical Systems and Signal Processing · Elsevier BV · 2022 10.1016/j.ymssp.2022.109896
  20. Rotating Machinery Fault Diagnosis Based on Typical Resonance Demodulation Methods: A Review IEEE Sensors Journal · IEEE Sensors Council · 2023 10.1109/jsen.2023.3235585
  21. A graph neural network-based bearing fault detection method Scientific Reports · Nature Portfolio · 2023 10.1038/s41598-023-32369-y
  22. Intelligent fault diagnostic system for rotating machinery based on IoT with cloud computing and artificial intelligence techniques: a review Soft Computing · Springer Science+Business Media · 2023 10.1007/s00500-023-08255-0
  23. Physics-Informed Residual Network (PIResNet) for rolling element bearing fault diagnostics Mechanical Systems and Signal Processing · Elsevier BV · 2023 10.1016/j.ymssp.2023.110544
  24. Fault Diagnosis of Rolling Bearings in Primary Mine Fans under Sample Imbalance Conditions Entropy · Multidisciplinary Digital Publishing Institute · 2023 10.3390/e25081233
  25. An improved multi-scale branching convolutional neural network for rolling bearing fault diagnosis PLoS ONE · Public Library of Science · 2023 10.1371/journal.pone.0291353
  26. Early rolling bearing fault diagnosis in induction motors based on on-rotor sensing vibrations Measurement · Elsevier BV · 2023 10.1016/j.measurement.2023.113614
  27. A bearing fault diagnosis method with an improved residual Unet diffusion model under extreme data imbalance Measurement Science and Technology · IOP Publishing · 2024 10.1088/1361-6501/ad1708
  28. A hybrid prognosis scheme for rolling bearings based on a novel health indicator and nonlinear Wiener process Reliability Engineering & System Safety · Elsevier BV · 2024 10.1016/j.ress.2024.110014
  29. A parallel deep neural network for intelligent fault diagnosis of drilling pumps Engineering Applications of Artificial Intelligence · Elsevier BV · 2024 10.1016/j.engappai.2024.108071
  30. A Novel Data Augmentation Method Based on Denoising Diffusion Probabilistic Model for Fault Diagnosis Under Imbalanced Data IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2024 10.1109/tii.2024.3366991