Top 3 O(N²) Anomaly Detection Algorithms

Algorithms frequently facing scalability issues due to their O(N²) or higher time complexity include Local Outlier Factor (LOF), One-Class SVM (OCSVM), and DBSCAN, which limits their effectiveness on very large datasets.

The top 3

  1. One-Class SVM: Learning Complex Anomaly Boundaries: One-Class SVM excels by learning a tight boundary around normal data in a high-dimensional feature space, even without anomalous examples, achieving 20-45% better detection rates than traditional methods for subtle anomalies.
  2. Local Outlier Factor: Uncovering Density-Based Anomalies: LOF identifies anomalies by comparing a data point's local density to its neighbors, effectively detecting outliers in datasets with varying densities that global methods might miss.
  3. Kernel PCA: Non-linear Data Transformation for Anomalies: Kernel PCA extends traditional PCA to handle non-linear relationships by transforming data into a higher-dimensional space using kernel functions, though its eigenvector extraction can have O(N³) time complexity.

Sources

Open the full topic