Coincident Learning for Unsupervised Anomaly Detection

Ryan Humble, Zhe Zhang, Finn H. O’Shea, Eric Darve, Daniel Ratner

Abstract

Anomaly detection is an important task for complex systems (e.g., industrial facilities, manufacturing, large-scale science experiments), where failures in a sub-system can lead to low yield, faulty products, or even damage to components. While complex systems often have a wealth of data, labeled anomalies are typically rare (or even nonexistent) and expensive to acquire. Unsupervised approaches are therefore common and typically search for anomalies either by distance or density of examples in the input feature space (or some associated low-dimensional representation). This paper presents a novel approach called CoAD, which is specifically designed for multi-modal tasks and identifies anomalies based on coincident behavior across two different slices of the feature space. We define an unsupervised metric, $\hat{F}_\beta$, out of analogy to the supervised classification $F_\beta$ statistic. CoAD uses $\hat{F}_\beta$ to train an anomaly detection algorithm on unlabeled data, based on the expectation that anomalous behavior in one feature slice is coincident with anomalous behavior in the other. The method is illustrated using a synthetic outlier data set and a MNIST-based image data set, and is compared to prior state-of-the-art on two real-world tasks: a metal milling data set and a data set from a particle accelerator.

Introduction

In complex industrial and scientific environments, such as particle accelerators or manufacturing lines, system failures can manifest in a near-infinite variety of ways. Detecting these anomalies is critical for preventing hardware damage and ensuring operational efficiency. However, practitioners face a significant "catch-22": true failures are rare, making supervised learning difficult due to a lack of labels, while traditional unsupervised methods like Autoencoders or Isolation Forests often struggle when training data is "polluted" with anomalies. If a training set contains many failures, an Autoencoder may simply learn to reconstruct those failures perfectly, failing to flag them as anomalous.

This research introduces CoAD (Coincident Anomaly Detection), a framework designed for multi-modal systems where different types of sensors monitor the same physical process. By leveraging the physical independence of sensor noise, CoAD identifies genuine system failures without requiring human-provided labels.

Methodology: Coincident Learning

The core innovation of CoAD is the concept of coincident learning. In a multi-modal system, we can partition the input features $x$ into two separate slices, $s$ and $q$. During normal operation, random noise or "blips" in sensor $s$ should be statistically independent of noise in sensor $q$. However, a genuine system-wide failure is likely to manifest in both sensor streams simultaneously.

The CoAD architecture processes two independent feature slices to produce an unsupervised performance estimate.

As shown in the architecture diagram above, CoAD employs two separate neural networks ($A_{\theta_s}$ and $A_{\theta_q}$), each processing one of the input slices. Rather than training these models to reconstruct the input data, they are trained to reach a consensus on when an anomaly is occurring. The system effectively learns by analyzing where the models disagree: if one model flags an event but the other does not, the system treats it as sensor-specific noise and adjusts accordingly.

The Intuition of Coincidence

The power of this approach lies in its ability to filter out independent noise while zeroing in on correlated signals.

Visualization of coincident anomalies vs. independent noise across two data streams.

In the visualization above, true anomalies (represented by red stars) appear at the same event index in both data streams $s$ and $q$. Conversely, independent noise (black stars) appears in only one stream at a time. CoAD exploits this pattern to isolate the true signal from the background noise.

The Unsupervised $\hat{F}_\beta$ Metric

To train the models without labels, the authors derived a novel unsupervised metric, $\hat{F}_\beta$, based on the "disagreement rate" between the two models. This metric serves as an analogy to the supervised $F_\beta$ score, which balances precision and recall.

Mathematically, the authors prove (Theorem 2.1) that this unsupervised estimate is a lower bound of the true supervised $F_\beta$ score. By maximizing $\hat{F}_\beta$, the models naturally learn to cluster normal data and isolate coincident anomalies. This approach makes CoAD uniquely resistant to data pollution; unlike Autoencoders, CoAD actually benefits from having anomalies in the training set, as it uses those coincident events to define the anomalous class.

Experimental Results

The researchers validated CoAD against state-of-the-art unsupervised methods across several datasets, including synthetic outliers and a noisy MNIST-based task. The most compelling results came from two real-world applications:

  • UC Berkeley Metal Milling: This dataset compares acoustic and vibration sensors against electrical current during metal cutting. CoAD achieved an $F_1$ score of 0.86, significantly outperforming Variational Autoencoders (0.79) and other deep learning benchmarks like OmniAnomaly (0.80).
  • SLAC Particle Accelerator: In this high-stakes environment, RF station diagnostics were compared against electron beam position monitors. CoAD reached an $F_1$ of 0.86, nearly matching the performance of expert-designed systems (0.90) and supervised classifiers (0.88). It vastly outperformed standard unsupervised methods like One-Class SVMs (0.66).

Discussion and Conclusion

CoAD represents a significant step forward in unsupervised anomaly detection for multi-modal systems. Its ability to provide tunable sensitivity—allowing operators to choose between high precision and high recall by adjusting the $\beta$ parameter—makes it highly practical for industrial use. Furthermore, the model's confidence scores were found to correlate with physical properties, such as tool wear in the milling task, providing a degree of inherent interpretability.

The primary requirement for implementing CoAD is the ability to partition features into two groups that are reasonably independent during normal operation. If sensors are too highly correlated (e.g., two adjacent thermometers), the coincidence logic may fail to distinguish between shared noise and true anomalies. Future work will focus on optimizing a frontier of $\beta$ values simultaneously to provide a range of sensitivity levels in real-time.

Summary updated

Abstract

Anomaly detection is an important task for complex systems (e.g., industrial facilities, manufacturing, large-scale science experiments), where failures in a sub-system can lead to low yield, faulty products, or even damage to components. While complex systems often have a wealth of data, labeled anomalies are typically rare (or even nonexistent) and expensive to acquire. Unsupervised approaches are therefore common and typically search for anomalies either by distance or density of examples in the input feature space (or some associated low-dimensional representation). This paper presents a novel approach called CoAD, which is specifically designed for multi-modal tasks and identifies anomalies based on \textit{coincident} behavior across two different slices of the feature space. We define an \textit{unsupervised} metric, $\hat{F}_β$, out of analogy to the supervised classification $F_β$ statistic. CoAD uses $\hat{F}_β$ to train an anomaly detection algorithm on \textit{unlabeled data}, based on the expectation that anomalous behavior in one feature slice is coincident with anomalous behavior in the other. The method is illustrated using a synthetic outlier data set and a MNIST-based image data set, and is compared to prior state-of-the-art on two real-world tasks: a metal milling data set and a data set from a particle accelerator.
BibTeX
@misc{humble2023coincident,
  author = {Ryan Humble and Zhe Zhang and Finn H. O’Shea and Eric Darve and Daniel Ratner},
  title = {{Coincident Learning for Unsupervised Anomaly Detection}},
  year = {2023},
  eprint = {2301.11368},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.11368},
}
Figure