BaS-former : a trustworthy model of machinery fault diagnosis for quantifying aleatoric uncertainty under noise discrepancy

Shao, Haidong and Feng, Minjie and Shao, Minghui and Xiao, Yiming and Wang, Jie and Liu, Bin (2025) BaS-former : a trustworthy model of machinery fault diagnosis for quantifying aleatoric uncertainty under noise discrepancy. Nondestructive Testing and Evaluation. ISSN 1058-9759 (https://doi.org/10.1080/10589759.2025.2559046)

[thumbnail of Shao-etal-NTE-2025-BaS-former-a-trustworthy-model-of-machinery-fault-diagnosis]
Preview
Text. Filename: Shao-etal-NTE-2025-BaS-former-a-trustworthy-model-of-machinery-fault-diagnosis.pdf
Accepted Author Manuscript
License: Creative Commons Attribution 4.0 logo

Download (2MB)| Preview

Abstract

Trustworthy machinery fault diagnosis aims to enhance the reliability and transparency of model decisions; however, its theoretical and applied research remains in the nascent stages. In real-world industrial settings, the acquisition of fault samples is exceptionally challenging because machinery often operates under normal conditions for extended periods. Furthermore, the collected signals are commonly contaminated by strong and varying background noise. This leads to significant shifts in the signal’s feature distribution, complicating the quantification of aleatoric uncertainty of the diagnostic results. To address these challenges, this paper proposes a novel trustworthy machinery fault diagnosis model, BaS-former. First, we construct a Bayesian window self-attention mechanism by reparameterizing the conventional self-attention as a random variable that follows a variational distribution. By updating this distribution, our model effectively leverages an infinite ensemble of Transformers, thereby enhancing its generalisation and robustness. In addition, we design an aleatoric uncertainty quantification scheme to represent the credibility of the model’s diagnostic results under varying noise conditions. Experimental datasets for bearing and gearbox were employed to validate the proposed method. The results demonstrate that our method not only achieves high diagnostic accuracy but can also characterise the relationship between varying noise intensity and aleatoric uncertainty, significantly outperforming several baseline and state-of-the-art models.

ORCID iDs

Shao, Haidong, Feng, Minjie, Shao, Minghui, Xiao, Yiming, Wang, Jie and Liu, Bin ORCID logoORCID: https://orcid.org/0000-0002-3946-8124;