Inferensys

Glossary

One-Class SVM

A support vector machine algorithm trained only on 'normal' data to learn a decision boundary that encapsulates the majority of the data, classifying any point outside this boundary as an anomaly.
Cinematic overhead of a WeWork creative suite room with multiple curved monitors showing AI decision dashboards, executives in casual attire reviewing data, dramatic pendant lighting.
NOVELTY DETECTION ALGORITHM

What is One-Class SVM?

A support vector machine variant trained exclusively on 'normal' data to learn a tight decision boundary, classifying any point outside this boundary as an anomaly or novelty.

A One-Class SVM is an unsupervised learning algorithm that learns a decision function for novelty detection by fitting a hyper-sphere or hyper-plane around the majority of the training data in a high-dimensional feature space. Unlike standard binary SVMs, it requires only a single class of 'normal' examples during training, making it ideal for scenarios where anomalies are rare, costly to obtain, or undefined. The algorithm's core objective is to separate the normal data distribution from the origin, maximizing the margin between the origin and the learned boundary.

The model is governed by the hyperparameter ν (nu), which sets an upper bound on the fraction of training errors and a lower bound on the fraction of support vectors. By applying a kernel trick—such as the Radial Basis Function (RBF) kernel—the One-Class SVM can capture complex, non-linear boundaries in the original input space. In network telemetry, it is deployed to model baseline KPI behavior, flagging subtle deviations in metrics like latency or throughput that signal a contextual anomaly without requiring a pre-labeled catalog of failure modes.

CORE MECHANISMS

Key Characteristics

One-Class SVM learns a decision boundary around the 'normal' class, treating everything outside as an anomaly. This makes it uniquely suited for scenarios where anomalies are rare, undefined, or too costly to simulate.

01

The Core Principle: Origin Separation

The algorithm maps input data into a high-dimensional feature space and finds a hyperplane that maximally separates the training data from the origin. It treats the origin as the only representative of the anomaly class. The optimization objective is to find a small region in feature space that contains most of the training data, controlled by the nu (ν) parameter, which sets an upper bound on the fraction of training errors and a lower bound on the fraction of support vectors.

02

The Kernel Trick for Non-Linear Boundaries

Real-world network telemetry is rarely linearly separable. One-Class SVM uses kernel functions to implicitly project data into a higher-dimensional space without computing the coordinates. The Radial Basis Function (RBF) kernel is the most common choice, as it can model tight, non-convex boundaries around complex normal data distributions. The gamma (γ) parameter defines how far the influence of a single training example reaches; a low gamma creates a smooth, generalized boundary, while a high gamma risks overfitting to noise.

03

Training on Pristine Data Only

A critical operational requirement is that the training dataset must be clean and representative of normal behavior. Any anomalies present in the training set will be learned as 'normal,' permanently blinding the model to that type of fault. This contrasts with supervised methods and makes One-Class SVM ideal for novelty detection in controlled environments like a newly commissioned 5G cell site, where a baseline of fault-free performance counters can be established before anomalies appear.

04

Decision Function and Anomaly Scoring

During inference, the model computes a signed distance from each new data point to the separating hyperplane. A negative score indicates the point is outside the learned boundary and is flagged as an anomaly. The magnitude of the score can serve as a continuous anomaly severity metric, allowing operations teams to prioritize alerts. This is more informative than a simple binary label, enabling dynamic thresholding based on operational context.

05

Sensitivity Control via Nu Parameter

The nu (ν) parameter is the primary tuning knob for model sensitivity. It accepts values between 0 and 1. A lower ν (e.g., 0.01) forces a tighter boundary, accepting fewer training points as normal and potentially increasing false positives. A higher ν (e.g., 0.1) allows more training points inside the boundary, increasing the model's tolerance to variance but risking false negatives. This parameter directly maps to the expected fraction of outliers in the training set.

06

Computational Complexity and Scalability

The standard One-Class SVM has a training time complexity between O(n²) and O(n³), where n is the number of training samples, making it challenging for massive, high-velocity telemetry streams. However, the model is defined only by its support vectors—the few training points that lie on or outside the margin. Inference is therefore very fast, scaling linearly with the number of support vectors. For large-scale RAN deployments, linear kernel approximations or incremental learning variants are often preferred.

ONE-CLASS SVM INSIGHTS

Frequently Asked Questions

Explore the core mechanics and practical applications of the One-Class Support Vector Machine, a foundational algorithm for unsupervised anomaly and novelty detection in high-dimensional network telemetry.

A One-Class Support Vector Machine (OC-SVM) is an unsupervised learning algorithm trained exclusively on 'normal' data to learn a decision boundary that encapsulates the majority of the data points in a high-dimensional feature space. Unlike traditional binary SVMs that separate two classes, the OC-SVM's objective is to separate the entire training set from the origin. It achieves this by finding a maximal-margin hyperplane that maximizes the distance between the origin and the projected data. The algorithm maps input data into a feature space via a kernel function (typically a Radial Basis Function (RBF) kernel) and then constructs a boundary such that most of the training points lie on one side. A new data point is classified as an anomaly if it falls on the origin side of this hyperplane, meaning it lies outside the learned 'normal' region. The key hyperparameter nu (ν) controls the upper bound on the fraction of training errors and the lower bound on the fraction of support vectors, effectively setting the expected outlier ratio.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.