To evaluate the effectiveness of the proposed ACSE-RNformer in rotating machinery fault diagnosis, experiments were conducted on the PU bearing dataset and the UC gear dataset. The experimental datasets and preprocessing procedures are first introduced, followed by the experimental environment and training parameter settings. Then, the overall diagnostic performance of the proposed model is analyzed using confusion matrices, feature visualization, and multiple evaluation metrics. In addition, ablation experiments are performed to verify the effectiveness of ACSE and RNformer. Finally, the proposed method is compared with several representative deep learning models to demonstrate its superiority.
All experiments were conducted on a computing platform equipped with an Intel Core i9-12900K CPU (Intel Corporation, Santa Clara, CA, USA), an NVIDIA GeForce RTX 3060 GPU with 6 GB of memory (NVIDIA Corporation, Santa Clara, CA, USA), and 16 GB of RAM. The operating system was Windows 11, and all models were implemented and evaluated using MATLAB R2024b with the Deep Learning Toolbox. All comparative experiments were conducted under the same hardware and software environment to ensure a fair evaluation of computational performance.
4.1. Datasets
The PU bearing dataset and the UC gear dataset cover two typical types of rotating machinery components, namely rolling bearings and gears. These datasets contain different fault mechanisms and vibration response characteristics, and therefore can be used to comprehensively evaluate the generalization capability of the proposed model.
To construct unified datasets, the continuous vibration signals under each operating condition were first segmented using a fixed-length sliding window, with each segment treated as an independent sample. For the PU dataset, the window length was set to 1600 sampling points, whereas a window length of 3600 sampling points was used for the UC dataset. In both cases, the windows were arranged without overlap to ensure that adjacent samples shared no data points.
Subsequently, according to the length of the continuous vibration signals available for each operating condition, 100 independent samples were extracted from each condition for the PU dataset and 104 samples for the UC dataset, resulting in class-balanced datasets.
4.1.1. Paderborn University Bearing Dataset
The PU rolling bearing dataset [
32] provides high-resolution bearing vibration data. The dataset includes healthy bearings, artificially damaged bearings, and real damaged bearings generated from accelerated lifetime tests. To ensure a sufficient number of experimental samples and maintain class balance, 12 bearing conditions were selected as the research objects, including four healthy conditions, four inner-race fault conditions, and four outer-race fault conditions. The detailed fault types are listed in
Table 1.
The selected PU dataset contained 1200 samples, with 100 samples for each condition. Before the experiments, Z-score normalization was applied to each sample to reduce the influence of amplitude-scale differences among samples on model training. Then, a stratified random splitting strategy was adopted to divide the samples into training, validation, and test sets at a ratio of 70%, 15%, and 15%, respectively. Specifically, 840 samples were used for training, 180 samples were used for validation, and 180 samples were used for testing. Stratified splitting ensured that the class distribution remained consistent across the training, validation, and test sets, thereby improving the reliability of model performance evaluation.
4.1.2. University of Connecticut Gear Dataset
The UC gear dataset [
33] contains gear vibration data collected from a two-stage gearbox test rig with replaceable gears. The sampling frequency was 20 kHz. As listed in
Table 2, the dataset includes nine gear conditions: healthy, missing tooth, root crack, spalling, and five levels of chipped tooth faults. Each condition contains 104 samples, resulting in a total of 936 samples.
Before the experiments, Z-score normalization was applied to each sample to reduce the influence of amplitude-scale differences among samples on model training. Then, a stratified random splitting strategy was adopted to divide the dataset into training, validation, and test sets at approximately 70%, 15%, and 15%, respectively. Accordingly, 648 samples were used for training, 135 samples were used for validation, and 153 samples were used for testing. This splitting strategy ensured that different fault categories maintained relatively consistent class distributions across the training, validation, and test sets, thereby improving the reliability of model evaluation.
4.3. Experimental Results and Discussion
Figure 2 presents the test-set prediction results of ACSE-RNformer on the PU bearing dataset. It can be observed that the predicted labels were highly consistent with the true labels, with only one test sample being misclassified. The overall test accuracy reached 99.44%. This result indicates that the proposed method can effectively identify different bearing health conditions and fault types. This performance can mainly be attributed to two aspects. First, ACSE enhanced fault-sensitive responses in vibration signals through continuous sequence mapping and amplitude calibration. Second, RNformer reduced the interference of local abnormal amplitudes with the attention distribution through the response normalization mechanism, thereby improving the stability of global dependency modeling.
Figure 3 presents the confusion matrix of ACSE-RNformer on the PU dataset. As shown in the figure, among the 12 bearing condition classes, 11 were correctly identified without any misclassification, with only one sample being misclassified from Class 1 as Class 3. Accordingly, the Recall for Class 1 was 93.3%, while the Precision for Class 3 was 93.8%; no misclassifications occurred in the remaining classes. Further analysis indicates that a certain degree of feature overlap exists between Classes 1 and 3, possibly because the two conditions exhibit similar local impact responses, energy distributions, and time–frequency patterns, making a small number of samples difficult to completely separate in the feature space. Despite this limited confusion, the overall results demonstrate that ACSE-RNformer can effectively extract discriminative bearing fault features and maintain good separability among different fault categories.
Figure 4 presents a three-dimensional t-SNE visualization of the features learned by ACSE-RNformer on the PU dataset. As shown in the figure, samples from the same class form relatively compact clusters in the low-dimensional embedding space, while generally clear separation boundaries are observed among different classes. The clustering regions of Classes 1 and 3 are relatively close, which is consistent with the limited misclassification observed in the confusion matrix. These results indicate that ACSE-RNformer can learn highly discriminative deep feature representations, enabling different fault conditions to exhibit well-separated distribution patterns in the low-dimensional feature space.
Figure 5 presents the test-set prediction results of ACSE-RNformer on the UC gear dataset. It can be observed that the predicted labels were highly consistent with the true labels, with only one test sample being misclassified. The overall test accuracy reached 99.35%. This result indicates that the proposed method can effectively identify different gear fault conditions. This performance can be attributed to the fact that ACSE enhanced fault-impact responses in gear vibration signals through amplitude-calibrated sequence embedding, whereas RNformer reduced the interference of local amplitude fluctuations with the attention distribution through the response-normalized self-attention mechanism, thereby improving the stability of global feature modeling.
Figure 6 presents the confusion matrix of ACSE-RNformer on the UC dataset. Among the nine gear condition classes, eight were correctly identified without any misclassification, with only one sample from Class 6 being misclassified as Class 5. Accordingly, the Recall for Class 6 was 94.1%, while the Precision for Class 5 was 94.4%; no misclassifications occurred in the remaining classes. The observed confusion was concentrated between Classes 5 and 6, indicating that these two fault conditions exhibit certain similarities in their vibration response patterns, particularly in terms of local impact characteristics, amplitude variations, and spectral distributions, which increases the difficulty of distinguishing their class boundaries. Overall, ACSE-RNformer was able to learn key discriminative information from different gear fault conditions and achieve highly accurate fault classification.
Figure 7 presents a three-dimensional t-SNE visualization of the features learned by ACSE-RNformer on the UC dataset. As shown in the figure, samples from the same class form relatively compact clusters in the low-dimensional embedding space, while different classes exhibit generally clear separation. In particular, the clusters corresponding to Classes 5 and 6 are relatively close, which is consistent with the single misclassification observed in the confusion matrix. This proximity may be attributed to similarities between the two fault conditions in terms of local impact responses, amplitude variation patterns, and spectral characteristics, resulting in partial overlap in the feature space. Overall, ACSE-RNformer effectively integrates amplitude response information with global temporal dependencies, enabling the learning of more stable and discriminative fault feature representations.
Overall, the experimental results on the PU bearing dataset and the UC gear dataset demonstrate that the proposed ACSE-RNformer achieved high recognition performance in two different rotating machinery fault diagnosis tasks. Only one test sample was misclassified on each dataset, and the test accuracies reached 99.44% and 99.35%, respectively. The confusion matrices show that most fault categories were completely correctly identified, with only very limited confusion between similar categories. The three-dimensional t-SNE visualizations further confirm that the learned features have clear intra-class compactness and inter-class separability. These results verify the effectiveness of ACSE and RNformer in enhancing fault-sensitive feature representation and stabilizing global dependency modeling.
For visualization, the figures presented in this section are based on a representative run among the 10 independent repetitions, whereas the quantitative results in the tables are reported as the mean ± standard deviation over all 10 runs.
4.4. Ablation Study
To verify the effectiveness of the two core modules, namely ACSE and RNformer, ablation experiments were conducted on the PU bearing dataset and the UC gear dataset. The results are shown in
Table 4 and
Table 5. The standard Transformer was used as the baseline model. ACSE, RNformer, and their combination were then introduced separately to analyze the contribution of each module to diagnostic performance. For a fair comparison, all experiments used the same data splitting strategy, training parameters, and optimization settings, and only the network structure was changed.
For the PU dataset, the standard Transformer achieved an Accuracy of 92.84% ± 0.46% and an F1-score of 92.74% ± 0.45%. After ACSE was introduced, the Accuracy and F1-score increased to 95.12% ± 0.34% and 95.05% ± 0.33%, respectively, representing improvements of 2.28 and 2.31 percentage points over the baseline. These results indicate that amplitude-calibrated sequence embedding can enhance the representation of fault-sensitive responses and improve the discriminative capability of sequence features. When only RNformer was introduced, the Accuracy and F1-score reached 97.51% ± 0.26% and 97.46% ± 0.25%, respectively, demonstrating that the response normalization mechanism can effectively mitigate the interference caused by abnormal amplitude responses and improve the stability of global feature modeling in the Transformer. When ACSE and RNformer were jointly incorporated, the model achieved an Accuracy, Precision, Recall, and F1-score of 99.36% ± 0.16%, 99.41% ± 0.15%, 99.36% ± 0.18%, and 99.37% ± 0.16%, respectively, yielding the best overall performance on the PU dataset. Compared with the standard Transformer, these four metrics were improved by 6.52, 6.23, 7.05, and 6.63 percentage points, respectively.
A consistent performance improvement was also observed on the UC dataset. The standard Transformer achieved an Accuracy of 92.43% ± 0.52% and an F1-score of 92.35% ± 0.51%. After ACSE was introduced, these values increased to 94.56% ± 0.39% and 94.49% ± 0.38%, respectively. When only RNformer was employed, the Accuracy and F1-score further increased to 97.18% ± 0.31% and 97.12% ± 0.30%. The complete model achieved an Accuracy, Precision, Recall, and F1-score of 99.28% ± 0.18%, 99.32% ± 0.16%, 99.28% ± 0.20%, and 99.29% ± 0.17%, respectively, corresponding to improvements of 6.85, 6.56, 7.32, and 6.94 percentage points over the standard Transformer. These results indicate that both ACSE and RNformer can independently improve diagnostic performance, while their joint use provides superior and more stable classification performance.
Overall, the results on both datasets demonstrate that ACSE and RNformer effectively improved diagnostic performance. ACSE mainly enhanced fault-sensitive amplitude responses in the input sequence, whereas RNformer improved the stability of global attention modeling in the Transformer. Their combination achieved the best results on both the PU and UC datasets, verifying the rationality and effectiveness of the proposed ACSE-RNformer framework.
4.5. Comparative Analysis
To comprehensively evaluate the effectiveness of the proposed ACSE-RNformer, seven representative fault diagnosis methods were selected as comparison models. These models represent different technical routes in the current field of intelligent fault diagnosis. The details of the comparison models are described as follows.
(1) Autoencoder (AE). AE adopted an encoder–decoder structure. The hidden-layer dimensions were set to 256, 128, and 64, and a symmetric decoder structure was used. The encoded features were fed into a fully connected layer for classification. ReLU was used as the activation function, and the dropout rate was set to 0.2.
(2) ResNet adopted a one-dimensional residual convolutional structure. The convolution kernel sizes were set to 7, 5, and 3, and the numbers of channels were set to 32, 64, and 128, respectively. Each residual block consisted of Conv1D, Batch Normalization, ReLU activation, and residual connection.
(3) Graph Convolutional Network (GCN). GCN constructed a k-nearest-neighbor graph based on sample feature similarity, where k was set to 10. Two graph convolutional layers were used, with hidden dimensions of 64 and 128, respectively. The dropout rate was set to 0.2.
(4) Kolmogorov–Arnold Network (KAN). The KAN constructed nonlinear mapping relationships based on the Kolmogorov–Arnold representation theorem. In contrast to conventional neural networks, KAN replaces fixed activation functions with learnable activation functions, thereby providing strong nonlinear function approximation capability. It has recently emerged as a representative network architecture in deep learning and has gradually been applied to fault diagnosis tasks. In this study, the hidden-layer dimensions of KAN were set to 128 and 64, the number of spline grids was set to 5, and the spline order was set to 3.
(5) iTransformer. The embedding dimension of iTransformer was set to 64, the number of attention heads was set to 4, the number of encoder layers was set to 2, and the hidden dimension of the feed-forward network was set to 128. The dropout rate was set to 0.2. Unlike the proposed method, iTransformer did not include ACSE or the response normalization mechanism.
(6) Multitask network combining CNNs and Transformers (MT-ConvFormer). MT-ConvFormer employs one-dimensional convolution to extract local fault features and a Transformer to model global dependencies. The embedding dimension was set to 64, with 4 attention heads, 2 encoder layers, and a dropout rate of 0.2, enabling joint modeling of local and global features.
(7) Multi-Patch Transformer. Multi-Patch Transformer represents vibration signals using multi-scale patches and models global dependencies among different patches through a Transformer. The embedding dimension was set to 64, with 4 attention heads, 2 encoder layers, and a dropout rate of 0.2, enhancing the representation of multi-scale local dynamic features.
To ensure a fair comparison, all comparison models were trained and tested using the same data splitting strategy, training settings, and experimental environment. The experimental results on the PU bearing dataset and the UC gear dataset are reported in
Table 6 and
Table 7, respectively.
For the PU dataset, the Accuracy values of AE, ResNet, GCN, KAN, and iTransformer were 82.91% ± 1.05%, 87.72% ± 0.86%, 89.94% ± 0.71%, 92.84% ± 0.58%, and 94.72% ± 0.45%, respectively, showing an overall increasing trend. MT-ConvFormer and Multi-Patch Transformer further achieved Accuracy values of 95.86% ± 0.39% and 97.54% ± 0.30%, respectively, indicating that more effective local feature extraction and temporal dependency modeling can further improve fault diagnosis performance. In comparison, the proposed ACSE-RNformer achieved an Accuracy, Precision, Recall, and F1-score of 99.36% ± 0.16%, 99.41% ± 0.15%, 99.36% ± 0.18%, and 99.37% ± 0.16%, respectively, outperforming all comparison methods. Compared with the best-performing baseline, Multi-Patch Transformer, these four metrics were improved by 1.82, 1.71, 1.98, and 1.86 percentage points, respectively, demonstrating that the proposed method can learn more discriminative fault feature representations.
A similar performance trend was observed on the UC dataset. The Accuracy values of AE, ResNet, GCN, KAN, and iTransformer were 81.46% ± 1.21%, 86.62% ± 0.94%, 89.22% ± 0.76%, 93.18% ± 0.61%, and 93.87% ± 0.50%, respectively, while MT-ConvFormer and Multi-Patch Transformer achieved 97.72% ± 0.34% and 97.21% ± 0.37%. The proposed method further achieved an Accuracy of 99.28% ± 0.18%, together with a Precision of 99.32% ± 0.16%, a Recall of 99.28% ± 0.20%, and an F1-score of 99.29% ± 0.17%. Compared with the best-performing baseline on this dataset, MT-ConvFormer, these four metrics were improved by 1.56, 1.42, 1.73, and 1.61 percentage points, respectively. These results indicate that the synergistic use of ACSE and response normalization effectively enhances fault-sensitive feature representation while improving classification performance and stability under complex vibration conditions.
Overall, the results on both datasets show that ACSE-RNformer achieved the best performance in both bearing and gear fault diagnosis tasks. This verifies its effectiveness in preserving continuous temporal structures, enhancing fault-sensitive amplitude responses, and stabilizing global dependency modeling.
To further evaluate the computational efficiency of different models, the computational costs of all models were statistically analyzed under the same hardware platform, software environment, input data, data partitioning strategy, and training settings, as shown in
Table 8. Specifically, the number of model parameters, the total training time for one complete training run, and the total inference time for one complete test-set evaluation were compared. Total Training Time denotes the time required to complete a full training run, whereas Total Test-Set Inference Time denotes the time required by the trained model to complete prediction over the entire test set. Both quantities were obtained from a single complete experimental run rather than averaged over multiple runs. All models were evaluated under identical hardware, software, and testing conditions to ensure a fair comparison of computational efficiency.
As shown in
Table 8, AE and ResNet have relatively low parameter counts and computational costs due to their simpler architectures. GCN and KAN incur additional computational overhead because of graph-based feature propagation and learnable function mappings, respectively. Transformer-based methods generally require more parameters and longer training times because of the attention computation. In comparison, ACSE-RNformer contains only 119.3 K parameters, which is substantially fewer than those of most Transformer-based models. This efficiency is mainly attributed to the ACSE module, which first compresses the raw vibration sequence through continuous convolutional mapping and transforms the long sequence into a compact representation, thereby reducing the computational burden of the subsequent Transformer encoding process.
Although the total test-set inference time of ACSE-RNformer is slightly higher than that of some lightweight models, it achieves superior diagnostic performance. Therefore, the proposed method maintains high fault recognition performance with controllable computational overhead, achieving a favorable balance between diagnostic accuracy and computational efficiency.