SCCAM: Supervised Contrastive Convolutional Attention Mechanism for Ante-Hoc Interpretable Fault Diagnosis With Limited Fault Samples

Mengxuan Li, Peng Peng, Jingxin Zhang, Hongwei Wang, Weiming Shen

TL;DR

SCCAM (Supervised Contrastive Convolutional Attention Mechanism) is a new framework designed for industrial fault diagnosis that excels even when fault data is extremely scarce. By combining the "inductive bias" of CNNs with supervised contrastive learning and a specialized attention module, it achieves state-of-the-art classification accuracy while providing "ante-hoc" interpretability—meaning it identifies the root cause of a fault as part of its internal logic, not as an afterthought.

What Problem Does This Paper Address?

In modern smart factories, "faults" (mechanical failures or process deviations) are thankfully rare. While this is great for business, it’s a nightmare for AI. Most deep learning models, especially data-hungry architectures like Transformers, require thousands of examples to learn effectively. In real-world industrial settings, we often face a "long-tail" problem: we have mountains of data for normal operations but only a handful of samples for specific types of failures.

Furthermore, engineers don’t just need a "black box" to tell them something is wrong; they need to know why it’s wrong. Most current methods use "post-hoc" interpretability (trying to explain a model's decision after it's made), which can be unreliable. This paper seeks a model that is both robust to tiny datasets and inherently transparent about its reasoning.

Methods

The authors introduce SCCAM, which relies on three pillars:

  1. CNN + CBAM (Inductive Bias): Unlike pure Transformers, Convolutional Neural Networks (CNNs) have a built-in "inductive bias" for locality—they assume that data points close to each other (in time or sensor space) are related. The authors integrate a Convolutional Block Attention Module (CBAM), which applies both channel-wise and spatial attention to highlight the most important sensors and time steps.
  2. Supervised Contrastive Learning (SCL): Instead of using standard cross-entropy loss (which can struggle with imbalanced data), SCCAM uses SCL. This forces the model to pull features of the same fault type together in a high-dimensional space while pushing different fault types far apart. This makes the model much more "sample-efficient."
  3. $1 \times 1$ Convolutions for Ante-hoc Interpretability: The model uses $1 \times 1$ convolution kernels. Because these kernels don't shrink the dimensions of the input data, the resulting attention maps can be mapped directly back to the original sensors. This allows the model to point to a specific sensor (e.g., "Steam Valve Position") as the root cause of a prediction.

Datasets

The model was evaluated on two primary benchmarks:

  • CSTH (Continuous Stirred Tank Heater): A pilot plant dataset with 5 variables. It’s relatively simple but provides a clear baseline for root cause analysis.
  • TE (Tennessee Eastman) Process: A world-standard benchmark for industrial process control involving 22 continuous variables.

The authors tested these across three scenarios: Balanced (plenty of data), Imbalanced (fewer fault samples), and Long-tail (extremely limited fault samples, e.g., only 20 training samples for a fault vs. 4780 for normal operation).

Key Insights and Ideas

  • Transformers aren't always better: In the "long-tail" scenario (4% fault samples), pure attention models like ViT performed poorly because they lacked the structural assumptions (inductive bias) that CNNs provide.
  • The Power of $1 \times 1$ Kernels: By avoiding aggressive downsampling, the authors turned a standard classification network into a diagnostic tool. The "explanation" isn't a separate calculation; it's the actual weight the model puts on the data.
  • Contrastive Learning as a Stabilizer: Supervised Contrastive Learning proved significantly more robust than traditional losses (like Focal Loss or LDAM) when dealing with the "limited sample" dilemma, as it focuses on the underlying structure of the data rather than just the decision boundary.

Key Results

  • Superior Accuracy: On the challenging Tennessee Eastman "long-tail" scenario, SCCAM achieved 72.16% accuracy, significantly outperforming other state-of-the-art methods like PBS-SCL (54.58%) and Focal Loss (65.45%).
  • Perfect Diagnosis on Simple Systems: On the CSTH dataset, SCCAM achieved 100% accuracy across all scenarios (balanced, imbalanced, and long-tail).
  • Root Cause Identification: The model successfully identified the correct root causes (e.g., Variable X18 for Fault 10 and X9 for Fault 11 in the TE process) by visualizing the attention heatmaps, matching known engineering truths without requiring expert knowledge during training.

Limitations and Future Work

The authors identify one major hurdle: Open-set Fault Diagnosis. Currently, SCCAM is designed to classify faults it has seen before (even if only a few times). In a real factory, a completely new, never-before-seen fault might occur. The authors plan to explore how the model can handle these "unknown unknowns" in future research. Additionally, while the $1 \times 1$ convolutions help with interpretability, they may limit the model's ability to capture very complex, long-range temporal dependencies compared to larger kernels or dilated convolutions.

Summary updated

BibTeX
@article{li2024sccam,
  author = {Mengxuan Li and Peng Peng and Jingxin Zhang and Hongwei Wang and Weiming Shen},
  title = {{SCCAM: Supervised Contrastive Convolutional Attention Mechanism for Ante-Hoc Interpretable Fault Diagnosis With Limited Fault Samples}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2024},
  doi = {10.1109/tnnls.2023.3313728},
}

Loading related content...

Figure