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›Self-supervised One-class SVM
Machine learningMachine learning

Self-supervised One-class SVM

Self-supervised One-class Support Vector Machine · Also known as: SS-OCSVM, Self-supervised SVDD, Self-supervised novelty detection, Pretext-task OC-SVM

Self-supervised One-class SVM combines pretext-task-based representation learning with One-class SVM to detect anomalies and novelties without requiring labeled anomaly examples. The model first learns expressive feature embeddings from normal data alone, then fits an OC-SVM boundary in the learned feature space to flag out-of-distribution samples.

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.

Self-supervised One-class SVM
Autoencoder Anomaly Dete…Gaussian ProcessIsolation ForestOne-class SVMSelf-supervised LearningSemi-supervised One-clas…

When to use it

Choose Self-supervised One-class SVM when you have access to normal-only or predominantly normal unlabeled data, labeled anomalies are rare or unavailable, and detecting deviations from a known normal distribution is the primary goal — common in fraud detection, industrial fault detection, medical image screening, and network intrusion detection. It is particularly valuable when raw features are high-dimensional or unstructured (images, time-series, text) where classic OC-SVM would fail. Do not use it when you have a balanced labeled dataset with many anomaly examples (binary or multiclass classification is more appropriate), when data volume is too small to train a meaningful encoder (hundreds of samples), or when model interpretability and explicit feature coefficients are required by stakeholders.

Strengths & limitations

Strengths
  • Operates without any labeled anomaly examples, making it practical in realistic one-class scenarios.
  • Self-supervised pretext tasks extract rich, task-relevant features that standard OC-SVM cannot access from raw inputs.
  • Flexible architecture: the encoder can be tailored to any data modality (images, tabular, sequences).
  • The OC-SVM component provides a principled probabilistic bound on the fraction of training outliers via the nu hyperparameter.
  • Can leverage large volumes of unlabeled normal data to improve embedding quality without annotation cost.
Limitations
  • Requires enough normal training data to train a meaningful encoder; performance degrades sharply with very small datasets.
  • End-to-end training of the encoder and OC-SVM jointly is non-trivial and may require careful optimization strategies.
  • Selection of pretext tasks is domain-dependent and can significantly affect anomaly detection quality.
  • Less interpretable than classical OC-SVM on raw features; the learned embedding space is typically opaque.

Frequently asked

What pretext tasks work best for tabular data?

For tabular data, effective pretext tasks include feature masking and reconstruction, contrastive learning with feature corruptions (e.g., SCARF), and predicting permuted feature subsets. Contrastive approaches generally outperform reconstruction tasks on structured tabular inputs.

How does this differ from a standard Autoencoder anomaly detection?

Autoencoder anomaly detection relies on reconstruction error as the anomaly score, which can fail when anomalies are also easy to reconstruct. Self-supervised OC-SVM instead learns discriminative embeddings and uses a margin-based boundary, which can be more robust to reconstruction-insensitive anomalies.

Can I use a pretrained model (e.g., ImageNet encoder) instead of training the pretext task from scratch?

Yes. Using a pretrained encoder and fitting OC-SVM in its embedding space is a common and effective shortcut when labeled anomalies are absent and the domain is close to the pretraining data distribution. Domain shift between the pretraining data and target domain can degrade results.

How do I choose the nu hyperparameter for OC-SVM?

Nu is an upper bound on the fraction of training points treated as outliers and a lower bound on the fraction of support vectors. If you expect the training set to be perfectly clean, use a small nu (0.01–0.05). If some contamination is expected, increase nu accordingly. Validate on a small held-out set of known anomalies if possible.

Is a GPU required?

GPU is highly recommended for training the self-supervised encoder on image or sequence data, but for moderate-sized tabular datasets a CPU-based encoder followed by scikit-learn OC-SVM is often sufficient.

Sources

  1. Golan, I. & El-Yaniv, R. (2018). Deep One-Class Classification. Proceedings of the 35th International Conference on Machine Learning (ICML), PMLR 80, 1747–1756. link ↗
  2. Ruff, L., Vandermeulen, R., Goernitz, N., Deecke, L., Siddiqui, S. A., Binder, A., Muller, E. & Kloft, M. (2018). Deep One-Class Classification. Proceedings of the 35th International Conference on Machine Learning (ICML), PMLR 80, 4393–4402. link ↗

How to cite this page

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

Related methods

Autoencoder Anomaly DetectionGaussian ProcessIsolation ForestOne-class SVMSelf-supervised LearningSemi-supervised 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
  • Gaussian ProcessMachine learning↔ compare
  • Isolation ForestMachine learning↔ compare
  • One-class SVMMachine learning↔ compare
  • Self-supervised LearningMachine learning↔ compare
  • Semi-supervised One-class SVMMachine learning↔ compare
Compare side by side →

Similar methods

Self-supervised Autoencoder Anomaly DetectionSelf-supervised Isolation ForestSemi-supervised One-class SVMSelf-supervised Support Vector MachineSemi-supervised Autoencoder Anomaly DetectionRobust One-class SVMOne-class SVMSelf-supervised Variational Autoencoder

Related reference concepts

Self-Supervised and Representation LearningUnsupervised LearningSupport Vector ClassificationSupervised LearningSupport Vector Machines and Kernel MethodsClassification Algorithms

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

ScholarGate — Self-supervised One-class SVM (Self-supervised One-class Support Vector Machine). Retrieved 2026-07-21 from https://scholargate.app/en/machine-learning/self-supervised-one-class-svm · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Golan & El-Yaniv; Ruff et al.
Year
2018
Type
Self-supervised anomaly/novelty detection
DataType
Unlabeled or normal-only tabular, image, or sequential data
Subfamily
Machine learning
Related methods
Autoencoder Anomaly DetectionGaussian ProcessIsolation ForestOne-class SVMSelf-supervised LearningSemi-supervised 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