Machine Learning
New Framework Tackles Anomaly Detection When Training Data Contains Hidden Defects
Researchers develop a method to train anomaly detectors without clean labeled examples, accounting for contamination in unlabeled datasets.
Detecting unusual patterns in data is a critical challenge across industries, from cybersecurity to manufacturing. But most existing anomaly detection systems rely on a key assumption: that the unlabeled training data are mostly normal. A team of researchers has now proposed a solution that works even when this assumption breaks down.
The Problem with Contaminated Data#
Real-world datasets often contain anomalies that go undetected during collection. When these flawed examples end up in the training set, they corrupt the learning process. Conventional semi-supervised anomaly detection methods, which combine a small number of labeled anomalies with large amounts of unlabeled data, become unreliable under such conditions. The presence of hidden anomalies in the unlabeled pool weakens the model's ability to distinguish normal from abnormal, ultimately degrading detection accuracy.
A New Approach: Positive-Unlabeled Learning#
The researchers introduce a framework that integrates positive-unlabeled learning—a technique borrowed from weakly-supervised settings—with deep learning models such as autoencoders and deep support vector data descriptions. Rather than requiring labeled examples of normal behavior, this method learns to characterize normal data by working with only labeled anomalies and the contaminated unlabeled dataset. The framework estimates what normal anomaly scores should be, then trains detectors to minimize scores for estimated-normal instances while maximizing scores for known anomalies.
Theoretical Backing and Validation#
The team provides formal guarantees about their approach, deriving a generalization error bound that shows their training objective converges reliably to an optimal solution. Across multiple benchmark datasets, the method outperforms existing approaches designed for similar scenarios, suggesting it represents a meaningful advance for practitioners dealing with imperfect training data.