Interpretable Early Failure Detection via Machine Learning and Trace Checking-based Monitoring

Andrea Brunello, Luca Geatti, Angelo Montanari, Nicola SaccomannoarXiv 2025 · DOI

Introduction

In modern industrial environments—ranging from hyperscale data centers to complex chemical processing plants—the ability to detect system failures before they manifest is a critical operational requirement. This task, known as Early Failure Detection (EFD), aims to identify "anticipatory signals" or precursors that suggest a system is deviating from its nominal state toward a failure condition.

Traditionally, EFD has relied on Runtime Monitoring, where system behaviors are checked against formal specifications written in Signal Temporal Logic (STL). While STL provides a mathematically rigorous and human-readable way to define failure conditions, it faces two primary hurdles: the computational complexity of monitoring (which often involves exponential state-space growth) and the difficulty of manually defining rules for every possible failure mode. This paper introduces a novel framework that addresses these challenges by combining formal verification theory with GPU-accelerated evolutionary machine learning.

Theoretical Framework: Reducing Monitoring to Trace Checking

The primary theoretical contribution of this work is the reduction of the monitoring problem to a simpler "trace checking" problem. Standard STL monitoring can be computationally expensive because it often requires the construction of complex automata. However, the authors demonstrate that for specific fragments of STL—specifically "pure past" safety and cosafety properties—the monitoring process can be simplified.

By treating the evaluation as trace checking over finite data sequences, the problem moves from exponential to polynomial time complexity. This reduction is the "Aha!" moment of the research, providing the mathematical foundation necessary to scale the learning process to massive industrial datasets.

Methodology: GPU-Accelerated Evolutionary Learning

To automate the discovery of failure-prediction rules, the authors employ a multi-objective Evolutionary Algorithm (EA). The framework "breeds" STL formulas through several key stages:

  1. Vectorized Trace Checking: Leveraging the mathematical simplification mentioned above, the authors implemented the trace checking logic using vectorized operations in PyTorch. This allows the system to evaluate thousands of candidate formulas across thousands of data traces simultaneously on a GPU, achieving a 3-to-4 order of magnitude speedup compared to traditional CPU-based monitors like RTAMT.
  2. Genetic Programming: The EA searches for formulas that maximize both accuracy and "margin" (the distance between a signal and the failure threshold) while minimizing false alarms. This ensures the resulting rules are robust and reliable.
  3. Epoch and Batch Training: Borrowing techniques from deep learning, the authors organized the evolutionary process into epochs and batches. This makes the learning process more stable and less sensitive to the specific order of the training data.
  4. Iterative Trimming: To specifically target early detection, the algorithm uses an iterative trimming process. Once a formula successfully identifies a failure signal, the training data is trimmed to that point, forcing subsequent generations of formulas to look even further back in time for earlier precursors.

Experimental Evaluation

The framework was rigorously tested against three prominent industrial benchmarks:

  • Backblaze Hard Drive Dataset: Real-world SMART telemetry data from a large-scale data center environment.
  • Tennessee Eastman Process (TEP): A complex simulation of a chemical plant, providing a high-dimensional environment for testing fault detection.
  • NASA C-MAPSS: A turbofan engine degradation simulation, which is the gold standard for evaluating Remaining Useful Life (RUL) and failure precursors.

Key Results and Insights

The proposed framework demonstrated superior performance across all benchmarks, showing a 2–10% net improvement in F1-score and Matthews Correlation Coefficient (MCC) over existing state-of-the-art logic-learning methods.

Beyond raw performance, the framework offers two distinct advantages:

  • Computational Efficiency: The GPU acceleration enables the evolution of complex rules in a fraction of the time required by previous methods, making it practical for real-world deployment.
  • Interpretability: Unlike "black-box" neural networks, the output of this system is a set of logical STL formulas. For example, a learned rule might specify that a drive is likely to fail if power-on hours exceed a certain threshold while specific error counts spike. This transparency allows domain experts to audit, trust, and refine the AI’s logic.

Conclusion and Future Work

This research represents a significant step forward in making formal-logic-based monitoring scalable and automated. By bridging the gap between formal verification and evolutionary computation, the authors have created a system that is both high-performing and inherently interpretable.

Future research directions include addressing formula redundancy to prune the monitoring pool, exploring self-supervised methods for general anomaly detection (where labeled failure data is unavailable), and utilizing Large Language Models (LLMs) to translate complex STL formulas into natural language for non-expert operators. These advancements will further lower the barrier to adopting rigorous, interpretable AI in critical industrial infrastructure.

Summary updated

BibTeX
@misc{brunello2025interpretable,
  author = {Andrea Brunello and Luca Geatti and Angelo Montanari and Nicola Saccomanno},
  title = {{Interpretable Early Failure Detection via Machine Learning and Trace Checking-based Monitoring}},
  year = {2025},
  eprint = {2508.17786},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.17786},
}
Figure