A Linear Programming Approach to Novelty Detection

Colin Campbell, Kristin P. BennettNeurIPS 2000

Novelty detection—the ability to identify anomalous data points that deviate from a known training set—is a cornerstone of machine learning. It is critical for applications ranging from catching failing machinery before it breaks to flagging abnormal medical scans. However, a major challenge in this domain is that we often only have "normal" data available for training.

Traditional methods, such as the One-Class Support Vector Machine (SVM), attempt to estimate the support of the data distribution. Unfortunately, these methods typically rely on Quadratic Programming (QP), which becomes computationally expensive as datasets grow. Furthermore, existing models often use the "origin" of the feature space as a proxy for where abnormal data might lie—an arbitrary and potentially misleading prior.

This paper introduces a streamlined approach that swaps complex QP for more efficient Linear Programming (LP), offering a faster and more scalable kernel-based method for novelty detection.

Rethinking the Boundary: Attraction vs. Repulsion

The authors propose a fundamental shift in how the boundary of normal behavior is defined. Unlike previous methods that "repel" a hyperplane away from the origin, this algorithm "attracts" the hyperplane toward the center of the data distribution. It achieves this by minimizing the mean value of the decision function across all training points while ensuring the function remains positive for those points.

By minimizing the sum of the function outputs—subject to constraints that keep the weights positive and normalized—the problem is transformed into a linear optimization task. This move from QP to LP is significant because LP solvers are generally more robust and can handle much larger problems more quickly.

Soft Margins and the Kernel Trick

Real-world data is rarely perfect; it often contains noise or outliers. To handle this, the authors introduce "slack variables" ($\xi$) to create soft margins. This allows the model to ignore a few anomalous data points in the training set to find a tighter, more representative boundary for the bulk of the "normal" data.

Soft margin boundary ignoring outliers

Like standard SVMs, this method utilizes the "kernel trick"—specifically Radial Basis Function (RBF) kernels—to map data into a high-dimensional feature space. In this expanded space, complex, non-linear boundaries from the original input space can be represented as simple hyperplanes.

The Power of $\sigma$ and Ensemble Confidence

A critical component of this approach is the kernel parameter $\sigma$ (the width of the RBF), which acts as a sensitivity dial. A small $\sigma$ creates a very tight, jagged boundary that closely hugs the data (high sensitivity), while a large $\sigma$ creates a smooth, loose boundary (low sensitivity).

Tight, jagged boundaries formed around data clusters

Because performance is highly dependent on this parameter, the authors suggest an ensemble approach: if a model is run with different $\sigma$ values, points that are consistently flagged as "abnormal" across the entire range can be identified with much higher confidence.

Key Results and Real-World Applications

The paper evaluates the algorithm on artificial 2D clusters as well as real-world datasets, demonstrating impressive speed and accuracy:

  • Computational Speed: For a condition monitoring task with 913 training examples, the model was constructed in just 4 seconds on a Silicon Graphics Origin 200, highlighting the efficiency of the LP approach.
  • Medical Diagnostics: On the Biomed dataset (194 blood sample observations used to detect a rare genetic disease), the model correctly identified 25 out of 27 normal test cases and 57 out of 67 abnormal cases at an optimal $\sigma$ setting.
  • Mechanical Fault Detection: Using vibration signals from healthy and faulty ball bearings, the system achieved 98.7% accuracy on normal instances. It was highly effective at catching "Type 1" faults (100% detection) and showed statistically significant detection rates for subtle, unseen wear-and-tear faults (Types 3 and 4) that it wasn't explicitly tuned to find.

Limitations and Future Work

While highly efficient, the method does have limitations. The reliance on the kernel parameter $\sigma$ means that automated model selection remains an area for future research. Additionally, while RBF kernels produce closed boundaries (ideal for novelty detection), other kernel choices might result in open boundaries that fail to fully enclose the data. Finally, while the authors mention "column generation" as a technique to handle massive datasets that exceed memory limits, detailed implementation for scaling up is deferred to future work.

Summary updated

BibTeX
@inproceedings{campbell2000linear,
  author = {Colin Campbell and Kristin P. Bennett},
  title = {{A Linear Programming Approach to Novelty Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2000},
}
Figure