Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Machine learning›One-Class SVM
Machine learningMachine learning

One-Class SVM

One-Class Support Vector Machine (Novelty and Anomaly Detection) · Also known as: OCSVM, one-class support vector machine, novelty SVM, unsupervised SVM

One-class SVM is an unsupervised anomaly and novelty detection algorithm that learns a tight boundary around normal training data in a kernel-induced feature space, flagging new observations that fall outside that boundary as outliers. Introduced by Scholkopf et al. in 1999–2001, it extends the SVM framework to the single-class setting where no labelled anomalies are available.

ScholarGate
  1. Machine learning
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

One-class SVM
Autoencoder Anomaly Dete…Isolation ForestLocal Outlier FactorActive learning Isolatio…Active learning One-clas…Bayesian Autoencoder Ano…Bayesian one-class SVMEnsemble Autoencoder Ano…Ensemble Isolation ForestEnsemble One-class SVM

+18 more

When to use it

Use One-class SVM when labelled anomaly examples are unavailable or very scarce and you want a non-linear boundary around normal behaviour — typical in fraud detection, intrusion detection, industrial fault monitoring, and medical novelty screening with continuous numeric features. It works best on moderately sized datasets (hundreds to tens of thousands of samples) and high-dimensional or complex-shaped normality distributions where linear or distance-based detectors fail. Avoid it when: the training set is very large (n > ~100 000), because the quadratic solve scales poorly; the data are highly categorical; or when fast, interpretable rules are required. In those cases prefer Isolation Forest, Local Outlier Factor, or a threshold-based statistical model.

Strengths & limitations

Strengths
  • Works with no labelled anomaly examples — only normal training data are required.
  • Non-linear kernel (typically RBF) captures complex, curved boundaries of normality that distance-based methods miss.
  • The nu parameter gives direct, interpretable control over the expected outlier fraction.
  • Scales gracefully to high-dimensional feature spaces via the kernel trick.
  • The continuous decision score enables flexible downstream threshold calibration.
  • Proven in high-stakes domains such as intrusion detection, fault monitoring, and medical imaging.
Limitations
  • Quadratic programming solver scales as O(n^2) to O(n^3) in training samples, making it impractical for very large datasets.
  • Sensitive to the choice of kernel and its hyperparameters (e.g., RBF gamma); poor choices produce either too tight or too loose a boundary.
  • Requires clean normal training data — contaminated training sets shift the boundary and inflate false-negative rates.
  • Does not naturally produce calibrated probability estimates; the decision score is not a probability.
  • Interpretability is limited; explaining why a specific point is flagged is difficult without additional post-hoc tools.

Frequently asked

What is the difference between One-class SVM and Isolation Forest for anomaly detection?

One-class SVM learns a kernel-based boundary around normal data and performs well on high-dimensional, complex-shaped distributions, but scales poorly with dataset size. Isolation Forest uses random partitioning and is much faster on large datasets but is generally less sensitive to subtle, non-linear anomaly patterns.

How should I choose the nu parameter?

Set nu to the fraction of training observations you expect to be contaminated or atypical. If you believe fewer than 5% of your training samples are outliers, start with nu=0.05. Use a held-out set of known normal examples to evaluate boundary tightness rather than relying on grid search alone.

What kernel should I use?

The RBF (Gaussian) kernel is the standard starting point and handles most continuous numeric datasets well. The gamma hyperparameter of the RBF kernel controls the radius of influence; cross-validate over a log-spaced grid. Linear kernels are faster but restrict the boundary to a hyperplane.

Can One-class SVM handle categorical features?

Not directly. Categorical variables must be encoded numerically (e.g., binary or ordinal encoding) before use, which can introduce distance-metric distortions. For datasets dominated by categorical features, consider tree-based detectors like Isolation Forest instead.

My training set may contain some anomalies. Does that break the model?

Contaminated training data shifts the boundary outward and may cause the model to learn anomalous patterns as normal. One-class SVM is more sensitive to this than Isolation Forest. If contamination is suspected, consider using SVDD with a higher nu or cleaning the training set with a preliminary pass of a fast detector.

Sources

  1. Scholkopf, B., Platt, J. C., Shawe-Taylor, J., Smola, A. J., & Williamson, R. C. (2001). Estimating the support of a high-dimensional distribution. Neural Computation, 13(7), 1443–1471. DOI: 10.1162/089976601750264965 ↗
  2. Tax, D. M. J., & Duin, R. P. W. (2004). Support vector data description. Machine Learning, 54(1), 45–66. DOI: 10.1023/B:MACH.0000008084.60811.49 ↗

How to cite this page

ScholarGate. (2026, June 3). One-Class Support Vector Machine (Novelty and Anomaly Detection). ScholarGate. https://scholargate.app/en/machine-learning/one-class-svm

Related methods

Autoencoder Anomaly DetectionIsolation ForestLocal Outlier Factor

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Autoencoder Anomaly DetectionMachine learning↔ compare
  • Isolation ForestMachine learning↔ compare
  • Local Outlier FactorMachine learning↔ compare
Compare side by side →

Referenced by

Active learning Isolation forestActive learning One-class SVMAutoencoder Anomaly DetectionBayesian Autoencoder Anomaly DetectionBayesian one-class SVMEnsemble Autoencoder Anomaly DetectionEnsemble Isolation ForestEnsemble One-class SVMExplainable Autoencoder Anomaly DetectionExplainable Isolation ForestExplainable One-Class SVMLocal Outlier FactorOnline Autoencoder Anomaly DetectionOnline Isolation ForestOnline One-class SVMRegularized Gaussian Mixture ModelRobust Autoencoder anomaly detectionRobust Gaussian Mixture ModelRobust Isolation forestRobust One-class SVMRobust Support Vector MachineSelf-supervised Autoencoder Anomaly DetectionSelf-supervised Isolation ForestSelf-supervised One-class SVMSemi-supervised Autoencoder Anomaly DetectionSemi-supervised Isolation ForestSemi-supervised One-class SVM

Similar methods

Robust One-class SVMOnline One-class SVMBayesian one-class SVMExplainable One-Class SVMEnsemble One-class SVMSemi-supervised One-class SVMActive learning One-class SVMSelf-supervised One-class SVM

Related reference concepts

Support Vector ClassificationSupport Vector Machines and Kernel MethodsClassification and Discriminant AnalysisQuadratic Discriminant AnalysisSupervised LearningVC Dimension and Capacity

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — One-class SVM (One-Class Support Vector Machine (Novelty and Anomaly Detection)). Retrieved 2026-07-21 from https://scholargate.app/en/machine-learning/one-class-svm · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Scholkopf, B., Platt, J. C., Smola, A. J., Williamson, R. C.
Year
1999–2001
Type
Anomaly / novelty detection (unsupervised)
DataType
Continuous numeric features; high-dimensional vectors
Subfamily
Machine learning
Related methods
Autoencoder Anomaly DetectionIsolation ForestLocal Outlier Factor
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account