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›Bayesian One-Class SVM
Machine learningMachine learning

Bayesian One-Class SVM

Bayesian One-Class Support Vector Machine · Also known as: Bayesian OCSVM, Bayesian one-class classifier, probabilistic one-class SVM, Bayes-OCSVM

Bayesian one-class SVM combines the classical one-class support vector machine — which learns a tight boundary around normal training examples — with Bayesian inference to produce calibrated probability estimates of anomaly, rather than only a binary flag. This allows uncertainty quantification over the novelty decision, making the approach more suitable when downstream actions depend on how confident the model is that a new observation is anomalous.

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.

Bayesian one-class SVM
Autoencoder Anomaly Dete…Bayesian Gaussian ProcessGaussian ProcessIsolation ForestOne-class SVMRobust One-class SVM

When to use it

Use Bayesian one-class SVM when you have labeled data only for the normal class (one-class setting: fraud, fault detection, medical screening) and you need not just an anomaly flag but a calibrated probability score to prioritise cases or to set decision thresholds based on acceptable false-positive rates. It is appropriate when sample size is moderate (roughly 50–10,000 normal examples) and the feature space is low-to-medium dimensional. Avoid it when you need full transparency of decision rules for regulatory reporting, when compute budget is very tight (Bayesian inference adds cost over plain OCSVM), when data are extremely high-dimensional without prior feature reduction, or when a large amount of labeled anomaly examples is available (making a two-class classifier more appropriate).

Strengths & limitations

Strengths
  • Produces calibrated probability scores rather than hard binary flags, enabling risk-ranked outputs.
  • Quantifies uncertainty over the anomaly decision, which is valuable when evidence is borderline.
  • The Bayesian prior acts as a regulariser, reducing sensitivity to the choice of nu and kernel hyperparameters compared with plain OCSVM.
  • Automatic relevance determination in the sparse Bayesian formulation prunes uninformative support vectors, yielding leaner models.
  • Works well in one-class settings where anomaly examples are absent or extremely rare during training.
Limitations
  • Bayesian inference adds substantial computational overhead over standard OCSVM, especially for large training sets.
  • Kernel choice and the nu hyperparameter still require tuning; poor choices lead to over- or under-inclusive boundaries regardless of the Bayesian wrapper.
  • Scales poorly to very high-dimensional raw data without prior dimensionality reduction.
  • Posterior calibration quality depends on the adequacy of the chosen prior; a misspecified prior can produce overconfident or underconfident probabilities.

Frequently asked

How does Bayesian one-class SVM differ from plain one-class SVM?

Plain OCSVM returns a signed distance from the boundary and a binary inlier/outlier flag. The Bayesian version places a prior over the model parameters and computes a posterior, yielding a probability score for each observation. This probability enables threshold selection based on acceptable false-positive rates and communicates uncertainty about borderline cases.

What prior should I use?

A zero-mean Gaussian prior over the weight vector (equivalent to L2 regularisation) is the standard starting point and corresponds directly to the standard SVM margin objective. Sparse priors such as the automatic relevance determination prior used in the relevance vector machine additionally prune irrelevant features and tend to produce sparser, faster models.

How do I choose the nu parameter?

Nu sets the upper bound on the fraction of training points treated as outliers and the fraction that become support vectors. A common heuristic is to set nu equal to an estimate of the contamination rate in the training data. Cross-validation on a clean normal hold-out set using AUC or average precision as the scoring metric is recommended for rigorous selection.

Can I use this method when I have some labelled anomaly examples?

If labelled anomaly examples are available, a two-class classifier (e.g., logistic regression, gradient boosting, or standard SVM with both classes) will almost always outperform a one-class method. Bayesian one-class SVM is most valuable when anomaly labels are absent or too few to define a second class reliably.

What kernel works best?

The radial basis function (RBF) kernel is the most common default because it produces compact hyperspherical regions in feature space. Polynomial kernels suit data with known polynomial interactions. Always search the bandwidth (gamma) parameter alongside nu — a grid or Bayesian optimisation search over both jointly is recommended.

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. Tipping, M. E. (2001). Sparse Bayesian learning and the relevance vector machine. Journal of Machine Learning Research, 1, 211–244. link ↗

How to cite this page

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

Related methods

Autoencoder Anomaly DetectionBayesian Gaussian ProcessGaussian ProcessIsolation ForestOne-class SVMRobust One-class SVM

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
  • Bayesian Gaussian ProcessMachine learning↔ compare
  • Gaussian ProcessMachine learning↔ compare
  • Isolation ForestMachine learning↔ compare
  • One-class SVMMachine learning↔ compare
  • Robust One-class SVMMachine learning↔ compare
Compare side by side →

Similar methods

One-class SVMRobust One-class SVMOnline One-class SVMBayesian Support Vector MachineEnsemble One-class SVMSemi-supervised One-class SVMActive learning One-class SVMExplainable One-Class SVM

Related reference concepts

Support Vector ClassificationSupport Vector Machines and Kernel MethodsGaussian Process ModelsQuadratic Discriminant AnalysisClassification and Discriminant AnalysisClassification Algorithms

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

ScholarGate — Bayesian one-class SVM (Bayesian One-Class Support Vector Machine). Retrieved 2026-07-21 from https://scholargate.app/en/machine-learning/bayesian-one-class-svm · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Scholkopf et al. (base OCSVM); Bayesian extension via Tipping and others
Year
2001–2010
Type
Probabilistic anomaly detection
DataType
Continuous or mixed features; unlabeled or single-class data
Subfamily
Machine learning
Related methods
Autoencoder Anomaly DetectionBayesian Gaussian ProcessGaussian ProcessIsolation ForestOne-class SVMRobust One-class SVM
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