Convolutional Neural Network with Attention Mechanism and Visual Vibration Signal Analysis for Bearing Fault Diagnosis
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
기본 정보
- 저자
- DOI
- 10.3390/s24061831
- 저널
- Sensors
- 발행년도
- 2024
- 발행기관
- Multidisciplinary Digital Publishing Institute
- 피인용수
- 31
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.3390/s24061831
- 토픽
- Gear and Bearing Dynamics Analysis
- OpenAlex ID
- W4392752915
평가 내용
- 관련도
- 사업분야
- 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 55,849자
본문 펼치기
섹션 본문 114문단 · 53,109자
(제목 없음)
1Bearings, as widely employed supporting components, frequently work in challenging working conditions, leading to diverse fault types.Traditional methods for diagnosing bearing faults primarily center on time-frequency analysis, but this often requires expert experience for accurate fault identification.Conversely, intelligent fault recognition and classification methods frequently lack interpretability.To address this challenge, this paper introduces a convolutional neural network with an attention mechanism method, denoted as CBAM-CNN, for bearing fault diagnosis.This approach incorporates an attention mechanism, creating a Convolutional Block Attention Module (CBAM), to enhance the fault feature extraction capability of the network in the time-frequency domain.In addition, the proposed method integrates a weight visualization module known as the Gradient-Weighted Class Activation Map (Grad-CAM), enhancing the interpretability of the convolutional neural network by generating visual heatmaps on fault time-frequency graphs.The experimental results demonstrate that utilizing the dataset employed in this study, the CBAM-CNN achieves an accuracy of 99.81%, outperforming the Base-CNN with enhanced convergence speed.Furthermore, the analysis of attention weights reveals that this method exhibits distinct focus of attention under various fault types and degrees.The interpretability experiments indicate that the CBAM module balances the weight allocation, emphasizing signal frequency distribution rather than amplitude distribution.Consequently, this mitigates the impact of the signal amplitude on the diagnostic model to some extent.
Introduction
2Serving as essential support components for rotating parts, rolling bearings find widespread application in various fields, including industrial manufacturing, wind power, rail transit, and aerospace [1][2][3][4].However, the prevalence of uninterrupted loading in harsh working conditions substantially elevates the risk of bearing failures [5][6][7].Traditional approaches to bearing fault diagnosis typically entail the analysis of bearing signals in the time and frequency domains, often relying on manual techniques to discern fault features [8][9][10][11][12][13][14][15][16].Nevertheless, bearings exhibiting faults at different locations, and varying severities manifest distinct signal characteristics that are indicative of the specific fault [17][18][19].Conventional fault diagnosis methods encounter challenges in accurately extracting fault features due to the intricate nature of these differences.Consequently, the establishment of an efficient intelligent bearing fault diagnosis method becomes imperative.
3In response to the advancements in artificial intelligence technology and the proliferation of extensive monitoring data, numerous data-driven methodologies for bearing fault diagnosis have emerged.In recent years, there has been a notable surge in the adoption of deep neural networks, particularly leveraging their capacity to circumvent manual feature extraction and selection processes through an end-to-end approach, within the domain of bearing fault diagnosis.Among the various deep learning algorithms, convolutional neural networks (CNNs) have gained widespread acceptance and application in fault diagnosis within the field due to their capacity to address data in different dimensions.Zhang et al. introduced a one-dimensional CNN designed specifically for the diagnosis of bearing vibration signals [20].This approach aims to capture the fault characteristics of the bearing throughout continuous rotation periods.Li et al. employed a convolutional neural network for the diagnosis of the two-dimensional time-frequency graph of bearing fault signals.
4Additionally, InceptionResNetV2 was employed to accommodate the non-rigid characteristics and larger receptive field in the graph [21].Łuczak proposed a fault diagnosis method using a CNN to process spectrograms for fault diagnosis [22].In this method, short-time Fourier transform (STFT) is applied to transform 6 DOF sensor data into spectrograms that are combined into an RGB image.He also proposed a method which extends the application of CNNs to the recognition of specially crafted time-frequency images [23].This method extracts features from the original signal by CWT and subsequently utilizes a CNN for fault diagnosis.Kim et al. introduced an end-to-end convolutional model for fault diagnosis with three-axis vibration signals [24].This model uses a grouped convolution to extract the feature maps of each axis.Nonetheless, when the signal is influenced by noise stemming from operational conditions, the distinctions among bearing fault signal samples may be obscured by variations in features.This poses a challenge for convolutional neural networks (CNNs) to effectively differentiate.Therefore, enhancing the discriminative capabilities of CNNs in distinguishing bearing faults becomes a critical consideration.
5Drawing inspiration from the principles governing human attention, the attention mechanism has been introduced into the realm of deep learning.This mechanism directs machine learning methods to concentrate on crucial data information through weight distribution, effectively disregarding less pertinent information.The attention mechanism has gradually become the state of the art and has affected the direction of the field of bearing fault diagnosis.Wang et al. introduced a method for bearing fault diagnosis, utilizing a convolutional neural network integrated with a channel attention mechanism to analyze vibration signal image samples that were generated through the symmetrized dot pattern (SDP) method [25].The experimental findings demonstrated that the incorporation of the attention mechanism notably augmented the CNN's efficacy in diagnosing image samples.Li et al. proposed a deep learning-based bearing fault diagnosis method that integrates an attention mechanism.In this approach, a convolutional neural network is employed to extract features from the original bearing vibration signal sequence.Subsequently, a single-layer network structure is utilized in the feature classification stage to generate attention weights [26].The experimental results indicated that the diagnosis method incorporating the attention mechanism exhibited superior accuracy and efficiency compared to the method that was lacking attention.Zhao et al. presented an enhanced method for CNN-based bearing fault diagnosis [27].This method incorporated a multi-scale convolution kernel for feature extraction and introduced a channel attention mechanism.The experimental results demonstrated that the attention mechanism effectively enhanced the relevant fault information adaptively, while suppressing interference information.
6While deep learning technology has exhibited commendable performance in bearing fault diagnosis, it is predominantly considered a black-box model within the fault diagnosis domain.The inherent challenge lies in explaining the relationship between the extracted features' meaning as assigned by the model and the underlying fault mechanism.Consequently, there is a pressing need for research on the interpretability of fault diagnosis methods employing deep learning techniques.Yang et al. addressed this issue by applying neuron activation maximization and saliency map methods to the CNN-based bearing fault diagnosis task [28].Their methodology revealed that low-level spatial features, such as signal peaks, are extracted by the initial convolutional layers.As the network's layers progress, the fully connected layer extracts higher-level and more intricate abstract features that encapsulate sequential information, which is subsequently utilized for effective fault diagnosis.This approach contributes to a deeper understanding of the interpretability aspects of deep learning in the context of bearing fault diagnosis.
7In previous research, it was observed that diagnostic methods incorporating attention mechanisms are primarily applied to one-dimensional data channels.The comprehensive application of attention mechanisms to multi-dimensional data is largely overlooked.Additionally, a challenge exists in interpreting the correlation between existing methods and their corresponding diagnosis results.To augment the accuracy of bearing fault diagnosis and the interpretability of the CNN, this paper proposed a CNN with an attention mechanism and a visual vibration signal analysis.The key contributions of this work are summarized as follows:
8(1) This paper introduces a pioneering CNN-based bearing fault diagnosis method that incorporates an attention mechanism, utilizing time-frequency diagrams as input.The method achieves precise fault diagnosis through an end-to-end approach, eliminating the need for time-consuming manual feature extraction and professional expertise.(2) The proposed method integrates an attention mechanism termed the Convolutional Block Attention Module (CBAM).This module enhances the network's capability for fault feature extraction and fortifies its robustness across diverse operating conditions.(3) Additionally, the proposed method incorporates a weight visualization module known as the Gradient-Weighted Class Activation Map (Grad-CAM).This module enhances the interpretability of the convolutional neural network by generating a visualized heat map of the fault's time-frequency diagram, providing insights into the regions that are crucial for fault diagnosis.
9The rest of this article is organized as follows: Section 2 briefly introduces the theory of the CBAM and the Grad-CAM.Section 3 describes the proposed method in detail.Section 4 evaluates the method's performance on the simulated bearing failure dataset.Section 5 concludes this article.
CBAM
10CBAM is a lightweight general module that can be seamlessly integrated into a CNN with negligible overhead and can be jointly trained by the end-to-end mode.After adding the attention weight calculation structure module, the weights are automatically generated during the training process of the deep learning method.Subsequently, the module assigns attention weights to the original data and affects the computational decision-making process of the deep learning method by changing the distribution of the original data.In this process, the learning ability of deep learning methods is improved.
11In a CNN, distinct convolution kernels correspond to different channel outputs.Simultaneously, the features that are extracted by the network, as represented by these outputs, vary, and the significance of different features within the feature map group is not uniform.To address this, a channel attention module is incorporated into the convolutional network to emphasize various features within the feature map group.
12Additionally, considering that the feature map itself is a two-dimensional image, a spatial attention module is introduced into the convolutional network to determine which parts of the feature image warrant focus.The process of attention generation is illustrated in Figure 1.
Grad-CAM
13In the process of original data-to-result mapping, which is realized by the way of internal weight changes in machine learning, the learning process is affected by the attention information that is contained in the data directly.In order to explore the impact of the attention mechanism on the model, the Gradient-Weighted Class Activation Map (Grad-CAM), a weight visualization method for deep learning models, is introduced in the fault diagnosis method.As an advanced method for visualizing the weights of deep learning models, Grad-CAM can output a heat map of weights related to categories,
14In the process of original data-to-result mapping, which is realized by th internal weight changes in machine learning, the learning process is affected by tion information that is contained in the data directly.In order to explore the the attention mechanism on the model, the Gradient-Weighted Class Activa (Grad-CAM), a weight visualization method for deep learning models, is intro the fault diagnosis method.As an advanced method for visualizing the weigh learning models, Grad-CAM can output a heat map of weights related to categor can clearly indicate the importance of the model's weights to the sample by using colors.
15Once the convolutional neural network (CNN) is trained, its capability to bearing fault signals is encapsulated in the form of internal weights, which are d across the convolutional network module and the fully connected classifier m order to comprehensively analyze the influence of internal weights, fault sam overlaid onto the original two-dimensional time-frequency map.This overlayin allows the generated weight heat maps to intuitively illustrate the attention of diagnosis method to the fault information that is present in the time-frequency detailed procedure of heat map generation is delineated in Figure 2. Once the convolutional neural network (CNN) is trained, its capability to diagnose bearing fault signals is encapsulated in the form of internal weights, which are distributed across the convolutional network module and the fully connected classifier module.In order to comprehensively analyze the influence of internal weights, fault samples are overlaid onto the original two-dimensional time-frequency map.This overlaying process allows the generated weight heat maps to intuitively illustrate the attention of the fault diagnosis method to the fault information that is present in the time-frequency map.The detailed procedure of heat map generation is delineated in Figure 2.
16In the process of original data-to-result mapping, which is realized by t internal weight changes in machine learning, the learning process is affected by tion information that is contained in the data directly.In order to explore the the attention mechanism on the model, the Gradient-Weighted Class Activa (Grad-CAM), a weight visualization method for deep learning models, is intr the fault diagnosis method.As an advanced method for visualizing the weigh learning models, Grad-CAM can output a heat map of weights related to categor can clearly indicate the importance of the model's weights to the sample by usin colors.
17Once the convolutional neural network (CNN) is trained, its capability to bearing fault signals is encapsulated in the form of internal weights, which are d across the convolutional network module and the fully connected classifier m order to comprehensively analyze the influence of internal weights, fault sa overlaid onto the original two-dimensional time-frequency map.This overlayin allows the generated weight heat maps to intuitively illustrate the attention o diagnosis method to the fault information that is present in the time-frequency detailed procedure of heat map generation is delineated in Figure 2.
Architecture of Proposed Method
18In this article, to improve the fault diagnosis accuracy as well as enhance pretability, an intelligent fault diagnosis method based on a convolutional neura with an attention mechanism and visual analysis is proposed.
19Figure 3 shows the architecture of the proposed method, which mainly con components: a data preprocessing and input module, a convolution module, an
20In this article, to improve the fault diagnosis accuracy as well as enhance the interpretability, an intelligent fault diagnosis method based on a convolutional neural network with an attention mechanism and visual analysis is proposed.
21Figure 3 shows the architecture of the proposed method, which mainly contains five components: a data preprocessing and input module, a convolution module, an attention module, a classifier, and a visualization module.First, in the data preprocessing and input module, the raw one-dimensional signal samples are transformed and compressed by the short-time Fourier transform.The two-dimensional time-frequency diagrams and the labels are divided into datasets.The second component is the convolution module, which performs the feature extraction automatically.The third component is the attention module, including the channel attention and the spatial attention, which calculate the attention weights automatically.Then, in the classifier component, the fault diagnosis results are obtained by using softmax in the fully connected layer.Finally, after the network has been trained, the attention heat map of the time-frequency diagram is generated from the visualization module.The structural parameters and training parameters of the proposed method are shown in Tables 1 and 2, respectively.
22short-time Fourier transform.The two-dimensional time-frequency diagrams and the labels are divided into datasets.The second component is the convolution module, which performs the feature extraction automatically.The third component is the attention module, including the channel attention and the spatial attention, which calculate the attention weights automatically.Then, in the classifier component, the fault diagnosis results are obtained by using softmax in the fully connected layer.Finally, after the network has been trained, the attention heat map of the time-frequency diagram is generated from the visualization module.The structural parameters and training parameters of the proposed method are shown in Table 1 and Table 2, respectively.Learning rate Adam (lr = 0.001, betas = (0.9, 0.999))
Time-Frequency Graph Conversion
23To visualize the frequency band composition and distribution of bearing signals at various fault locations and severities, and to facilitate the exploration of the attention mechanism module's role, along with the outcomes of the visual weight analysis, the Learning rate Adam (lr = 0.001, betas = (0.9, 0.999))
24To visualize the frequency band composition and distribution of bearing signals at various fault locations and severities, and to facilitate the exploration of the attention mechanism module's role, along with the outcomes of the visual weight analysis, the proposed method employs a short-time Fourier transform (STFT) time-frequency diagram module.This module can transform the one-dimensional vibration signal into a two-dimensional time-frequency graph.The process of short-time Fourier transform is formulated as follows:
25Sensors 2024, 24, 1831 6 of 16
26where x(τ) is the time domain signal, and h(τ − t) represents the window function.During the transformation, the length of the window affects the time and frequency resolution.As the window length increases, resulting in a longer intercepted signal, a trade-off emerges between the time resolution and the frequency resolution.Specifically, longer windows lead to a lower time resolution but a higher frequency resolution.In this paper, the Hanning window is chosen as the STFT window function, with a window width of 2048 points, and the overlap between the two windows is 50%.This choice ensures that each frame encompasses at least one complete rotation signal of the motor.To compress the original time-frequency map, an adaptive pooling module is employed, generating a time-frequency map with dimensions of 28 in length and width.Figure 4 illustrates the time-frequency graph samples before and after processing.
27x τ is the time domain signal, and (
28During the transformation, the length of the window affects the time and freque lution.As the window length increases, resulting in a longer intercepted signa off emerges between the time resolution and the frequency resolution.Specifical windows lead to a lower time resolution but a higher frequency resolution.In t the Hanning window is chosen as the STFT window function, with a window 2048 points, and the overlap between the two windows is 50%.This choice en each frame encompasses at least one complete rotation signal of the motor.To the original time-frequency map, an adaptive pooling module is employed, gen time-frequency map with dimensions of 28 in length and width.Figure 4 illus time-frequency graph samples before and after processing.
Model Training Process
29For the sample input of the time-frequency graph, the convolutional neura is used to extract the fault information from the time-frequency graph and gen corresponding feature map group.The extraction process is shown in Figure 5.
30For the sample input of the time-frequency graph, the convolutional neural network is used to extract the fault information from the time-frequency graph and generate the corresponding feature map group.The extraction process is shown in Figure 5.
31where ( )
32x τ is the time domain signal, and ( ) h t τ − represents the window During the transformation, the length of the window affects the time and frequ lution.As the window length increases, resulting in a longer intercepted signa off emerges between the time resolution and the frequency resolution.Specifica windows lead to a lower time resolution but a higher frequency resolution.In t the Hanning window is chosen as the STFT window function, with a window 2048 points, and the overlap between the two windows is 50%.This choice en each frame encompasses at least one complete rotation signal of the motor.To the original time-frequency map, an adaptive pooling module is employed, ge time-frequency map with dimensions of 28 in length and width.Figure 4 illu time-frequency graph samples before and after processing.
33For the sample input of the time-frequency graph, the convolutional neura is used to extract the fault information from the time-frequency graph and ge corresponding feature map group.The extraction process is shown in Figure 5.For a given input feature map group F, the dimensional attributes are as follows: height H, width W, and number of channels C. The input form of the feature map group is denoted as F ∈ R C×H×W .For the input feature map group F, average pooling and maximum pooling are performed, respectively, to realize the aggregation of information in the spatial dimension of the feature map group and generate two pooled feature maps, F c avg and F c max .The two feature maps are subsequently input into a multilayer perceptron, each comprising a hidden neuron layer.This process results in the generation of two 1 × 1 × C channel attention maps.In order to obtain a better nonlinear learning ability and reduce the number of parameters and computation, the number of neurons in the hidden layer is defined as C/r, in which r is the compression ratio.The corresponding elements of the two channel attention maps that are obtained by the multilayer perceptron are combined, and subsequently, the sigmoid activation function is applied to obtain the channel attention weights.The calculation process of the channel attention is shown in Figure 6.The attention weight generation process is shown in the following formula:
34(2)
35The two feature maps are subsequently input into a multilayer perceptron, each com prising a hidden neuron layer.This process results in the generation of two 1 1 C × × chan nel attention maps.In order to obtain a better nonlinear learning ability and reduce the number of parameters and computation, the number of neurons in the hidden layer is defined as / C r , in which r is the compression ratio.The corresponding elements of the two channel attention maps that are obtained by the multilayer perceptron are combined and subsequently, the sigmoid activation function is applied to obtain the channel atten tion weights.The calculation process of the channel attention is shown in Figure 6.The attention weight generation process is shown in the following formula: In the channel direction of the feature map group, the information is aggregated through two pooling methods, and the maximum and average pooled feature maps s avg F and s max F are obtained; the dimension can be defined as 1 H W × × .The two feature maps are spliced, and then, the convolution kernel with the 7 7
36× convolution area is used to perform the convolution operation on the feature map.Finally, the sigmoid activation function is used to obtain the spatial attention weights.The calculation process of the spa tial attention is shown in Figure 7.The attention weights are calculated as follows: The entire attention calculation process is shown in the following formula: In the channel direction of the feature map group, the information is aggregated through two pooling methods, and the maximum and average pooled feature maps F s avg and F s max are obtained; the dimension can be defined as 1 × H × W. The two feature maps are spliced, and then, the convolution kernel with the 7 × 7 convolution area is used to perform the convolution operation on the feature map.Finally, the sigmoid activation function is used to obtain the spatial attention weights.The calculation process of the spatial attention is shown in Figure 7.The attention weights are calculated as follows:
37defined as / C r , in which r is the compression ratio.The corresponding elements of the two channel attention maps that are obtained by the multilayer perceptron are combined, and subsequently, the sigmoid activation function is applied to obtain the channel attention weights.The calculation process of the channel attention is shown in Figure 6.The attention weight generation process is shown in the following formula: In the channel direction of the feature map group, the information is aggregated through two pooling methods, and the maximum and average pooled feature maps s avg F and s max F are obtained; the dimension can be defined as 1 H W × × .The two feature maps are spliced, and then, the convolution kernel with the 7 7
38× convolution area is used to perform the convolution operation on the feature map.Finally, the sigmoid activation function is used to obtain the spatial attention weights.The calculation process of the spatial attention is shown in Figure 7.The attention weights are calculated as follows: The entire attention calculation process is shown in the following formula: The entire attention calculation process is shown in the following formula:
39where ⊗ is the Kronecker product operator.
40Sensors 2024, 24, 1831 8 of 16
Heat Map Generation
41For a classified sample, the class probability output is denoted as y c , and the final generated visualization result is denoted as L c Grad−CAM .In the first, partial derivatives for all channel feature maps, the output F k ij is obtained by the last convolutional layer of the CNN model.Then, global average pooling on the feature maps is performed to generate the average sensitivity of the sample category to the feature map in the channel k's output by the last layer of the convolutional layer.The calculation process is as follows:
42The partial derivative result represents the changing rate of the output concerning the input, indicating a unit change on the feature map.The output signifies how many units of change occurred and reflects the sensitivity of the output to the feature map.A higher gradient implies a greater sensitivity, suggesting that the pixel position is more likely to be associated with its category according to the model's determination.Upon completing the calculation, it undergoes linear weighting with the corresponding channel to the feature map.Subsequently, the two-dimensional weighted heat map is generated through the activation function.Figure 8 illustrates a sample of the heat map, and the calculation process is as follows:
43all channel feature maps, the output k ij F is obtained by the last conv CNN model.Then, global average pooling on the feature maps is pe the average sensitivity of the sample category to the feature map in put by the last layer of the convolutional layer.The calculation proce
44The partial derivative result represents the changing rate of th the input, indicating a unit change on the feature map.The output units of change occurred and reflects the sensitivity of the output to higher gradient implies a greater sensitivity, suggesting that the pi likely to be associated with its category according to the model's d completing the calculation, it undergoes linear weighting with the co to the feature map.Subsequently, the two-dimensional weighted he through the activation function.Figure 8 illustrates a sample of th calculation process is as follows:
Dataset Generation
45This experiment utilizes the MFS-Magnum motor fault compr experimental platform, manufactured by the company SQI, to simula experimental bearing platform designed for these simulation experi Figure 9. Three acceleration sensors, PCB PIEZOTRONICS 352C68, horizontal and vertical radial directions of the motor front cover an direction of the motor, respectively, to collect the vibration signals.Th conversion channels were set up for the synchronous acquisition o signals.The sampling frequency was set at 12,800 Hz, and the sampl 15 s.Simulated fatigue spalling occurs due to the combined load bear ing of both the inner and outer raceways, as well as the surfaces of Under the influence of alternating loads, cracks initially form at lo maximum shear stress on the surface.Subsequently, these cracks ex
Experimental Analysis 4.1. Dataset Generation
46This experiment utilizes the MFS-Magnum motor fault comprehensive simulation experimental platform, manufactured by the company SQI, to simulate bearing faults.The experimental bearing platform designed for these simulation experiments is depicted in Figure 9. Three acceleration sensors, PCB PIEZOTRONICS 352C68, were installed in the horizontal and vertical radial directions of the motor front cover and the vertical radial direction of the motor, respectively, to collect the vibration signals.Three analog-to-digital conversion channels were set up for the synchronous acquisition of acceleration sensor signals.The sampling frequency was set at 12,800 Hz, and the sampling length was set at 15 s.Simulated fatigue spalling occurs due to the combined load bearing and relative rolling of both the inner and outer raceways, as well as the surfaces of the rolling elements.Under the influence of alternating loads, cracks initially form at locations experiencing maximum shear stress on the surface.Subsequently, these cracks expand to the contact surface, leading to the formation of spalling pits on the surface layer.Over time, this process progresses into the development of large flakes.levels.In this way, a total of 288 simulated operating states are g of each experiment are conducted under each fault state with quency and load level.That is to say, the total number of sample Due to the long collection time of a single fault signal, slidin performed on the original signal to expand the number of samp the sliding window to a width of 8 s, which means that the wi points.To ensure coverage of all data and avoid the signal being tion, the window sliding frequency was set to 18 times, and the points.In total, 25,920 truncated data points were obtained, and dation set were split with a ratio of 80% and 20%.Finally, 20,7 were obtained to comprise the training set, and 5184 truncated d to form the validation set.
47In the validation dataset, No. 1-1728 represent inner race f represent outer race fault data, and No. 3457-5148 represent roll Due to the long collection time of a single fault signal, sliding window truncation was performed on the original signal to expand the number of samples in the dataset.We set the sliding window to a width of 8 s, which means that the window width was 102,400 points.To ensure coverage of all data and avoid the signal being too similar after truncation, the window sliding frequency was set to 18 times, and the step size was set to 5120 points.In total, 25,920 truncated data points were obtained, and the training set and validation set were split with a ratio of 80% and 20%.Finally, 20,736 truncated data points were obtained to comprise the training set, and 5184 truncated data points were obtained to form the validation set.
Attention Image Result and Performance Analysis
48In the validation dataset, No. 1-1728 represent inner race fault data, No. 1729-3456 represent outer race fault data, and No. 3457-5148 represent rolling element fault data.
Analysis of Bearing Fault Diagnosis Results
49The performance of the bearing fault diagnosis method is analyzed in this section.The accuracy curve, depicting the proportion of correctly diagnosed samples among all samples for the CBAM-CNN with the CBAM module, is illustrated by the blue line in Figure 11.It can be seen that the CBAM-CNN achieves a diagnosis accuracy of nearly Due to the long collection time of a single fault signal, sliding window truncation was performed on the original signal to expand the number of samples in the dataset.We set the sliding window to a width of 8 s, which means that the window width was 102,400 points.To ensure coverage of all data and avoid the signal being too similar after truncation, the window sliding frequency was set to 18 times, and the step size was set to 5120 points.In total, 25,920 truncated data points were obtained, and the training set and validation set were split with a ratio of 80% and 20%.Finally, 20,736 truncated data points were obtained to comprise the training set, and 5184 truncated data points were obtained to form the validation set.
50In the validation dataset, No. 1-1728 represent inner race fault data, No. 1729-3456 represent outer race fault data, and No. 3457-5148 represent rolling element fault data.
Attention Image Result and Performance Analysis 4.2.1. Analysis of Bearing Fault Diagnosis Results
51The performance of the bearing fault diagnosis method is analyzed in this section.The accuracy curve, depicting the proportion of correctly diagnosed samples among all samples for the CBAM-CNN with the CBAM module, is illustrated by the blue line in Figure 11.It can be seen that the CBAM-CNN achieves a diagnosis accuracy of nearly 100% on the bearing fault signal dataset, indicating that the proposed method has an excellent diagnostic ability for the bearing fault signal under the influence of multiple parameters.In order to verify the role of the attention module in the deep convolutional network, the Base-CNN without the CBAM module is trained under the same parameter conditions as a contrast.The diagnostic accuracy curve of the comparison model is shown in the red line in the figure .24, 24, x FOR PEER REVIEW 100% on the bearing fault signal dataset, indicating that the cellent diagnostic ability for the bearing fault signal under rameters.In order to verify the role of the attention modu network, the Base-CNN without the CBAM module is traine conditions as a contrast.The diagnostic accuracy curve of the in the red line in the figure.The accuracy of the Base-CNN curve increases slightly f CNN curve, because the Base-CNN training process does no cess of the CBAM module.However, it is worth noting that rate of 0.9867 after four rounds of training, which is close to th and reached a rate of 0.9981 after the sixth round of training accuracy rate.
52In order to analyze the classification performance of the ple, the classification results of the two models in the first ro converted into the confusion matrix form, and the results ar The accuracy of the Base-CNN curve increases slightly faster than that of the CBAM-CNN curve, because the Base-CNN training process does not contain the calculation process of the CBAM module.However, it is worth noting that the CBAM-CNN achieved a rate of 0.9867 after four rounds of training, which is close to the accuracy of the Base-CNN, and reached a rate of 0.9981 after the sixth round of training, surpassing the Base-CNN's accuracy rate.
53In order to analyze the classification performance of the model on each type of sample, the classification results of the two models in the first round and the sixth round are converted into the confusion matrix form, and the results are shown in Figure 12.
54It can be seen that after the first training round, there are more classification errors in the classification results of the CBAM-CNN than those of the Base-CNN, because the independent computing structure of the CBAM module has not yet completed the learning of the differences between the fault signals.After the sixth round of training, the CBAM-CNN has only 10 sample classification errors, which is lower than the 42 of the Base-CNN.The CBAM-CNN achieves and exceeds the performance of the Base-CNN after only six rounds of training when additional attention weight calculation is required.
55Therefore, the CBAM attention mechanism can improve the learning efficiency of a CNN.In addition, it can still achieve further performance improvement on the basis of the good performance of the CNN.rate of 0.9867 after four rounds of training, which is close to the accuracy of the Base-CNN, and reached a rate of 0.9981 after the sixth round of training, surpassing the Base-CNN's accuracy rate.
56In order to analyze the classification performance of the model on each type of sample, the classification results of the two models in the first round and the sixth round are converted into the confusion matrix form, and the results are shown in Figure 12.
Analysis of Bearing Fault Signal and Attention Weight
57The Grad-CAM module is used to analyze the visualization results of the weights of the convolutional network.For the purpose of comparison, time-frequency spectrogram samples are selected from three different fault positions at varying rotational frequencies, with a constant bearing fault severity parameter of 140 being maintained.The comparison results under different fault location conditions are shown in Figures 13-15.The left images display the overlay of attention weight heatmaps with the original time-frequency spectrograms, while the right images show the corresponding original time-frequency spectrograms.
58The results show that under different fault types, the CBMA-CNN model puts different levels of focus on different fault frequency bands.Due to the relatively weak amplitude of the fault signals for rolling element faults and inner race faults, the model's attention is more distributed in the weaker frequency bands containing fault information.However, since the outer race fault is within the range of direct action of the radial load on the bearing, the impact it receives is stronger, resulting in a relatively strong overall amplitude of the vibration signal.Therefore, the model focuses on almost all frequency bands.
59The comparison results under the same fault type conditions show that the model pays more attention to the frequency bands of signals in states with higher rotational frequencies.According to the calculation of the bearing fault's characteristic frequency, the change in rotation frequency will also affect the fault signal of the bearing, and the higher the rotation frequency is, the higher the energy contained in the bearing fault signal is.Therefore, the attention changes from narrow to wide, from shallow to deep, and even extends to the new frequency bands.
60In The results show that under different fault types, the CBMA-CNN model puts d ferent levels of focus on different fault frequency bands.Due to the relatively weak a plitude of the fault signals for rolling element faults and inner race faults, the mode attention is more distributed in the weaker frequency bands containing fault informatio However, since the outer race fault is within the range of direct action of the radial lo on the bearing, the impact it receives is stronger, resulting in a relatively strong over amplitude of the vibration signal.Therefore, the model focuses on almost all frequen bands.
61The comparison results under the same fault type conditions show that the mod pays more attention to the frequency bands of signals in states with higher rotational f quencies.According to the calculation of the bearing fault's characteristic frequency, t change in rotation frequency will also affect the fault signal of the bearing, and the high the rotation frequency is, the higher the energy contained in the bearing fault signal Therefore, the attention changes from narrow to wide, from shallow to deep, and ev extends to the new frequency bands.The comparison results of sample group No. 3600 are shown in Figure 18.The co parison of this group shows that adding the CBAM attention module can make the weig distribution of the fault diagnosis method balanced.The weights are distributed not on in the low-frequency high-amplitude signal frequency bands but also in the high-f quency low-amplitude signal frequency bands.The weights of the Base-CNN are alm all distributed in the low-frequency and high-amplitude signal frequency bands.Acco ing to the analysis above, the middle-and high-frequency bands of the bearing conta According to the analysis above, the middle-and high-frequency bands of the bearing contain relatively clear fault information, so the weight distribution of the CBAM-CNN is more reasonable than that of the Base-CNN.This indicates that the CBAM module can balance the distribution of weights, placing more emphasis on the frequency distribution of signals rather than the amplitude distribution.This, to some extent, mitigates the bias effect of signal amplitude on the diagnostic model.In summary, when training with a dataset involving varying operating conditio and multiple parameter faults, the incorporation of attention mechanisms has led to more reasonable distribution of weights in the fault diagnosis model.This aligns w conclusions drawn from traditional signal analysis, effectively improving the interpre bility of the model's fault diagnosis process.
Conclusions
62In this article, a bearing fault diagnosis method based on a CBAM attention mech nism is proposed for the task of bearing fault diagnosis.This method improves the dia nostic process by introducing the Convolutional Block Attention Module (CBAM).T CBAM includes both a channel attention mechanism and a spatial attention mechanis enabling the model to autonomously focus on learning important fault features in beari signals during training.This addresses the issues of declining learning efficiency and agnostic accuracy in diagnostic tasks.After completing the diagnostic task, the Grad-CA (Gradient-Weighted Class Activation Map) weight visualization technique is used to ge erate heatmaps of the model's weights.Combining this with a traditional analysis of be ing fault signals, the interpretability of the relationship between the model's weights a bearing fault mechanisms is analyzed in the form of visual heatmaps.
63The comparison results reveal that the attention module has the capability to bias t weight distribution of the fault diagnosis method towards the frequency band that is In summary, when training with a dataset involving varying operating conditions and multiple parameter faults, the incorporation of attention mechanisms has led to a more reasonable distribution of weights in the fault diagnosis model.This aligns with conclusions drawn from traditional signal analysis, effectively improving the interpretability of the model's fault diagnosis process.
64In this article, a bearing fault diagnosis method based on a CBAM attention mechanism is proposed for the task of bearing fault diagnosis.This method improves the diagnostic process by introducing the Convolutional Block Attention Module (CBAM).The CBAM includes both a channel attention mechanism and a spatial attention mechanism, enabling the model to autonomously focus on learning important fault features in bearing signals during training.This addresses the issues of declining learning efficiency and diagnostic accuracy in diagnostic tasks.After completing the diagnostic task, the Grad-CAM (Gradient-Weighted Class Activation Map) weight visualization technique is used to generate heatmaps of the model's weights.Combining this with a traditional analysis of bearing fault signals, the interpretability of the relationship between the model's weights and bearing fault mechanisms is analyzed in the form of visual heatmaps.
65The comparison results reveal that the attention module has the capability to bias the weight distribution of the fault diagnosis method towards the frequency band that is associated with the fault signal.Distinct fault types and operating conditions demonstrate varying attention focuses, exhibiting a strong correlation with the bearing fault mechanism.This offers a novel solution for interpretability research in the realm of deep learning for fault diagnosis.In summary, the proposed bearing fault diagnosis method, based on the attention mechanism, exhibits commendable diagnostic proficiency and interpretability in the task of circulatory system bearing fault diagnosis.
66The proposed method has an excellent fault diagnosis ability for the signals that are affected by the bearing operating conditions and fault types.But the generalization ability of the model outside the scope of the simulated experiments has not been validated.Therefore, when the completeness of the monitoring signal dataset cannot be guaranteed, it may be worth considering improving the existing model through transfer learning.This approach aims to enable the model to quickly learn and accurately diagnose new fault signals originating from different rotating systems.
Figure 1 .
67Figure 1.CBAM attention mechanism generation process.
Figure 2 .
68Figure 2. Grad-CAM heat map generation process.
Figure 1 .
69Figure 1.CBAM attention mechanism generation process.
70Figure 1.CBAM attention mechanism generation process.
Figure 2 .
71Figure 2. Grad-CAM heat map generation process.
72Figure 2. Grad-CAM heat map generation process.
Figure 3 .
73Figure 3.The proposed method based on CNN with attention mechanism.
74Figure 3.The proposed method based on CNN with attention mechanism.
Figure 4 .
75Figure 4.The time-frequency graph samples before and after processing.
Figure 5 .
76Figure 5. Feature map extraction process from the time-frequency graph.
77For a given input feature map group F , the dimensional attributes are a height H , width W , and number of channels C .The input form of the fea group is denoted asC H W F R × × ∈ .For the input feature map group F , averag and maximum pooling are performed, respectively, to realize the aggregation mation in the spatial dimension of the feature map group and generate two pool maps, c avg F and c max F .
Figure 4 .
78Figure 4.The time-frequency graph samples before and after processing.
79Figure 4.The time-frequency graph samples before and after processing.
Figure 5 .
80Figure 5. Feature map extraction process from the time-frequency graph.
81For a given input feature map group F , the dimensional attributes are a height H , width W , and number of channels C .The input form of the fea group is denoted asC H W F R × × ∈ .For the input feature map group F , averag and maximum pooling are performed, respectively, to realize the aggregation mation in the spatial dimension of the feature map group and generate two pool maps, c avg F and c max F .
82Figure 5. Feature map extraction process from the time-frequency graph.
Figure 6 .
83Figure 6.Channel attention generation process.
Figure 7 .
84Figure 7. Spatial attention generation process.
Figure 6 .
85Figure 6.Channel attention generation process.
86Figure 6.Channel attention generation process.
Figure 7 .
87Figure 7. Spatial attention generation process.
88Figure 7. Spatial attention generation process.
Figure 8 .
89Figure 8.Heat map sample.
90Figure 8.Heat map sample.
Figure 9 .
91Figure 9. Bearing simulation experiment platform.
Figure 10 .
92Figure 10.Three types of bearing fault manifestations.
Figure 9 .
93Figure 9. Bearing simulation experiment platform.In the experiment, three typical bearing faults located in the inner race, outer ring, and rolling element, respectively, which are shown in Figure10, were simulated.Each type of fault includes four degrees of fault, controlled by the diameter of the sintering area of the laser at the fault point during processing, which are 0.8 mm, 1.0 mm, 1.2 mm, and 1.4 mm, respectively.The experiments in every fault type are executed with four different rotation frequencies, which are 10 Hz, 20 Hz, 30 Hz, and 35 Hz, and six different load levels.In this way, a total of 288 simulated operating states are generated.Five repetitions of each experiment are conducted under each fault state with the applied rotation frequency and load level.That is to say, the total number of samples in the dataset is 1440.
94Figure 9. Bearing simulation experiment platform.
Figure 10 .
95Figure 10.Three types of bearing fault manifestations.
96Figure 10.Three types of bearing fault manifestations.
Figure 11 .
97Figure 11.Accuracy curve of the CBAM-CNN and Base-CNN.
98Figure 11.Accuracy curve of the CBAM-CNN and Base-CNN.
Figure 12 .
99Figure 12.Confusion matrix formed in the first round and the sixth round.(a) depicts the confusion matrix for the first round, whereas (b) is for the sixth round.Each image presents the confusion matrix results for the Base-CNN on the left side and the CBAM-CNN on the right side.The true labels are from the validation set, while the predicted labels are the outputs of the CBAM-CNN and Base-CNN.Twelve labels are the combination of 3 types of bearing faults, which are inner race
100Figure 12.Confusion matrix formed in the first round and the sixth round.(a) depicts the confusion matrix for the first round, whereas (b) is for the sixth round.Each image presents the confusion matrix results for the Base-CNN on the left side and the CBAM-CNN on the right side.The true labels are from the validation set, while the predicted labels are the outputs of the CBAM-CNN and Base-CNN.Twelve labels are the combination of 3 types of bearing faults, which are inner race faults, outer race faults, and rolling element faults, and 4 rotation frequencies, which are 10 Hz, 20 Hz, 30 Hz, and 35 Hz.The values corresponding to the same true and predicted label indicate the number of correct predictions for that particular fault state category.
Figure 13 .
101Figure 13.Heat maps of rolling element faults.(a) Rotation frequency 10 Hz; (b) rotation frequen 20 Hz; (c) rotation frequency 30 Hz; (d) rotation frequency 35 Hz.
Figure 13 .Figure 14 .
102Figure 13.Heat maps of rolling element faults.(a) Rotation frequency 10 Hz; (b) rotation frequency 20 Hz; (c) rotation frequency 30 Hz; (d) rotation frequency 35 Hz.
Figure 14 .Figure 14 .Figure 15 .
103Figure 14.Heat maps of inner ring fault.(a) Rotation frequency 10 Hz; (b) rotation frequency 20 Hz; (c) rotation frequency 30 Hz; (d) rotation frequency 35 Hz.
Figure 15 .Figure 16 .
104Figure 15.Heat maps of outer ring fault.(a) Rotation frequency 10 Hz; (b) rotation frequency 20 Hz; (c) rotation frequency 30 Hz; (d) rotation frequency 35 Hz.4.2.3.Analysis of Model Attention Mechanism and InterpretabilityTo further explore the influence of the attention mechanism on the weights, a comparative experiment is carried out.In the visualization results of the Base-CNN and CBAM-CNN weights, two results of the same fault sample are selected for comparison to observe the influence of the attention mechanism on the weight changes in the fault diagnosis model.The comparison result of sample group No. 2736 is shown in Figure16.The CBAM attention module enables the fault diagnosis model to simultaneously attend to multiple frequency bands, enhancing its capability to capture effective information in the time-frequency plot.Moreover, the attention weights of the CBAM-CNN cover the entire mid-frequency band, indicating that attention helps achieve a more uniform distribution of the model's weights across signal frequency bands.
Figure 16 .
105Figure 16.Heat maps of No. 2736 sample group.(a) CBAM-CNN; (b) Base-CNN.The comparison result of sample group No. 2544 is shown in Figure 17.It demonstrates that the CBAM attention module enables the accurate distribution of weights in the frequency bands for the fault diagnosis model.The weights of the Base-CNN appear in the empty zone between two signal frequency bands, indicating that the Base-CNN did not accurately capture the fault information but rather overly relied on other features in the time-frequency plot for classification diagnosis.If new data are used, the diagnostic performance of the model will likely decrease.
Figure 17 .
106Figure 17.Heat maps of No. 2544 sample group.(a) CBAM-CNN; (b) Base-CNN.
107Figure 17.Heat maps of No. 2544 sample group.(a) CBAM-CNN; (b) Base-CNN.The comparison results of sample group No. 3600 are shown in Figure 18.The comparison of this group shows that adding the CBAM attention module can make the weight distribution of the fault diagnosis method balanced.The weights are distributed not only in the low-frequency high-amplitude signal frequency bands but also in the high-frequency low-amplitude signal frequency bands.The weights of the Base-CNN are almost all distributed in the low-frequency and high-amplitude signal frequency bands.According to the analysis above, the middle-and high-frequency bands of the bearing contain relatively clear fault information, so the weight distribution of the CBAM-CNN is more reasonable than that of the Base-CNN.This indicates that the CBAM module can balance the distribution of weights, placing more emphasis on the frequency distribution of signals rather than the amplitude distribution.This, to some extent, mitigates the bias effect of signal amplitude on the diagnostic model.
Figure 18 .
108Figure 18.Heat maps of No. 3600 sample group.(a) CBAM-CNN; (b) Base-CNN.
109Figure 18.Heat maps of No. 3600 sample group.(a) CBAM-CNN; (b) Base-CNN.
Table 1 .
110The proposed method's structural parameters.
Table 2 .
111The proposed method's training parameters.
Table 1 .
112The proposed method's structural parameters.
113Layer Parameters 1 Input size (20, 20) 2 Conv1 Input/output channel number: 1/16, kernel size: 5 3 CBAM channel: 16, compression ratio: 8 4 Conv2 Input/output channel number: 16/16, kernel size: 5 5 FC1 size (256, 50) 6 FC2 size (50, 12) 7 Output size (12, 1)
Table 2 .
114The proposed method's training parameters.
참고문헌 28건
- Diesel engine crankshaft journal bearings failures: Case study Engineering Failure Analysis · Elsevier BV · 2014 10.1016/j.engfailanal.2014.05.014
- Bearing fault diagnosis based on wavelet transform and fuzzy inference Mechanical Systems and Signal Processing · Elsevier BV · 2003 10.1016/s0888-3270(03)00077-3
- A New Deep Learning Model for Fault Diagnosis with Good Anti-Noise and Domain Adaptation Ability on Raw Vibration Signals Sensors · Multidisciplinary Digital Publishing Institute · 2017 10.3390/s17020425
- A new time–frequency method for identification and classification of ball bearing faults Journal of Sound and Vibration · Elsevier BV · 2017 10.1016/j.jsv.2017.02.041
- A Novel Faults Diagnosis Method for Rolling Element Bearings Based on EWT and Ambiguity Correlation Classifiers Entropy · Multidisciplinary Digital Publishing Institute · 2017 10.3390/e19050231
- Early fault diagnosis of bearing and stator faults of the single-phase induction motor using acoustic signals Measurement · Elsevier BV · 2017 10.1016/j.measurement.2017.08.036
- Reviews of bearing vibration measurement using fast Fourier transform and enhanced fast Fourier transform algorithms Advances in Mechanical Engineering · SAGE Publishing · 2019 10.1177/1687814018816751
- Understanding and improving deep learning-based rolling bearing fault diagnosis with attention mechanism Signal Processing · Elsevier BV · 2019 10.1016/j.sigpro.2019.03.019
- Rolling Element Bearing Fault Diagnosis Based on Adaptive Local Iterative Filtering Decomposition and Teager–Kaiser Energy Operator Journal of Failure Analysis and Prevention · Springer Science+Business Media · 2019 10.1007/s11668-019-00723-w
- 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
- A Novel Method of Bearing Fault Diagnosis in Time-Frequency Graphs Using InceptionResnet and Deformable Convolution Networks IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2995198
- Multi-scale deep intra-class transfer learning for bearing fault diagnosis Reliability Engineering & System Safety · Elsevier BV · 2020 10.1016/j.ress.2020.107050
- A New Deep Learning Model for Fault Diagnosis with Good Anti-Noise and Domain Adaptation Ability on Raw Vibration Signal 2017 10.20944/preprints201701.0132.v1
- An improved cepstrum analysis method to diagnose faults in bearings 2021 10.1109/cmmno53328.2021.9467663
- Interpretability of deep convolutional neural networks on rolling bearing fault diagnosis Measurement Science and Technology · IOP Publishing · 2021 10.1088/1361-6501/ac41a5
- Multiscale inverted residual convolutional neural network for intelligent diagnosis of bearings under variable load condition Measurement · Elsevier BV · 2021 10.1016/j.measurement.2021.110511
- Deep Learning-Based Explainable Fault Diagnosis Model With an Individually Grouped 1-D Convolution for Three-Axis Vibration Signals IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2022 10.1109/tii.2022.3147828
- Variational multi-harmonic mode extraction for characterising impulse envelope of bearing failures ISA Transactions · Elsevier BV · 2022 10.1016/j.isatra.2022.05.042
- Clustering Federated Learning for Bearing Fault Diagnosis in Aerospace Applications with a Self-Attention Mechanism Aerospace · Multidisciplinary Digital Publishing Institute · 2022 10.3390/aerospace9090516
- Cloud Based Fault Diagnosis by Convolutional Neural Network as Time–Frequency RGB Image Recognition of Industrial Machine Vibration with Internet of Things Connectivity Sensors · Multidisciplinary Digital Publishing Institute · 2023 10.3390/s23073755
- A review of bearing failure Modes, mechanisms and causes Engineering Failure Analysis · Elsevier BV · 2023 10.1016/j.engfailanal.2023.107518
- Rolling Bearing Fault Diagnosis across Operating Conditions Based on Unsupervised Domain Adaptation Lubricants · Multidisciplinary Digital Publishing Institute · 2023 10.3390/lubricants11090383
- Fault Diagnosis of Rotating Machinery Using Kernel Neighborhood Preserving Embedding and a Modified Sparse Bayesian Classification Model Entropy · Multidisciplinary Digital Publishing Institute · 2023 10.3390/e25111549
- Legendre Multiwavelet Transform and Its Application in Bearing Fault Detection Applied Sciences · Multidisciplinary Digital Publishing Institute · 2023 10.3390/app14010219
- Fatigue failure of high precision spindle bearing under extreme service conditions Engineering Failure Analysis · Elsevier BV · 2023 10.1016/j.engfailanal.2023.107951
- A Novel Customised Load Adaptive Framework for Induction Motor Fault Classification Utilising MFPT Bearing Dataset Machines · Multidisciplinary Digital Publishing Institute · 2024 10.3390/machines12010044
- ADAMS Simulation and HHT Feature Extraction Method for Bearing Faults of Coal Shearer Processes · Multidisciplinary Digital Publishing Institute · 2024 10.3390/pr12010164
- Machine Fault Diagnosis through Vibration Analysis: Continuous Wavelet Transform with Complex Morlet Wavelet and Time–Frequency RGB Image Recognition via Convolutional Neural Network Electronics · Multidisciplinary Digital Publishing Institute · 2024 10.3390/electronics13020452