Calibration of One-Class SVM for MV set estimation

Albert Thomas, Vincent Feuillard, Alexandre Gramfort

Introduction: The Challenge of MV Set Estimation

Anomaly detection often relies on identifying Minimum Volume (MV) sets—the smallest regions in a feature space that contain a specific probability mass (e.g., 95%) of the data distribution. Points falling outside these regions are classified as anomalies. While the One-Class Support Vector Machine (OCSVM) is a standard tool for this task, it suffers from significant hyperparameter sensitivity and finite-sample bias. Specifically, the parameter $\nu$, which theoretically controls the fraction of outliers, often fails to accurately reflect the desired probability mass when data is limited.

Estimation of Minimum Volume (MV) sets for a bimodal distribution using the calibrated OCSVM.

Proposed Methodology

The authors introduce a three-step framework to decouple the learning of the data distribution's shape from the setting of the anomaly threshold:

  1. Calibration via Splitting: The OCSVM is trained on a training set to learn the density shape. A separate hold-out set is then used to determine the exact threshold (offset) that achieves the target probability mass $\alpha$ via a bisection search.
  2. Aggregation: To mitigate variance from data splitting, the process is repeated multiple times using a bootstrap-like approach, and the resulting decision functions are averaged.
  3. Automatic Bandwidth Selection: The kernel bandwidth $\sigma$ is tuned by minimizing the volume of the estimated sets across different masses, effectively automating hyperparameter selection using the Mass Volume (MV) curve.

Evaluation on Synthetic and Real-World Data

The authors evaluated their approach on several benchmarks, including synthetic bimodal Gaussian mixtures to test multi-modal shape capture and robustness to noise. They also applied the method to the Two Moons dataset for non-linear visualization and the Boston Housing dataset to demonstrate performance on real-world socio-economic data.

Key Results and Performance

The proposed "Calibrated OCSVM with aggregation" demonstrates significant improvements over the standard OCSVM. In simulations using bimodal Gaussian mixtures, the method consistently achieved lower "symmetric difference" error—the measure of mismatch between the estimated and true MV sets.

Symmetric difference error vs. kernel bandwidth σ for standard OCSVM and the proposed calibrated method.

Beyond synthetic tests, the method proved robust to noise. When 5% random outliers were introduced, the calibrated approach maintained high accuracy in identifying the "normal" region. Furthermore, the method scales better with dimensionality than traditional density-based "plug-in" estimators, which often fail as the number of features increases.

Conclusion and Future Directions

By decoupling shape learning from thresholding, this calibration strategy addresses the core weaknesses of OCSVMs in unsupervised settings. The resulting models are sparse, fast for real-time inference, and produce consistent "nested" sets as the sensitivity level $\alpha$ changes. The primary remaining challenge is the computational cost of volume estimation in high-dimensional spaces, which currently relies on Monte Carlo integration. Future research into more efficient sampling techniques could further enhance the scalability of this robust anomaly detection framework.

Summary updated

BibTeX
@inproceedings{thomas2015calibration,
  author = {Albert Thomas and Vincent Feuillard and Alexandre Gramfort},
  title = {{Calibration of One-Class SVM for MV set estimation}},
  booktitle = {DSAA},
  year = {2015},
  doi = {10.1109/dsaa.2015.7344789},
}
Figure