An explainable artificial intelligence approach for unsupervised fault detection and diagnosis in rotating machinery

Lucas Costa Brito, Gian Antonio Susto, Jorge Nei Brito, Marcus Antônio Viana Duarte

Abstract

In industrial manufacturing, rotating machinery is critical to production. While deep learning has improved fault detection, the lack of labeled data and the "black-box" nature of these models hinder their adoption. This paper proposes a three-stage framework—feature extraction, unsupervised fault detection, and XAI-based diagnosis—to address these challenges. By utilizing SHAP and Local-DIFFI, the system provides transparent, root-cause analysis without requiring labeled historical data.

Introduction

The reliability of rotating machinery, such as motors and gearboxes, is vital for modern production. Traditional predictive maintenance often relies on supervised learning, which requires extensive labeled datasets—a luxury rarely available in real-world industrial settings. Furthermore, even when accurate, these models often fail to provide the "why" behind a detection, leaving engineers hesitant to trust automated decisions.

This research introduces a methodology that bypasses the need for labeled data through unsupervised anomaly detection and bridges the trust gap using Explainable AI (XAI). The approach allows for both the detection of a fault and the identification of its mechanical root cause in a human-readable format.

Methodology

The proposed framework is divided into three modular phases:

1. Feature Extraction

The system extracts vibration features from both time and frequency domains. These are categorized into:

  • General Features: Metrics like Root Mean Square (RMS) and Kurtosis that indicate overall machine health.
  • Specific Features: Frequency-domain components, such as Ball Pass Frequencies, which are tied to specific mechanical components (e.g., inner or outer bearing races).

2. Unsupervised Fault Detection

Instead of training on "faulty" examples, the system identifies anomalies by learning the boundaries of "normal" operation. The researchers evaluated 11 algorithms, including Isolation Forest (IF), k-Nearest Neighbors (kNN), and Histogram-based Outlier Score (HBOS). This modularity allows the system to adapt to different industrial environments depending on the specific data distribution.

3. Fault Diagnosis via XAI

The core innovation lies in using XAI techniques—specifically SHAP (Shapley Additive Explanations) and Local-DIFFI—to interpret the anomaly detection model. By ranking which features contributed most to an "anomaly" score, the system performs unsupervised classification. For instance, if the model flags a data point as an anomaly and SHAP identifies the "Outer Race" frequency as the primary driver, the system diagnoses an outer race bearing fault.

Experimental Validation

The framework was tested across three distinct scenarios to ensure robustness:

  • Bearing Degradation: Utilizing the IMS Center public dataset to track wear over time.
  • Gearbox Conditions: Analyzing nine different states, including cracks and spalling at various severity levels.
  • Mechanical Faults: A custom dataset featuring overlapping issues like misalignment, unbalance, and mechanical looseness.

Results and Discussion

The study yielded several critical insights regarding the performance and efficiency of unsupervised XAI:

  • High Detection Accuracy: Unsupervised models like Isolation Forest and HBOS achieved F1-scores and PR-AUC values near 99% in bearing and gearbox cases, rivaling supervised alternatives.
  • Diagnostic Precision: In the bearing test case, the combination of Isolation Forest and XAI reached a diagnostic accuracy of 99.57%.
  • Computational Efficiency: While SHAP is highly effective, Local-DIFFI (optimized for Isolation Forests) was found to be 6.5 to 8 times faster, making it more suitable for real-time industrial monitoring.
  • Feature Selection for Diagnosis: The authors noted that while general features (like RMS) are excellent for detection, they must be excluded during the diagnosis phase to prevent them from "masking" the specific mechanical causes in the feature importance ranking.

Conclusion

By transforming feature importance into a diagnostic tool, this framework provides a transparent and label-free solution for industrial maintenance. The ability to provide root-cause analysis through XAI not only improves diagnostic accuracy but also fosters the human-machine trust necessary for the widespread adoption of AI in manufacturing. Future work will focus on domain adaptation to allow models to generalize across different machines and operating conditions without retraining from scratch.

Summary updated

BibTeX
@misc{brito2021explainable,
  author = {Lucas Costa Brito and Gian Antonio Susto and Jorge Nei Brito and Marcus Antônio Viana Duarte},
  title = {{An explainable artificial intelligence approach for unsupervised fault detection and diagnosis in rotating machinery}},
  year = {2021},
  eprint = {2102.11848},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.11848},
}
Figure