Improving bearing fault diagnosis method based on the fusion of time–frequency diagram and a novel vision transformer

Jingyuan Wang, Yuan Zhao, Wenyan Wang, Ziheng Wu

Abstract

Bearings are indispensable components in mechanical equipment; thus, accurate and reliable fault diagnosis is crucial. Traditional methods often suffer from insufficient feature extraction and poor robustness. This paper presents an improved bearing fault diagnosis method based on the fusion of time-frequency diagrams and a novel vision transformer (EHVT). The method utilizes Continuous Wavelet Transform (CWT) to map vibration signals into the time-frequency domain. A novel vision transformer is designed to improve diagnosis performance and reduce computational complexity while retaining local feature extraction and long-range dependency capabilities. A key innovation is the Spatial Reduction Window Attention (SRWA) module. Experimental results on the CWRU and HIT datasets demonstrate that the proposed model surpasses state-of-the-art models, even under variable operating and noise conditions.

Introduction: The Challenge of Industrial Fault Diagnosis

Bearings are critical to mechanical systems, yet their failure often leads to catastrophic and expensive downtime. While deep learning has advanced fault diagnosis, two major hurdles remain:

  1. Feature Extraction: Standard Convolutional Neural Networks (CNNs) excel at local patterns but struggle with the long-distance relationships inherent in vibration data.
  2. Environmental Complexity: Real-world industrial environments are "noisy," with varying loads and acoustic interference that often cause standard models to fail.

The Enhanced Hierarchical Vision Transformer (EHVT) aims to bridge this gap by providing a computationally efficient and robust architecture for real-world application.

Methodology: The EHVT Pipeline

The EHVT model processes vibration signals through a sophisticated multi-stage pipeline designed for maximum feature clarity and minimal redundancy.

The overall architecture of the EHVT model, illustrating the flow from time-frequency input to final classification.

The process begins with the Continuous Wavelet Transform (CWT), which converts 1D vibration signals into 2D time-frequency diagrams. This preserves non-linear characteristics in a format suitable for vision-based processing. The signal then passes through the SCStem Module, which utilizes Spatial and Channel Reconstruction Convolution (SCConv) to strip away redundant information early, focusing the model on diagnostic features.

Core Innovations: SRWA and SWCaT

The heart of the EHVT lies in its hierarchical stages composed of SWCaT (Shifted Window Coordinate Attention Transformer) modules.

Detailed structure of the SWCaT module, highlighting the Spatial Reduction Window Attention (SRWA) and Coordinate Attention (CA) components.

Spatial Reduction Window Attention (SRWA)

Standard Transformers are computationally expensive because every part of an image attends to every other part. SRWA optimizes this by using a window-based approach (local neighborhoods) and a Spatial Reduction (SR) module for the keys and values. This drastically reduces mathematical overhead without sacrificing the ability to capture global context.

Coordinate Attention (CA) and Local Perception

Integrated into the feed-forward networks, Coordinate Attention helps the model maintain precise positional information. This is critical for identifying exactly when and at what frequency a fault signature appears. A Local Perception Unit (LPU) further ensures that spatial orientation is preserved.

Experimental Results and Validation

The model was validated using the CWRU (Case Western Reserve University) dataset and the HIT (Harbin Institute of Technology) inter-shaft bearing dataset.

  • Accuracy: EHVT achieved a peak accuracy of 99.67% on the CWRU dataset.
  • Noise Robustness: Under a Signal-to-Noise Ratio (SNR) of 2dB, EHVT maintained 71.34% accuracy, significantly outperforming standard ViT-S models which dropped to ~40%.
  • Generalization: When tested across different motor loads, EHVT outperformed baselines by over 14%, demonstrating its adaptability to changing industrial operations.

Conclusion and Future Directions

EHVT represents a significant step forward in robust, efficient industrial monitoring. While it shows high accuracy and noise resistance, future work will focus on real-time deployment benchmarks for edge devices and exploring "zero-shot" scenarios for identifying previously unseen fault types.

Summary updated

BibTeX
@inproceedings{wang2024improving,
  author = {Jingyuan Wang and Yuan Zhao and Wenyan Wang and Ziheng Wu},
  title = {{Improving bearing fault diagnosis method based on the fusion of time–frequency diagram and a novel vision transformer}},
  booktitle = {Research Square},
  year = {2024},
  doi = {10.21203/rs.3.rs-5195341/v1},
}
Figure