One-dimensional time-frequency dual-channel visual transformer for bearing fault diagnosis under strong noise and limited data conditions
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
기본 정보
- 저자
- DOI
- 10.1038/s41598-025-12533-2
- 저널
- Scientific Reports
- 발행년도
- 2025
- 발행기관
- Nature Portfolio
- 피인용수
- 0
- 라이선스
- cc-by-nc-nd
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1038/s41598-025-12533-2
- 토픽
- Gear and Bearing Dynamics Analysis
- OpenAlex ID
- W4412499123
평가 내용
- 관련도
- 사업분야
- 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 111,220자
본문 펼치기
섹션 본문 101문단 · 72,802자
(제목 없음)
1In industrial settings, bearing health directly affects equipment stability, making accurate and efficient fault diagnosis critical for operational safety.Recently, Transformer models have been widely adopted in bearing fault diagnosis due to their strong global modeling capabilities.However, they still face significant challenges under strong noise and limited data.To address this, this paper proposes an end-to-end Vision Transformer with time-frequency fusion and dual attention across spatial and channel dimensions.The model adopts a dual-branch design: the time-domain branch incorporates spatial and channel attention to capture both local and global features, while the frequency-domain branch uses FFT to extract spectral information and fuses it with temporal features for efficient multiscale modeling.To further enhance sensitivity to local patterns and periodic variations, a cross-scale convolution module and a periodic feedforward network are introduced.Experiments on the CWRU and PU datasets demonstrate that the proposed model achieves 99.42% and 98.14% accuracy, respectively, under noisy and data-scarce conditions.The results confirm superior noise robustness and diagnostic performance over recent state-of-the-art methods, highlighting its practical potential for real-world industrial applications.
2years, various deep learning architectures have been applied to bearing fault diagnosis, including deep belief networks 17 , stacked autoencoders 18 , convolutional neural networks (CNNs) 19 , and recurrent neural networks 20 .Notably, CNNs have demonstrated excellent performance due to their powerful feature extraction capabilities [21][22][23] .In 2016, multi-scale CNNs were proposed to address diverse frequency and hierarchical features 24 , followed by the development of convolutional bidirectional LSTM networks in 2017 25 , an end-to-end CNN robust to noise in 2018 26 , a generalizable adversarial CNN in 2019 27 , and a semi-supervised CNN for unlabeled data in 2021 28 .
3However, convolutional neural networks (CNNs) primarily focus on learning local patterns and lack the ability to model global relationships, making them less effective at capturing long-range dependencies in time series signals.Consequently, for non-smooth vibration signals influenced by high levels of noise, CNN-based models often struggle to effectively extract fault-relevant features.Transformer models, by leveraging sequenceto-sequence attention mechanisms, possess powerful capabilities for both feature extraction and long-sequence modeling by capturing global contextual dependencies.These models have achieved significant success in natural language processing (NLP) and computer vision tasks 29,30 .In recent years, researchers have extensively explored the application of Transformers in mechanical fault diagnosis under noisy conditions.In 2022, a Transformer-based architecture was proposed for fault diagnosis of rotating machinery under variable operating conditions, trained on 400 samples per class 31 .In the same year, a variational attention-based Transformer model was developed to enhance interpretability by learning intrinsic signal relationships, using 1000 samples per class 32 .In 2023, a wavelet-based self-attention network was introduced to suppress noise interference in both time and frequency domains, utilizing 210 training samples per fault type 33 .Additionally, an industrial vision Transformer model was designed to explore global receptive fields in the fault diagnosis process, with 4000 training samples per operating condition 34 .In 2024, a self-supervised learning approach was proposed that employed a self-attention-based signal Transformer as the backbone and used contrastive learning on unlabeled data with only positive samples, using 1480-1660 training samples per fault state 35 .Also in 2024, a novel CNN-Transformer hybrid model named Dconformer was introduced, capable of extracting both local and global representative features from noisy vibration signals.Its training was conducted on 800 samples per fault class 36 .
4Despite the strong feature extraction and global modeling capabilities of the aforementioned models, they exhibit limitations in capturing local signal dependencies and may introduce spatial perception bias.Additionally, these models typically require large-scale labeled datasets to achieve optimal performance.As a result, existing fault diagnosis frameworks encounter challenges under small-sample scenarios.Transforming one-dimensional signals into two-dimensional representations using signal transformation methods such as short-time Fourier transform (STFT) and continuous wavelet transform (CWT) has been shown to effectively suppress highfrequency noise and improve robustness in noisy environments 37,38 .Two-dimensional models with image inputs often outperform direct signal-based models under small-data conditions 39,40 .However, most non-endto-end Transformer-based models that rely on 2D image inputs suffer from high computational complexity, excessive parameter counts, and significant computational overhead associated with signal transformation [41][42][43] .Therefore, achieving reliable end-to-end fault diagnosis in the presence of strong noise and limited data remains a significant challenge.
5In this paper, we propose an end-to-end cross-scale, time-frequency-spatial-channel dual self-attention Vision Transformer model (TFSCDAViT) for bearing fault diagnosis under both noisy and small-sample conditions.Experimental results on two benchmark datasets demonstrate that the proposed method exhibits reduced dependence on sample size and enhanced robustness to noise, achieving high accuracy in challenging environments.The main contributions of this paper are summarized as follows:
61. We design a novel end-to-end TFSCDAViT model that directly processes raw noisy vibration signals without relying on complex signal preprocessing methods, thereby avoiding the computational cost of image transformation.The dual-branch architecture facilitates time-frequency feature fusion, enabling the model to better capture high-frequency disturbances and periodic patterns.
72. A spatial global interaction self-attention mechanism is introduced to enhance global perceptual ability along the spatial dimension, reducing spatial perception bias through the integration of global signal features.In parallel, an efficient channel convolutional self-attention mechanism is designed to extract local high-frequency features via multi-dimensional convolution, enhancing sensitivity to fine-grained patterns.The dual spatialchannel self-attention structure allows the model to separately model interdependencies in spatial and channel dimensions, thereby enriching feature representations.Additionally, a periodic feed-forward neural network is proposed, incorporating Fourier basis into the architecture to strengthen the recognition and representation of periodic features, compensating for the inability of conventional Transformers to model periodicity effectively.
83. A cross-scale feature extraction module is constructed by combining multi-scale learning with residual convolutional layers.This design improves the model's capacity to learn global-local feature dependencies, enhances spatial perception, and addresses the imbalance between global and local attention inherent in selfattention mechanisms.4. Comprehensive experiments are conducted on the CWRU and PU datasets under various noise levels and sample constraints.The proposed method achieves high diagnostic accuracy, and ablation studies with attention visualization validate the effectiveness of each module.
Model architecture
9An end-to-end cross-scale, time-frequency-spatial-channel dual-attention Vision Transformer (TFSCDAViT) is proposed, and the overall architecture is illustrated in Fig. 1.Unlike conventional Transformer architectures that typically extract features along a single dimension, the proposed model performs parallel feature extraction in both the time and frequency domains through two distinct branches.These branches enable feature interaction within the encoder module, followed by the fusion of time-frequency representations prior to classification.Such time-frequency feature modeling enhances the model's capacity for comprehensive feature perception while effectively suppressing noise interference.
10Time-domain signals are typically composed of multiple superimposed frequency components.In complex scenarios, the resulting waveforms often appear mixed, making it difficult to intuitively distinguish their underlying components.A single time-domain signal may fail to effectively capture fault features, especially under noisy conditions.Therefore, incorporating frequency-domain signals allows the model to learn more complete and robust fault representations.It also helps to isolate key fault frequencies, thereby clarifying fault patterns and mitigating the distortion caused by high-noise environments, ultimately improving the model's robustness.
11Existing frequency domain features are commonly derived using spectrogram-based approaches, but twodimensional image inputs often result in excessive parameter overhead.To mitigate this, some one-dimensional models adopt FFT to obtain amplitude spectra, using small convolution kernels to extract frequency-domain representations, followed by direct feature summation.However, single convolution kernels exhibit limited capacity to capture cross-band characteristics and are highly sensitive to local signal jitter, thereby compromising both feature extraction quality and noise robustness [44][45][46] .To address these limitations, we introduce a frequencydomain branching module that employs multi-stage convolutions and MLP-based convolutional structures to enrich frequency-domain representations.An attention-based fusion strategy is used to enhance the integration of frequency-domain features.
Frequency domain branch structure
12As shown in Fig. 2, the frequency-domain branch applies a Fourier transform to the raw signal to obtain the amplitude spectrum, which characterizes the intensity of each frequency component.This representation is particularly sensitive to periodic impact signals and highlights both dominant and fault-related frequencies.High-frequency fault features are extracted using a convolution with kernel size 4 and stride 1. Padding of size 1 is applied to maintain the signal length, and the number of channels is increased to match that of the time-domain branch to ensure compatibility with subsequent convolutional operations.Batch normalization is employed to accelerate training and mitigate gradient explosion.A large-kernel convolution (kernel size 9, stride 8) is employed not only to capture significant fault patterns and suppress noise interference, but also to resize the frequency-domain feature map to match the patch-embedded time-domain features, thereby facilitating effective time-frequency feature fusion within the Transformer encoder blocks.The process is represented as follows:
13(1)
14))
15Where,XF requence denote the frequency-domain representation obtained via Fourier transform.LayerNorm refers to the layer normalization operation, BN represents the batch normalization layer, Conv 9 8 () indicates a convolutional layer with a kernel size of 9 and stride of 8, and Conv 4 1 () denotes a convolutional layer with a kernel size of 4 and stride of 1.In the time-frequency feature interaction phase, the frequency-domain feature extraction module is first used to extract localized frequency-domain features.This module adopts a multilayer perceptron (MLP)-like structure but replaces fully connected layers with convolutional operations.By leveraging weight sharing, the convolution-based design significantly reduces parameter count and improves training efficiency, while also being more effective in identifying local frequency-domain patterns.The first convolutional layer employs a kernel size of 5, which captures local frequency features while preserving partial global contextparticularly beneficial for handling complex frequency structures such as periodic fluctuations or inter-band transitions.GELU is selected as the activation function due to its smoothness, stability, nonlinear expressiveness, and superior handling of large input ranges compared to ReLU, thereby enhancing feature transformation and improving the stability of the Transformer when combined with time-frequency features.To mitigate overfitting and enhance generalization, a dropout layer is incorporated.Subsequently, a 1×1 convolutional layer with stride 1 is used to reduce channel dimensionality, functioning as an efficient alternative to fully connected layers.The final batch normalization layer normalizes the output to accelerate training and improve generalization.The frequency-domain feature extraction module better captures the relationship between local structures and frequency bands than MLP-based approaches.It demonstrates robustness to frequency drift and offers improved parameter efficiency.Compared with conventional methods that rely on single small convolutional kernels or shallow convolutional stacking strategies, the proposed module enhances the modeling of complex structures in frequency-domain features.Feature fusion is conducted within the time-domain branch by concatenating the time-domain and frequency-domain features along the channel dimension.Compared with additive fusion, element-wise product, or weighted fusion, this method retains richer details and enables the model to learn more comprehensive feature representations.Following channel concatenation, a 1×1 convolution with stride 1 is employed to model inter-channel dependencies while reducing the channel dimensionality to match that of the time-domain features.This step facilitates deeper and more abstract feature extraction in the subsequent Transformer encoder.The remaining frequency-domain pathway continues through subsequent frequencydomain modules or participates in final time-frequency fusion, thereby enhancing the model's capacity to capture complex fault patterns.The overall process is illustrated as follows:
16))))
17(3)
18Where Conv 1 1 and Conv 1 5 denote convolutions with kernel sizes of 1 and 5 and stride of 1, respectively.XT ime and XF requence represent the time-domain features and the frequency-domain features obtained via Fourier transform.Concat() refers to the channel merging operation, BN denotes batch normalization, CFusion() represents the channel fusion operation, Dropout() represents the discard layer, and GELU() is the activation function.
19Following the frequency-domain feature extraction module, a final channel-wise weighted fusion of the time-domain and frequency-domain features is performed.This method enhances the retention of multi-source information from the previously merged features, while being both simpler and more effective in emphasizing informative features.Specifically, global average pooling is applied to the frequency-domain features to summarize global channel-wise information.A sliding window mechanism, implemented via convolutional layers, is then used to extract local channel dependencies.The output is passed through a sigmoid activation to produce channel attention weights within the range [0,1].These weights are then multiplied element-wise with the time-domain features, achieving a frequency-to-time fusion that effectively highlights salient information while suppressing redundant or irrelevant features.The use of convolution for implementing the sliding window operation ensures advantages such as weight sharing, local connectivity, and translation invariance over manually defined attention mechanisms.Finally, a residual connection is introduced between the fused output and the original time-domain features to facilitate gradient flow, improve convergence, and prevent information loss due to overfitting or feature redundancy.The overall fusion process is illustrated as follows:
20X f used =XT ime ⊙ ψF re (7)
21Where X class denotes the final feature used for classification, X f used represents the time-frequency feature after weighted fusion, ψF re denotes the frequency-domain attention weights, Conv 1 3 refers to a convolutional operation with a kernel size of 3 and stride of 1, GAP() indicates global average pooling, σ denotes the rectified linear unit activation function, XF requence represents the extracted frequency-domain feature, and ⊙ indicates the element-wise multiplication operation.
Time domain branch structure
22The architecture of the time-domain branch is illustrated in Fig. 3.It comprises a cross-scale feature extraction module and a dual-attention Transformer module.The cross-scale module is designed to process and integrate features across multiple temporal resolutions, enabling the model to capture fine-grained representations and detailed variations across different time scales 47 .In the dual self-attention Transformer module, self-attention mechanisms are applied alternately along the spatial and channel dimensions, balancing computational efficiency and global contextual understanding.This alternating design enables more comprehensive integration of features across different dimensions.
Cross-scale channel feature extraction module
23Since signals under different working conditions often exhibit distinct sensitive frequency bands, the model adopts frequency-selective convolution filters with varying frequency resolutions to enhance the representation of discriminative frequency-domain information.These filters are implemented using convolutional layers with different kernel sizes, where each kernel size corresponds to a specific frequency resolution 48 .In current deep learning approaches, multiscale convolution is commonly employed to extract hierarchical fault features by applying convolutional kernels of varying sizes to the input signal.The resulting multiscale features are then fused along the channel dimension 45,49 .However, this approach lacks interaction across scales, which may lead to information fragmentation through successive layers.Moreover, convolution after feature fusion is insufficient for modeling complex patterns.To address these limitations, a cross-scale channel feature extraction module is proposed.It facilitates interaction among features from different scales through summation, and employs multilayer residual learning to capture complex signal patterns.Additionally, attention weights are used to suppress irrelevant information, improving overall feature quality.The structure of the proposed cross-scale channel feature extraction module is illustrated in Fig. 4.
24The convolution of the input signal at three different scales in parallel, utilizing convolution kernels of varying sizes to capture fault features across multiple scales, aids in the separation of noise and valuable fault components, captures the contextual information, and mitigates information loss from multilayer convolutions.Cross-scale learning is achieved by establishing connections between neighboring branches to enhance the interaction between different scales, thereby fully integrating information from multiple scales and further improving the network's ability to process noise and features at various scales 50 .The entire process is illustrated as follows:
25Fig. 3. Time domain branch structure.
26www.nature.com/scientificreports/
27Where Conv n i refers to a convolution operation with a step size of i and a convolution kernel of size N.All convolutional layers include activation functions, and the convolution operation expands the channels before passing them into neighboring branches.The number of channels is reduced via global average pooling at the cross-scale.Additionally, two learnable weights, A and B, are introduced to control the influence across different scales, thereby making cross-scale learning more flexible.The multi-scale signals are combined along the channel dimension to integrate information from different scales, thereby enhancing the model's ability to handle complex signals.An improved inverted residual module is introduced to nonlinearly transform and learn features, thereby enhancing the network's characteristics.The complete process is as follows:
28)
29Where F n i () refers to the convolutional layer containing a rectified linear unit (ReLU) activation function and batch normalization, Concat() refers to the channel merge function, and Finvert () denotes the inverted residual module.The inverted residual module extracts high-frequency localized features through small convolutions of varying sizes, progressively expanding the number of channels to enhance the expressiveness of the receptive field during feature extraction and to strengthen channel interactions.Meanwhile, the number of channels is gradually restored to reduce the dimensionality of the input to the DAVIT structure and decrease computational overhead.In contrast to the traditional expansion-depth separable convolution-contraction structure, this paper proposes a five-layer architecture, incorporating an additional expansion and contraction layer.This modification facilitates the network's ability to learn a broader range of feature representations, thereby improving the model's capacity to fit complex signals.Furthermore, a standard convolutional layer is used to achieve a more comprehensive feature extraction, capturing both low-level and high-level features.Finally, an attention mechanism is employed to mitigate the impact of residual interference and enhance the perception of useful information.Additionally, residual connections are introduced to prevent the vanishing gradient problem associated with multiple layers of inverted residual modules.The complete process is as follows:
30)
31Where ψ represents the attention weight, ⊙ denotes the element-wise product, A represents the learnable weight, Conv 3 1 refers to the convolution operation with a kernel size of 3 and a stride of 1, and GAP() represents global average pooling.
Spatial-channel dual self-attention vision transformer module
32The spatial-channel dual self-attention Transformer module improves upon the traditional Transformer architecture by incorporating a dual self-attention mechanism combined with convolution-based block embedding.Unlike conventional approaches that rely on categorical labeling, this module omits category tokens and instead integrates positional embedding prior to each self-attention operation.The spatial-channel dual selfattention vision transformer is shown in Fig. 5.
33Firstly, the input features are embedded in chunks.The purpose of chunk embedding in Vision Transformers (ViT) is to adapt the data to the architecture of the Transformer model and reduce dimensionality.Additionally, the incorporation of positional encoding aids the model in understanding the global structure of the image.The application to one-dimensional data effectively transforms it into a form suitable for model processing, capturing local features and detailed information, while avoiding computational and storage bottlenecks associated with long sequences 51 .In the traditional ViT model, the signal is segmented and embedded as shown in Fig. 6, where it is first divided into fixed-length segments and then linearly projected.In contrast, DAVIT employs convolutional embedding instead of segmentation embedding, as illustrated in Fig. 7.The process is as follows:
34Where ConvPatch() refers to a convolutional layer with a kernel size of P, a stride of P, and C channels, where P denotes the block size of the segmentation.The model is directly chunked and embedded through the convolutional layer, as proposed in 52 .In this method, the weights in the convolutional layer are equivalent to the embedding matrix.Compared to segmented embedding, direct convolution is less computationally intensive, as Fig. 6.Manually implemented Patchembedding.
35the shared weights capture local features more effectively, are smoother than segmented embeddings, and retain continuity.The resultant expression is as follows:
36Where E represents the embedding matrix, which also serves as the weight matrix of the convolutional layer, xi represents the signal X partitioned into small blocks, and m denotes the number of partitions, where m = L/P.A local convolutional positional coding module is used in the model to inject localized relative positional information into the data through depth-separable one-dimensional convolution.Compared to other positional coding methods, convolutional positional coding enhances the model's ability to capture local temporal patterns and reduces computational burden.The formula is as follows:
37Where DSConv 3 1 denotes a depth-separable convolution with a kernel size of 3 and a stride of 1.Most transformer architectures add positional encoding information after block embedding.In contrast, this model incorporates positional encoding before each self-attention layer of the encoder, allowing each layer to independently sense positional information.This approach solves the problem where a single level of positional encoding loses the ability to accurately perceive spatial structure during deep processing.It also provides stronger positional robustness, local perception, and multilayer dynamic guidance, making it more suitable for one-dimensional signal processing.The use of both channel and spatial attention mechanisms to capture detailed features and global information enables the model to effectively aggregate complete global information from the signal, eliminating the need for classification tokens used in global feature aggregation for classification tasks.
38The encoder structure generally consists of a self-attention mechanism, a feed-forward neural network, residual connections, and normalization layers.In the self-attention structure, Q, K, and V represent the query vector, key-value vector, and value vector, respectively.The attention score is obtained by computing the dot product of the query and key-value vectors.The attention weight is then derived through the softmax function, and the final attention score weight is obtained by multiplying the attention weight with the value vector.The multi-head self-attention mechanism splits the signal into h parts based on feature dimensions, calculates the self-attention weighted value for each part, and then merges them to obtain the final result 53 .The complete expression is as follows:
39Multi-head self-attention (MHSA) is widely applied in deep learning-based fault diagnosis models.However, conventional self-attention mechanisms primarily focus on temporal signal features while paying limited attention to features in the channel dimension.To reduce computational complexity, many recent models adopt patchlevel self-attention mechanisms (e.g., window-based attention), which may result in the loss of global contextual information and inhibit the modeling of long-term dependencies.In 2022, a dual self-attention mechanism was proposed, which alternates between channel-wise and spatial-wise attention to capture richer multi-dimensional features.The use of channel attention further mitigates the limitations of patch-level mechanisms in modeling global spatial dependencies 54 .This dual self-attention structure is also incorporated into the encoding blocks of the proposed model.In contrast to Swin Transformer and other architectures that extract detailed features through window attention and subsequently use cross-window attention to enhance global representation 55,56 , our model employs multihead self-attention in the channel dimension to capture global features and inter-channel dependencies.Simultaneously, patch-level self-attention in the spatial dimension is utilized to extract local high-frequency features, achieving a balance between global and local feature extraction.Compared with Swin Transformer, this design eliminates the need for complex window transformation operations and effectively compensates for the underutilization of the channel dimension in traditional Transformer structures.Nonetheless, this structure still has limitations.It does not sufficiently consider global features in the spatial dimension and overlooks the influence of local inter-channel relationships, which may adversely impact model recognition accuracy.To address these issues, we propose two novel attention mechanisms-GWSAM (Global Window Spatial Attention Module) and ECCSAM (Efficient Channel Convolutional Self-Attention Module)-to improve feature representation.In addition, to overcome the difficulty of learning periodic patterns with conventional feedforward neural networks, we introduce a periodic feedforward neural network that explicitly incorporates periodicity into the model.
Global window-interaction self-attention mechanism
40The structure of the spatial window self-attention mechanism is illustrated on the left in Fig. 8.The spatial window self-attention mechanism primarily captures local features by calculating attention within a window.First, the input signal is partitioned into windows, where the window size is Pw, and the number of windows is Nw, with Nw = N/Pw.The number of windows and batch size are combined to generate the input.The formula for the spatial window self-attention mechanism is as follows:
41Where Qi, Ki, Vi ∈ Pw * C represent image-level queries, keys, and values grouped by channel, respectively.In the window partition mechanism, the receptive field of the attention mechanism becomes limited, leading to a loss of global feature perception.Although global attention in the channel dimension can partially compensate for this deficiency, it does not address the lack of global feature representation in the spatial dimension.Therefore, we propose a global window interaction spatial self-attention mechanism (GWSAM).Compared with traditional window-based spatial attention mechanisms, GWSAM expands the receptive field using large-kernel convolution to enable cross-window perception and generate cross-domain attention scores.Additionally, it incorporates complete signal information to guide the fusion of local and global weights, thereby enhancing global feature awareness.As shown in Fig. 5 (right), a large-kernel convolution-twice the size of a standard window-is first applied to the original signal to acquire a broader receptive field and partially recover global information lost due to window partitioning.To preserve fine-grained local details, The original signal is partitioned into windows to generate the value (V), while the query (Q) and key (K) are generated from the features obtained by large-kernel convolution.Cross-domain attention weights are then computed using Q and K to guide local features with global context, improving both robustness and flexibility.Moreover, the complete signal undergoes dimensional adaptation through learnable transformations to match the windowed feature space without losing structural integrity.The global weights are element-wise multiplied with local values, forming a cross-window attention strategy that differs from traditional sliding-window schemes 55 .This effectively alleviates the loss of contextual information and enhances global perception.Finally, residual connections and learnable parameters are introduced to flexibly retain key original information, prevent gradient vanishing, and strengthen the understanding of long-range dependencies and fine-grained features.The entire process is represented as follows:
42K =Xorigin (27) Gw =Sigmoid
43Gv =VLKS ⊙ Gw (29) Xspace =A window (QLKS, K, Gv) + VLKS × a (30) Where Xorigin represents the input signal without windowing, QLKS and VLKS denotes the signal mapping after being windowed and convolved with a large kernel.K denotes the windowing mapping of the original signal without convolution, and Conv 9 1 represents the large kernel convolution with a kernel size of 9 and a stride of 1. a represents the learnable weights, A window () denotes the windowed attention mechanism, with detailed equations provided in Equation 24, and Sigmoid() represents the activation function.Gv combines the global weights, and Conv 3 1 represents the convolution with a stride of 1 and a kernel size of 3. ⊙ represents the element-wise product, and Xspace denotes the final output of the self-attention mechanism.
Efficient channel convolutional self-attention mechanism
44In the dual self-attention structure, channel-wise self-attention is employed to capture the global correlation of features across channels.The architecture of the grouped channel self-attention mechanism is illustrated in Fig. 9.The self-attention mechanism divides the channels into multiple groups and performs self-attention on each group, resembling a multi-head self-attention structure.Here, Ng denotes the number of groups, and Cg denotes the number of channels in each group.Thus, C = Ng * Cg, as channel self-attention is global and can interact across groups.It is defined as follows:
45Where Qi, Ki, Vi ∈ N * Cg represent grouped queries, keys, and values by channel, respectively.In channel self-attention, the tokens are switched; however, the projection layer W and the scaling factor underexplored, limiting recognition accuracy.To address this, we propose an Efficient Channel Convolutional Self-Attention Module (ECCSAM) that enhances local detail extraction via multi-scale convolution.Unlike standard grouped channel attention, ECCSAM introduces small-kernel convolutions to boost sensitivity to local patterns.Specifically, two convolutions with kernel sizes of 3 and 5 are employed to capture high-frequency details and broader local modes, respectively.These convolutions are applied directly to feature maps involved in attention computation to emphasize local structural information 57 .The results of both convolutions are fused via element-wise addition to highlight significant local features.Furthermore, instead of a single softmax operation, ECCSAM uses fully connected layers followed by activation functions to produce stronger and more nonlinear attention weights.This enables the model to capture more informative context and refine its understanding of complex features.To stabilize the learning process, residual connections are added to prevent over-deformation of attention maps.Finally, a global average pooling operation and activation function are applied to the value tensor to generate channel-wise context weights.These are then combined with shared convolutional weights through element-wise multiplication, enhancing the model's ability to integrate both local and global features in the channel space.The formula for the complete process is as follows:
46Where Q and K represent the linear mappings of the input signal, V represents the signal mapping after depthwise separable convolution and additive fusion.Softmax, ReLU, and Sigmoid represent the activation functions.FC() represents the fully connected layer,Conv 3 1 () and Conv 5 1 () represent convolutions with kernel sizes of 3 and 5, both with a stride of 1, respectively.Sw denotes the self-attention weight, and GAP() represents Global Average Pooling.X channel denotes the final output.k represents the size of the automatically generated convolution kernel, b and γ are hyperparameters used to compute the value of k, where |•| odd must be an odd number.C represents the number of channels, and log 2 () denotes the logarithm with base 2.
Periodic fourier feedforward neural network
47The feedforward neural network (FFN), a special type of multilayer perceptron, is widely used in various deep learning models.It was initially introduced in Transformer architectures as a feature transformation module following the self-attention mechanism 40,58 ; Self-Sampling Meta SAM: Enhancing Few-shot Medical Image Segmentation with Meta-Learning], as shown in Fig. 10.This network nonlinearly transforms the feature representation of each position through two fully connected layers and nonlinear activation functions, independently processing features for each position to enhance the nonlinear variation and expressiveness of the model 59 .The expression is as follows:
48Where H ′ represents the weighted signal after the self-attention mechanism, W1 and b1 are the weights and biases of the first fully connected layer, and W2 and b2 are the weights and biases of the second fully connected layer.Since the components in the bearing structure are repeatedly contacted at a fixed frequency during operation, the vibration signals of rolling bearings are periodic.Additionally, the periodic shocks from faulty parts superimpose on the original signals, which are also periodic 60 .Enhancing the model's ability to express periodicity can significantly improve its feature extraction performance on the vibration signals of rolling bearings 61 .However, MLP has inherent limitations in modeling and reasoning about periodicity, as it tends to memorize periodic data rather than learning the features and fundamentals of periodic data.Therefore, FFN also lacks the ability to understand data periodicity, particularly when periodic features are more complex or embedded in noise.To address the limitations of conventional FFNs in capturing periodic features, a Periodic Feedforward Neural Network (P-FFN) is proposed, as depicted in Fig. 10.By integrating Fourier series into the network architecture and computation process, the model can naturally incorporate periodicity and achieve more accurate representation of periodic patterns 62 .Additionally, irrelevant features are suppressed through channel-wise weighting.The output dimension is partitioned according to a selected ratio, with one part used for periodicity learning and the other for nonlinear variation learning.The input is processed through two fully connected layers to generate feature mappings based on the partition ratio.One part applies a nonlinear transformation through an activation function, while the other learns the frequency of the input data using cosine and sine functions to capture components and periodic patterns.Finally, the sine and cosine results are merged with the nonlinear outputs.Attention weights are calculated, and element-wise multiplication is performed with the results to enhance important periodic features and strengthen the model's generalization ability and capacity to learn critical periodic features.The process is expressed as follows:
49PFFN
50Where the output dimension of FC1 is (Outputdim * rate), and the output dimension of FC2 is (Outputdim * (1 -2 * rate)).Outputdim represents the output dimension of the feedforward neural network for the channel, while rate denotes the segmentation ratio, where 0 < rate < 0.5.Xcw represents the attention weight of the input signal, and cos and sin represent the cosine and sine functions, respectively.The combined use of FNN and PFFN in the SCDAVIT structure enables the model to maintain nonlinear variations and feature extraction capabilities, while enhancing the model's representation of periodic data and its ability to model vibration signals.The complete coding block process is as follows:
51Where GWSAM() stands for Global Window Interaction Self-Attention Mechanism, ECCSAM() stands for Efficient Channel Convolution Self-Attention Mechanism, FFN() stands for Feedforward Neural Network, PFFN() stands for Periodic Feedforward Neural Network, and LN() stands for Layer Normalization.Finally, the addition of residual connections linking the original inputs and the outputs of the coding block, controlled by two learnable parameters, makes the model more flexible and adaptable to different situations.The overall experimental procedure is shown in Fig. 11.
Experiments Dataset description
52The CWRU dataset, provided by the Case Western Reserve University Bearing Data Center, is a widely used dataset for mechanical fault diagnosis.It is particularly well-suited for bearing fault diagnosis research and has been extensively applied in this domain.The experimental setup, illustrated in Fig. 12, consists of four main components: a 2-horsepower motor, a torque sensor, a power meter, and an electronic controller.Electrical discharge machining (EDM) was used to introduce bearing faults at three locations: the rolling elements, inner race, and outer race.The fault sizes range from 0.007 inches to 0.040 inches.Bearings with different fault types were installed at the drive end, and vibration data were recorded under motor load conditions ranging from 0 to 3 horsepower.The motor speed varied between 1797 and 1730 RPM.Accelerometers were placed at the motor drive end, fan end, and base to collect vibration signals.Each recording lasted 10 seconds, with sampling frequencies of 12 kHz and 48 kHz 63 .The experimental dataset consists of drive-end data recorded at 12 kHz, with a zero-horsepower load torque and a motor speed of 1797 RPM.The dataset includes faults in the inner 14, consists of a drive motor, a torque measurement device, a bearing test unit, a flywheel, and a load motor.Bearings with different fault types were installed in the bearing test unit for evaluation.The tested bearings are 6203-type rolling bearings, with fault types categorized as artificial damage and natural damage.Naturally damaged bearings were obtained through accelerated life testing, while artificially damaged bearings were created using electrical discharge machining (EDM), drilling, and other techniques.The fault types include single-point damage, repetitive damage, and multiple damage, with varying severity levels.Tests were conducted under four operating conditions, with rotational speeds ranging from 900 to 1500 RPM, a load range of 0.1 to 0.7 Nm, and a radial force of 400 to 1000 N. Current sensors and piezoelectric accelerometers were used to collect vibration signals and stator currents.The sampling duration was 4 seconds, with a sampling frequency of 64 kHz.The experimental dataset was collected under a radial force of 1500 N, a rotational speed of 1000 RPM, and a load of 0.7 Nm.Five conditions were used for training: Normal, IR01, IR02, OR01, and OR02.The signal waveforms are shown in Fig. 15.
53The number of encoders and stages affects the model's accuracy, parameter count, and training time.In some one-dimensional signal transformers, only a single stage is used.Since multiple encoders within a single stage facilitate direct feature representation across the entire sequence range while maintaining structural simplicity, the proposed model adopts a single-stage architecture.Additionally, the number of encoders influences model performance 65 .Therefore, experiments were conducted to evaluate the effect of the number of encoders and determine the optimal number.As shown in Table 1, models with 1 to 4 encoding blocks were tested, with each configuration trained five times, and the average accuracy was recorded.The experimental results indicate that high accuracy is achieved in noise-free conditions.However, under high-noise conditions, increasing the number of encoder blocks leads to overfitting, resulting in a decline in accuracy.In terms of training time, an increased number of encoder blocks leads to an exponential increase in training duration.Therefore, the proposed model adopts a single encoder block.The model parameters are listed in Table 2. SN R dB = 10 log 10 Ps Pn (52) Where Ps represents the signal power, and Pn denotes the noise power.Seven high-performance models were selected for comparative experiments, namely: 1D-ViT 39 , Conformer-NSE 66 , DaVIT 54 , WKCNN 67 , TICNN 26 , GTFE-NET 68 , and MCCNN 69 .Detailed architectural and implementation details can be found in the respective works.Table 4 presents the average accuracy of these models over ten test runs on the CWRU dataset.All models achieved accuracies exceeding 95%.Among them, the proposed model, GTFE-NET, and TICNN attained the highest accuracy, achieving 100% accuracy in all ten training sessions.The 1D-ViT model consistently maintained an average accuracy of 99.94%, with multiple runs reaching 100%.DaVIT and Conformer-NSE slightly outperformed 1D-ViT, with average accuracies of 99.97% and 99.98%, respectively.WKCNN exhibited a relatively lower accuracy of 99.02%, while MCCNN showed significant fluctuations, ranging from 88% to 100% across runs.
54The training performance of the 1D-TFDAVIT model is shown in Fig. 16, illustrating variations in the loss function and accuracy.As depicted in the figure, the 1D-TFDAVIT model exhibits minimal overfitting.The model achieved 100% accuracy within seven iterations and converged shortly thereafter.After convergence, the loss function continued to decrease, eventually stabilizing below 0.004 for both the training and test sets.During convergence, the loss function exhibited minor fluctuations but remained stable overall, indicating strong model performance.
55Subsequently, the proposed model and the comparison models were evaluated under varying signal-to-noise ratio (SNR) conditions ranging from 0 dB to -8 dB.The test results are presented in Fig. 17.At an SNR of 0 dB, all models except the proposed model exhibited varying degrees of accuracy degradation.Among them, MCCNN experienced the most significant drop, with a decrease of approximately 7%.The other models showed only minor decreases, all within 1%.Notably, GTFE-NET was still able to achieve 100% accuracy in multiple runs, with an average accuracy of 99.965%.Similarly, the proposed model achieved 100% accuracy in multiple test runs under 0dB SNR, with an average accuracy of 99.993%.As the noise level increased, all models exhibited rapid declines in accuracy.MCCNN showed the steepest decrease, with a 16% drop at -6 dB and a 28% drop at -8 dB, resulting in an average accuracy of 67.24% at -8 dB.TICNN followed, with a performance drop of approximately 5% at -8 dB and an average accuracy of about 94.32%.In contrast, 1D-ViT demonstrated stronger noise immunity under high noise levels, with relatively small accuracy reductions-approximately 0.8% at -6 dB and 1.3% at -8 dB-resulting in a final average accuracy of 97.49%.The noise resistance of Convformer-NSE was comparable to that of the 1D-ViT model, showing accuracy reductions of approximately 1% at -6 dB and 1.58% at -8 dB, resulting in an average accuracy of 98.28%.DAVIT exhibited slightly better noise robustness than Convformer-NSE, with decreases of 0.6% at -6 dB and 1.2% at -8 dB, leading to a final average accuracy of 98.52%.Although WKCNN started with a lower baseline accuracy, it was less affected by noise, showing only a 0.8% reduction, and ultimately achieved an average accuracy of 98.22%.Among these models, GTFE-NET exhibited excellent robustness to noise, with a decrease of only 0.15% at -6 dB and 0.8% at -8 dB, resulting in an average accuracy of 99.16%.The proposed model, which incorporates large-kernel convolution and frequencydomain features, demonstrated superior anti-noise performance under strong noise conditions.It achieved the smallest accuracy decline during noise testing, with a reduction of only 0.27% at an SNR of -8 dB and a final average accuracy of 99.76%.
56Noisy data at an SNR of -6 dB were used for feature visualization using the t-SNE algorithm, as shown in Fig. 18.The GTFE-NET model demonstrated excellent separability, with compact clusters and well-defined boundaries, and minimal misclassifications.DAVIT showed slight overlapping of two clusters, indicating minor mixing between the two classes.Convformer-NSE misclassified several samples into a single cluster, A confusion matrix was generated using the noisy data at SNR -6 dB, as shown in Fig. 19.The proposed model maintained extremely high accuracy, with no confusion in fault classification.GTFE-NET also remained highly accurate, with individual misclassifications in B014 and B021, demonstrating strong noise immunity.1D-ViT exhibited minor misclassifications in B007, B014, B021, IR007, OR007, and OR021.Conformer-NSE exhibited only minor confusion under strong noise, with a few misclassifications in B007 and B021, and individual errors in B014, IR014, and OR007.Similarly, Davit showed misclassifications in B007, B014, and B021, with B021 having the highest number, while the others were limited to isolated cases.TICNN showed more misclassifications in B007, B014, IR021, and OR021, particularly in B014, indicating relatively weak noise resistance.In contrast, WKCNN showed better performance under noise, with fewer misclassifications among B007, B014, and B021.A small portion of IR021 samples were misclassified as OR021, and a few OR021 samples as OR007.MCCNN was more affected by noise, with significant misclassifications across most categories except OR02.The highest number of misclassifications occurred in IR014, with additional errors in the Norm and B021 categories, indicating limited noise immunity.
57In addition to evaluating the model's diagnostic performance under noisy conditions, we also assessed its effectiveness with limited training samples.The dataset was randomly sampled with five different sample sizes: 9, 10, 15, 24, and 50.The average result over multiple runs was reported.To ensure full convergence across all models, the number of training iterations was fixed at 100.As shown in Fig. 20, the proposed model achieved the highest accuracy of 99.993% with 50 training samples.GTFE-NET and 1D-ViT also achieved excellent accuracy exceeding 99%, while all remaining models maintained accuracy levels above 95%, except WKCNN, which recorded a lower accuracy of 91.44%.As the number of samples decreased, all models exhibited declining accuracy.With 15 samples, the proposed model still achieved a high accuracy of approximately 99.75%, representing only a 0.24% decrease.In contrast, GTFE-NET's accuracy dropped to 98.9% (less than 1%),Davit and Convformer-NSE also showed slight declines, with accuracies dropping to 98.1% (1.4%) and 98.06% (1.7%), respectively.TICNN to 95.14% (a 5% drop), 1D-ViT to 90.8% (around 7.5% drop), and WKCNN to 85.34% (a 6% decline).MCCNN experienced the most severe degradation, reaching only 84.3%, a decrease of 11.8%.When the training set was reduced to just 9 samples, GTFE-NET demonstrated relatively strong generalization ability, achieving 97.01%accuracy with less than a 3% drop.Davit and Convformer-NSE perform relatively well with a sample size of 9. Their generalization performance and feature extraction ability are stronger, with accuracies of 94.29% and 94.42%, respectively.Both accuracies decrease by approximately 5.3%.However, both TICNN and 1D-ViT struggled under limited data conditions, recording 87.1% and 81% accuracy respectively, corresponding to decreases of approximately 10% and 17%.WKCNN's performance dropped to 80.54% (a 10% drop), while MCCNN performed the worst, achieving only 70.99% accuracy, a 24% decline.These results suggest poor generalizability and feature learning capacity in MCCNN.The proposed model effectively learns multi-scale representations across both channel and spatial dimensions by integrating time-and frequency-domain features.This allows it to extract discriminative fault characteristics even with severely limited data, demonstrating robust feature learning and generalization capabilities.Notably, the proposed model maintained an accuracy of 99.34% even with only 9 training samples, representing a marginal drop of just 0.65%, thus outperforming all compared models.
58To further validate the model's robustness in practical scenarios, we conducted tests under dual challenges of data scarcity and noise.Specifically, we used only 50 training samples and added noise with an SNR of -5 dB.The final result was averaged over 10 test runs, as shown in Fig. 21.The proposed model achieved an accuracy of 99.426% under this challenging condition, demonstrating superior generalization and noise resistance.GTFE-NET, while slightly less accurate, still performed well with an accuracy of 95.62%.Davit achieved an accuracy of 94.09% under double interference, slightly lower than that of GTFE-NET.Conformer-NSE exhibited comparatively weaker performance under the same conditions, with an accuracy of 92.68%.WKCNN, TICNN, and 1D-ViT showed moderate resilience under dual interference, with accuracies ranging from 86% to 89%.MCCNN was most affected, achieving only 63.77% accuracy, indicating a steep performance decline.The experimental results indicate that traditional CNN and Transformer-based models suffer significant performance degradation under strong interference, thereby further validating the effectiveness and advantages of the proposed method for applications in complex real-world environments.www.nature.com/scientificreports/allowing the model to quickly recover within 1-2 iterations and continue converging, ultimately stabilizing.After adjusting the learning rate to 0.0005 (the same setting used in the CWRU dataset experiment), the model no longer exhibits fluctuations.To ensure a fair comparison, a fixed learning rate was used for all models.Although this setting occasionally caused minor fluctuations during the early training stages of the proposed model, it was necessary to facilitate convergence for the baseline models.Despite the slight instability, the proposed model consistently converged within a few epochs and maintained superior performance across all experiments.Further evaluations under signal-to-noise ratios ranging from 0 to -8 dB were conducted, and the results are presented in Fig. 24.At 0 dB, the proposed model achieved the highest accuracy of 99.98%, followed by GTFE-NET at 99.93%.The Conformer-NSE model achieved a slightly lower accuracy of 99.86% compared to the aforementioned models.Both WKCNN and TICNN maintained accuracies above 99%, at 99.49% and 99.26%, respectively.The accuracies of 1D-ViT and MCCNN decreased more notably, by approximately 1% to 1.5%, resulting in final accuracies of 98.77% and 91.31%, respectively.Davit experienced the largest accuracy decline, with a final accuracy of 97.21%, representing a drop of approximately 2.6%.At an SNR of -6 dB, only the proposed model and GTFE-NET maintained accuracies above 99% (99.475% and 99.13%, respectively).Conformer-NSE experienced a relatively large accuracy decrease of approximately 2.2%, resulting in an accuracy near 97.6%.The models 1D-ViT, Davit, WKCNN, and TICNN exhibited larger drops in accuracy, with reductions of about 4%, 4.3%, 5%, and 6%, respectively.MCCNN again showed the weakest noise robustness, with accuracy falling to 67.49% (a 24% drop), including an 18% drop at -2 dB, the largest decline among all models.At -8 dB SNR, the proposed model continued to exhibit strong noise immunity, maintaining an accuracy of 98.339%.GTFE-NET followed closely at 97.91%.Convformer-NSE experienced a moderate accuracy decrease of approximately 4.7% under strong noise, resulting in an accuracy of about 95.17%.1D-ViT and WKCNN showed comparable noise robustness, achieving accuracies of 90.25% and 90.6%, respectively.Davit demonstrated weaker noise immunity on this dataset, with accuracy declining to 89.49%.TICNN showed relatively low robustness with accuracy dropping to 87.4%, and a more pronounced performance decline below -4 dB SNR.MCCNN was the most noise-sensitive model, with accuracy dropping sharply to 63.22% at -8 dB.
Model GTFE-NET TFSCDAVIT TICNN 1D-VIT MCCNN WKCNN
59The noisy dataset at an SNR of -6 dB was extracted, and the feature extraction results of various models were visualized using the t-SNE algorithm, as shown in Fig. 25 The noisy data with an SNR of -6 dB were used to generate a confusion matrix, as shown in Fig. 26.Under high-noise conditions, the proposed model exhibited only a small number of misclassifications between the IR2 and OR1 classes, achieving the highest overall recognition accuracy and demonstrating strong noise robustness.GTFE-NET showed only a few individual misclassifications among IR2, OR1, and OR2, maintaining very high accuracy and exhibiting excellent noise resistance.Convformer-NSE showed several misclassifications between IR02 and OR01, along with a few in OR02 under high noise levels, but still maintained good noise robustness overall.WKCNN exhibited more frequent misclassifications between IR2 and OR1, along with a few misclassifications between OR2 and IR1, indicating relatively good robustness to noise.1D-ViTperformed similarly to WKCNN but showed more misclassifications between IR2 and OR1.Its overall performance was relatively good, with slightly lower accuracy than TICNN.TICNN produced no confusion in OR2 but showed misclassifications between IR2 and OR1.Specifically, most of the OR1 samples misclassified by TICNN were incorrectly predicted as OR2, with a smaller portion misclassified as IR2.IR2 also exhibited a few misclassifications as IR1.Although other categories presented occasional errors, TICNN performed slightly better than 1D-ViT but remained inferior to WKCNN in overall robustness.Davit exhibited frequent misclassifications under high noise, particularly in OR01, which was mainly misclassified as IR01 and OR02.IR02 was often confused with OR01 and OR02, while OR02 was primarily misclassified as IR01.MCCNN was more affected by noise than the other models, except for OR2, which remained free from misclassifications.Individual errors occurred in IR1, while most misclassifications were distributed across other categories.Specifically, a large number of IR2 samples were misclassified as IR1 and OR2; Norm was misclassified as IR2 and OR1; and most OR1 samples were incorrectly classified as OR2, indicating limited resistance to noise.
60In addition to the anti-noise test, the model was also evaluated under conditions of insufficient training samples.The number of iterations was set to 100, and the learning rate was reduced by 50% every 20 iterations to ensure adequate convergence for all models.As shown in Fig. 27, the proposed model maintained 100% accuracy with 50 samples, while the accuracy of the other models decreased.Among these models, GTFE- Finally, a combined test was conducted using 50 samples and a signal-to-noise ratio of -5 dB, as shown in Fig. 28.The proposed model demonstrated the best noise immunity and generalization performance, achieving the highest accuracy of 98.142%.Convformer-NSE achieved the second highest accuracy of 85.57%, followed by GTFE-NET with 81.8%, slightly lower than Convformer-NSE.Davit also performed relatively well, attaining 78.67%, marginally below GTFE-NET.TICNN and WKCNN exhibited poorer performance under noisy and limited sample conditions, with accuracies of 70.16% and 69.89%, respectively.1D-ViT and MCCNN performed significantly worse, with average accuracies of 52.39% and 47.56%, respectively, indicating weak robustness and generalization under high noise and insufficient samples in this dataset.In contrast, the proposed model substantially outperformed all other models under these challenging conditions, demonstrating superior robustness, generalization ability, and feature recognition.These results further confirm the potential of the proposed model for application in complex real-world environments.
Comparison of model complexity
61The complexity of each model is compared, as shown in Table 7.The number of parameters of the model is primarily determined by the network structure and is independent of the input data itself.FLOPs and training time are influenced by the input length, but comparison results under the same input length can reflect the relative complexity between models.This paper uses samples with an input length of 2048 from the CWRU dataset and measures the parameters, FLOPs, and training time of each model.From the table, it can be seen that compared to the simple CNN model, the training time of the transformer structure is significantly longer.Additionally, compared to relatively simple CNN and transformer models, the proposed TFSCDAVIIT model, due to the use of frequency domain branching and a more multilayered feature extraction module, has slightly higher training time and FLOPs.It only has a slightly lower training time and FLOPs than GTFE-NET, which is designed for strong noise conditions, while its number of parameters is at a moderate level.Therefore, the proposed TFSCDAVIIT model does not have a clear advantage in terms of complexity.However, the model consistently maintains optimal classification accuracy under conditions of no interference, noise interference, and insufficient sample sizes.This accuracy advantage becomes even more pronounced under simultaneous interference from both samples and noise.Compared to GTFE-NET and Convformer-NSE, which have similar accuracy, the model outperforms GTFE-NET in terms of complexity and is comparable to Convformer-NSE in overall training time.In real industrial scenarios, where a trade-off between complexity and accuracy is required, the proposed TFSCDAVIIT is more suitable for deployment in situations that demand both high computational resources and diagnostic accuracy.
Ablation study
62In order to validate the effectiveness of each module proposed in the model, ablation experiments were conducted using the CWRU dataset, with four load cases, a sample length of 1024, non-overlapping -5 signalto-noise ratio data, and 50 samples.The model training parameters remained the same as those in the CWRU comparison test.The results are shown in Table 8.M1, where the traditional 1D-ViT structure is used.In a noisy and small-sample environment, the model achieves an accuracy of 64.08%.When the dual self-attention mechanism is incorporated, accuracy increases by 11.66%, reaching 75.66%.The channel and spatial selfattention mechanisms simultaneously enable the model to learn both channel and spatial features, improving its ability to acquire channel features, which compensates for the limitations of traditional 1D-ViT in channel feature learning.
63In the M3 and M4 models, the feedforward neural network module in the traditional transformer structure is replaced with a periodic feedforward neural network.Compared to the traditional feedforward neural network, the periodic feedforward neural network incorporates Fourier to capture periodic features, allowing the model to learn periodic data rather than merely memorizing it.This leads to accuracy improvements of 75.96% and 78.14%, respectively.Additionally, the number of parameters and floating-point operations decreases since the The M5, M6, and M7 models replace the channel and spatial self-attention mechanisms in dual self-attention.When alternating FFN and PFFN, WSAM and GCSAM are replaced by the newly proposed GWSAM and ECCSAM, respectively.The accuracy improves by 5.7% and 6.5%, respectively, demonstrating that the proposed method effectively enhances the model's recognition accuracy.Simultaneously replacing both the channel and spatial self-attention mechanisms improves the accuracy of the self-attention mechanism by 8.3%, compared to replacing just one dimension.
64To better illustrate the impact of the dual self-attention mechanism, a comparison test against the attention mechanism is conducted, as shown in Table 9.Compared to the traditional 1D-ViT structure, which achieves 57.64%, the dual self-attention structure reaches 64.08%.Its use of convolutional embedding and abandonment of the CLS token makes the model less complex while enhancing robustness and reducing the impact of noise and other factors.Meanwhile, it can be observed that under a single attention structure, the accuracy of GWSAM increases by 13.2% compared to WSAM, as GWSAM enables cross-window feature extraction through global weight information and large kernel convolution, compensating for the insufficient feature capability on spatial global features.Meanwhile, ECCSAM maintains global feature extraction through stronger nonlinear transformations while acquiring local features with the same multi-scale convolution, resulting in a 9.5% accuracy improvement compared to GCSAM.Finally, as shown in the table, dual self-attention outperforms the single self-attention mechanism in both accuracy and performance.In the case of a simple FFN, accuracy increases by 9.43%.Compared to the traditional CBAM spatial channel attention mechanism, the spatial channel self-attention mechanism, though more complex, provides higher accuracy in complex environments, with an improvement of about 31.1%.However, as seen in the chart, the improvement of the proposed attention mechanism decreases when combining multiple modules, possibly due to redundancy in feature extraction between the modules.M7 and M8 in the table introduce the cross-scale feature extraction module and frequency domain branching to the model, respectively.Compared to M6, which does not include the cross-scale feature extraction module, M7's accuracy improves by about 6.9% after incorporating this module.The cross-scale module captures more feature information through cross-scale learning, enhancing the perception of different scales and effectively mitigating the transformer's perceptual bias.The multi-layer depth inverted residuals can better model complex patterns in multiple scenarios.After adding the frequency domain branching structure, frequency domain features are introduced into the model, allowing it to learn fault features in more dimensions.The multi-scale frequency domain convolution enables the filter function, effectively suppressing noise influence.This results in further accuracy improvement, with the final accuracy of the complete experimental model M8 (TFSCDAVIT) reaching 94.74%, representing an increase of about 1.4%.To better illustrate the impact of the two modules, the corresponding structure is introduced on the traditional 1D-ViT, as shown in Table 10.It can be observed that after introducing the two structures, the accuracy of the model increases by about 35% and 42%, respectively.The cross-scale feature extraction and frequency domain branching effectively enhance the model's accuracy.However, it is also evident that compared to other modules, these two modules significantly increase the model's complexity and the number of parameters.Moreover, due to overlap and near saturation in feature extraction across multiple modules, the accuracy gain is limited when multiple modules are used simultaneously.The comprehensive experimental results demonstrate that the TFSCDAVIT model exhibits excellent robustness and generalization ability, making it suitable for bearing fault diagnosis under complex working conditions.However, the model still presents certain challenges.Through complexity analysis, it is found that the proposed model does not have a clear advantage in terms of the number of parameters, running time, and FLOPs.Additionally, in the ablation experiments, the overlap of features across multiple modules has led to redundancy, which impacts the model's efficiency.Therefore, future research will focus on designing a lightweight model, optimizing time-frequency feature fusion, reducing complexity, enhancing model deployment flexibility, and refining feature modules.Dynamic methods will be introduced to reduce redundant computation, extend the model's anti-interference capability, and enhance its versatility and cross-platform application potential.
Fig. 1 .
65Fig. 1. 1D-TFDAVIT structure.
Fig. 2 .
66Fig. 2. Frequence domain branch structure.
Fig. 4 .
67Fig. 4. Cross-Scale channel feature extraction module.
Fig. 7 .
68Fig. 7. ConvPatchembeding.
Fig. 8 .
69Fig. 8. Spatial Window Self-Attention (a) and Global Window-Interaction Self-Attention (b).
1 /√Fig. 9 .
70Fig. 9. Grouped Channel Self-Attention (a) and Efficient Channel Convolutional Self-Attention Mechanism (b).
Fig. 10 .
71Fig. 10.Feedforward Neural Network (a) and Periodic Fourier Feedforward Neural Network (b).
Fig. 12 .
72Fig. 12. CWRU Bearing Test Bench.
Fig. 11 .
73Fig. 11.The overall experimental procedure.
Fig. 14 .
74Fig. 14.PU Bearing Test Bench.
Fig. 13 .
75Fig. 13.Signals from the CWRU Dataset.
Fig. 15 .
76Fig. 15.Signals from the PU Dataset.
Fig. 16 .
77Fig. 16.Testing Curves of the CWRU dataset in a Noise-Free condition.
Fig. 17 .
78Fig. 17.Noise testing on the CWRU dataset.
Fig. 18 .
79Fig. 18.T-SNE Visualization of the CWRU Dataset at SNR = -6 dB (a)1D-VIT (b)Ours (c)WKCNN (d)GTFE-NET (e)MCCNN (f)TICNN (g)Convformer-NSE (h)DAVIT.
Fig. 21 .
80Fig. 21.Testing on the CWRU dataset with 50 samples and SNR = -5 dB.
Fig. 20 .
81Fig. 20.Small-sample testing on the CWRU dataset.
Fig. 24 .
82Fig. 24.Noise Testing on the PU dataset.
Fig. 23 .
83Fig. 23.No fluctuations in the PU dataset under noise-free conditions.
Fig. 22 .
84Fig. 22. Fluctuations in the PU data set under noise-free conditions.
Fig. 25 .
85Fig. 25.T-SNE Visualization of the PU Dataset at SNR = -6 dB (a)1D-VIT (b)Ours (c)WKCNN (d)GTFE-NET (e)MCCNN (f)TICNN (g)Convformer-NSE (h)DAVIT.
Fig. 26 .
86Fig. 26.Confusion Matrix of the PU Dataset at SNR = -6 dB (a)1D-VIT (b)Ours (c)WKCNN (d)GTFE-NET (e)MCCNN (f)TICNN (g)Convformer-NSE (h)DAVIT.
Fig. 28 .
87Fig. 28.Testing on the PU dataset with 50 samples and SNR = -5 dB.
Fig. 27 .
88Fig. 27.Small-sample testing on the PU dataset.
89An end-to-end TFSCDAVIT model for bearing fault diagnosis is proposed to address the challenges of bearing fault diagnosis in high noise and small sample environments.The two-branch structure extracts frequencydomain features through the frequency-domain branch and interacts with the time-domain branch to combine time-frequency features.In the time-domain branch, a cross-scale feature extraction module is proposed, enabling the model to gain multi-scale perception through cross-scale learning.A multi-layer inverted residual block is employed to extract local information and model complex features, providing richer feature representations and reducing the impact of feature perception bias.A dual self-attention transformer structure is used, with GWSAM proposed to address the lack of window self-attention for global feature extraction by incorporating global signal features and self-attention weights across windows.ECCSAM is introduced to enhance local feature capture through deeper nonlinear transformations and multi-scale extraction with multiple attention heads in the channel dimension.A periodic feed-forward neural network is proposed to enable the model to learn periodic features by incorporating Fourier transforms.Fault diagnosis experiments are conducted using the PU and CWRU datasets.Compared to existing Transformer and CNN models with better performance, the proposed model achieves excellent results in fault diagnosis accuracy, attaining higher recognition accuracy under limited samples and strong noise interference.It also demonstrates optimal accuracy under both sample and noise interference.When the sample size is 50 and the noise level is -5, the model achieves 99.42% accuracy on the CWRU dataset and 98.14% on the PU dataset.The effectiveness of the proposed modules is further verified through ablation experiments.It is deployed in real-world industrial scenarios with high demands for both computational resources and diagnostic accuracy.
Table 3 .
90CWRU dataset overview.
Table 2 .
91Structural parameters of the 1D-TFDAVIT model.
Table 1 .
92Accuracy of 1D-TFDAVIT with different encoder numbers.
Table 4 .
93Accuracy of the CWRU dataset in a Noise-Free environment.
94suggesting that individual samples were wrongly classified.Similarly, WKCNN, TICNN, and 1D-VIT exhibited minor misclassifications or overlapping, with WKCNN showing elongated clusters, which may indicate feature generalization or redundancy.MCCNN presented three overlapping clusters, suggesting potential mixing of the classes.Despite the high noise levels, the proposed model maintained clear cluster separation, with the densest and most compact clusters, indicating strong recognition performance, clear classification boundaries, and minimal misclassification.This suggests that the model retains robust feature recognition capabilities even under high noise conditions.
Table 6 .
95Accuracy of the PU Dataset in a Noise-Free environment.
Table 5 .
96PU dataset overview.
97NET, Convformer-NSE, and TICNN demonstrated strong performance under limited sample conditions, achieving accuracies of 99.56%, 99.49%, and 97.83%, respectively.Davit showed a relatively slower accuracy decline in this scenario, maintaining an accuracy of 93.22%.In contrast, WKCNN and 1D-ViT experienced rapid accuracy declines under limited sample conditions, reaching 84.68% and 87.02%, respectively.MCCNN exhibited the poorest generalization ability, with the largest accuracy drop to 56.89%.When the number of samples decreased to 15, the proposed model exhibited only a slight decrease, with an average accuracy of 99.93%.
Table 8 .
98Results of the ablation study.
Table 7 .
99Model complexity comparison.periodicfeedforward neural network utilizes only a single linear layer.In contrast to the M3 model, which uses a single feedforward neural network structure, the M4 model alternates between FFN and PFFN, yielding better results and improving accuracy by about 2.5%.Although the PFFN enables the model to learn periodic features, its structure is less capable in terms of feature area compared to the traditional FFN.Therefore, alternating between PFFN and FFN maintains effective feature extraction while accounting for feature periodicity learning.
Table 10 .
100Evaluation of feature extraction and frequency branch in ViT.
Table 9 .
101Impact evaluation of dual Spatial-Channel attention mechanism.
참고문헌 43건
- Statistical analysis of sound and vibration signals for monitoring rolling element bearing condition Applied Acoustics · Elsevier BV · 1998 10.1016/s0003-682x(97)00018-2
- Gradient-based learning applied to document recognition Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 1998 10.1109/5.726791
- Rolling element bearing diagnostics using the Case Western Reserve University data: A benchmark study Mechanical Systems and Signal Processing · Elsevier BV · 2015 10.1016/j.ymssp.2015.04.021
- Condition Monitoring and Fault Diagnosis of Electrical Motors—A Review IEEE Transactions on Energy Conversion · Institute of Electrical and Electronics Engineers · 2005 10.1109/tec.2005.847955
- Feature Pyramid Networks for Object Detection 2017 10.1109/cvpr.2017.106
- Learning to Monitor Machine Health with Convolutional Bi-Directional LSTM Networks Sensors · Multidisciplinary Digital Publishing Institute · 2017 10.3390/s17020273
- A deep convolutional neural network with new training methods for bearing fault diagnosis under noisy environment and different working load Mechanical Systems and Signal Processing · Elsevier BV · 2017 10.1016/j.ymssp.2017.06.022
- An automatic and robust features learning method for rotating machinery fault diagnosis based on contractive autoencoder Engineering Applications of Artificial Intelligence · Elsevier BV · 2018 10.1016/j.engappai.2018.09.010
- A novel adversarial learning framework in deep convolutional neural network for intelligent diagnosis of mechanical faults Knowledge-Based Systems · Elsevier BV · 2018 10.1016/j.knosys.2018.12.019
- Deep learning Nature · Nature Portfolio · 2015 10.1038/nature14539
- An improved deep convolutional neural network with multi-scale information for bearing fault diagnosis Neurocomputing · Elsevier BV · 2019 10.1016/j.neucom.2019.05.052
- A Low-Delay Lightweight Recurrent Neural Network (LLRNN) for Rotating Machinery Fault Diagnosis Sensors · Multidisciplinary Digital Publishing Institute · 2019 10.3390/s19143109
- Attention Augmented Convolutional Networks 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · 2019 10.1109/iccv.2019.00338
- Intelligent Fault Diagnosis of Rotor-Bearing System Under Varying Working Conditions With Modified Transfer Convolutional Neural Network and Thermal Images IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2020 10.1109/tii.2020.3005965
- A Review of Artificial Intelligence Methods for Condition Monitoring and Fault Diagnosis of Rolling Element Bearings for Induction Motor Shock and Vibration · Hindawi Publishing Corporation · 2020 10.1155/2020/8843759
- Joint pairwise graph embedded sparse deep belief network for fault diagnosis Engineering Applications of Artificial Intelligence · Elsevier BV · 2021 10.1016/j.engappai.2020.104149
- Sounds and acoustic emission-based early fault diagnosis of induction motor: A review study Advances in Mechanical Engineering · SAGE Publishing · 2021 10.1177/1687814021996915
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · 2021 10.1109/iccv48922.2021.00986
- A bearing fault diagnosis model based on CNN with wide convolution kernels Journal of Ambient Intelligence and Humanized Computing · Springer Science+Business Media · 2021 10.1007/s12652-021-03177-x
- Whitening-Net: A Generalized Network to Diagnose the Faults Among Different Machines and Conditions IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2021 10.1109/tnnls.2021.3071564
- Fault diagnosis of angle grinders and electric impact drills using acoustic signals Applied Acoustics · Elsevier BV · 2021 10.1016/j.apacoust.2021.108070
- A Proposal to Mitigate Similarity Bias for the Paderborn Bearing Data Set IECON 2020 The 46th Annual Conference of the IEEE Industrial Electronics Society · 2021 10.1109/iecon48115.2021.9589342
- A One-Dimensional Vision Transformer with Multiscale Convolution Fusion for Bearing Fault Diagnosis 2021 Global Reliability and Prognostics and Health Management (PHM-Nanjing) · 2021 10.1109/phm-nanjing52125.2021.9612919
- CvT: Introducing Convolutions to Vision Transformers 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · 2021 10.1109/iccv48922.2021.00009
- A Novel Fault Diagnosis Method of Rolling Bearing Based on Integrated Vision Transformer Model Sensors · Multidisciplinary Digital Publishing Institute · 2022 10.3390/s22103878
- A Robust Approach of Multi-sensor Fusion for Fault Diagnosis Using Convolution Neural Network Journal of Dynamics Monitoring and Diagnostics · Intelligence Science and Technology Press Inc. · 2022 10.37965/jdmd.2022.95
- Convformer-NSE: A Novel End-to-End Gearbox Fault Diagnosis Framework Under Heavy Noise Using Joint Global and Local Information IEEE/ASME Transactions on Mechatronics · Institute of Electrical and Electronics Engineers · 2022 10.1109/tmech.2022.3199985
- DaViT: Dual Attention Vision Transformers Lecture notes in computer science · Springer Science+Business Media · 2022 10.1007/978-3-031-20053-3_5
- Exploring global attention mechanism on fault detection and diagnosis for complex engineering processes Process Safety and Environmental Protection · Elsevier BV · 2022 10.1016/j.psep.2022.12.055
- Dual-Threshold Attention-Guided GAN and Limited Infrared Thermal Images for Rotating Machinery Fault Diagnosis Under Speed Fluctuation IEEE Transactions on Industrial Informatics · Institute of Electrical and Electronics Engineers · 2023 10.1109/tii.2022.3232766
- CDF‐net: A convolutional neural network fusing frequency domain and spatial domain features IET Computer Vision · Institution of Engineering and Technology · 2023 10.1049/cvi2.12167
- A Fault Diagnosis Method for Rolling Bearing Based on 1D-ViT Model IEEE Access · Institute of Electrical and Electronics Engineers · 2023 10.1109/access.2023.3268534
- An improved gated convolutional neural network for rolling bearing fault diagnosis with imbalanced data International Journal of Hydromechatronics · Inderscience Enterprises Ltd. · 2023 10.1504/ijhm.2023.130520
- Collaborative fault diagnosis of rotating machinery via dual adversarial guided unsupervised multi-domain adaptation network Mechanical Systems and Signal Processing · Elsevier BV · 2023 10.1016/j.ymssp.2023.110427
- Towards trustworthy rotating machinery fault diagnosis via attention uncertainty in transformer Journal of Manufacturing Systems · Elsevier BV · 2023 10.1016/j.jmsy.2023.07.012
- Bearing Fault Diagnosis Based on Image Information Fusion and Vision Transformer Transfer Learning Model Applied Sciences · Multidisciplinary Digital Publishing Institute · 2024 10.3390/app14072706
- Self-Sampling Meta SAM: Enhancing Few-shot Medical Image Segmentation with Meta-Learning 2022 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV) · 2024 10.1109/wacv57701.2024.00774
- Intelligent Fault Diagnosis Method for Constant Pressure Variable Pump Based on Mel-MobileViT Lightweight Network Journal of Marine Science and Engineering · Multidisciplinary Digital Publishing Institute · 2024 10.3390/jmse12091677
- TSViT: A Time Series Vision Transformer for Fault Diagnosis of Rotating Machinery Applied Sciences · Multidisciplinary Digital Publishing Institute · 2024 10.3390/app142310781
- Enhanced sparsity via adaptive period estimation and Lp norm for rolling bearing fault feature extraction Journal of Vibration and Control · SAGE Publishing · 2025 10.1177/10775463241309696
- Multi-Patch Time Series Transformer for Robust Bearing Fault Detection with Varying Noise Applied Sciences · Multidisciplinary Digital Publishing Institute · 2025 10.3390/app15031257
- Residual Attention Single-Head Vision Transformer Network for Rolling Bearing Fault Diagnosis in Noisy Environments 2024 10.1145/3708568.3708591
- Bearing fault diagnosis based on efficient cross space multiscale CNN transformer parallelism Scientific Reports · Nature Portfolio · 2025 10.1038/s41598-025-95895-x