Deep SAD is a neural network method that extends Deep SVDD by incorporating a limited set of labeled anomalies during training. While Deep SVDD learns a minimal-volume hypersphere around unlabeled normal data, Deep SAD uses known anomalies to explicitly repel their representations from the hypersphere center, creating a more discriminative boundary.
Glossary
Deep SAD

What is Deep SAD?
Deep Semi-supervised Anomaly Detection (Deep SAD) extends one-class deep learning by leveraging a small amount of labeled anomaly data to refine the decision boundary, achieving superior separation between known normal and abnormal classes.
The objective function combines an unsupervised term that compresses normal data with a supervised term that pushes anomalous embeddings away. This semi-supervised approach significantly improves AUROC performance over purely unsupervised methods, making it highly effective for open set emitter recognition where a small sample of rogue transmitters is available to calibrate rejection thresholds.
Key Features of Deep SAD
Deep Semi-supervised Anomaly Detection extends the Deep SVDD framework by incorporating a small amount of labeled anomaly data to refine the decision boundary, resulting in a tighter hypersphere and improved separation between normal and anomalous emitter signatures.
Hypersphere Boundary Refinement
Unlike unsupervised Deep SVDD, Deep SAD leverages labeled anomalies to explicitly repel known outliers from the center c. The objective function combines two terms: minimizing the distance of normal samples to c (attraction) while maximizing the distance of labeled anomalies beyond a margin (repulsion). This dual-force mechanism creates a tighter, more discriminative boundary that reduces open space risk in the feature embedding.
Semi-Supervised Loss Formulation
The Deep SAD loss function is a weighted combination of an unsupervised SVDD loss for unlabeled data and a supervised anomaly repulsion loss for labeled outliers. The hyperparameter η (eta) controls the influence of labeled anomalies, balancing the model's sensitivity to known attack patterns against its ability to generalize to unseen anomaly types. This formulation prevents the model from overfitting to the few labeled examples while still benefiting from their guidance.
Inverse Distance Anomaly Scoring
Anomaly scores are computed as the Euclidean distance from a sample's learned representation φ(x; W) to the hypersphere center c. Samples mapping inside the radius r are considered normal, while those outside are flagged as anomalous. The score is continuous, allowing operators to set application-specific thresholds for emitter rejection. This contrasts with SoftMax-based open set methods by providing a direct geometric interpretation of novelty.
Leveraging Few-Shot Anomaly Knowledge
Deep SAD is particularly effective in few-shot anomaly scenarios where only a handful of confirmed rogue emitter signatures are available. Even 1-5 labeled anomalies can significantly improve AUROC over purely unsupervised Deep SVDD. This makes it ideal for RF fingerprinting applications where collecting large datasets of adversary transmissions is impractical, but a small library of known threats exists from prior spectrum surveillance operations.
Autoencoder Network Initialization
To avoid hypersphere collapse—where the network trivially maps all inputs to a constant—Deep SAD networks are pretrained as autoencoders. The encoder weights are then transferred to the Deep SAD model, and the center c is initialized as the mean of the encoded representations of the training data. This ensures the network learns a meaningful, non-degenerate feature embedding before the anomaly detection fine-tuning phase begins.
Robustness to Contaminated Data
Deep SAD demonstrates superior robustness when the unlabeled training set contains unknown contamination—normal data inadvertently mixed with unidentified anomalies. The explicit repulsion signal from the few labeled anomalies acts as a regularizer, preventing the model from learning a hypersphere that inadvertently encloses hidden outliers. This property is critical for real-world emitter recognition where perfectly clean training sets are rare.
Frequently Asked Questions
Clear answers to common questions about Deep Semi-supervised Anomaly Detection, its mechanisms, and its role in open set emitter recognition.
Deep Semi-supervised Anomaly Detection (Deep SAD) is a neural network method that extends Deep SVDD by incorporating a small set of labeled anomalies to refine the decision boundary. The core mechanism works by training an encoder to map normal data tightly around a center point c in a minimal-volume hypersphere, while simultaneously forcing the few known anomalous examples to be mapped far from this center. This is achieved through a modified loss function that combines an unsupervised term—penalizing the distance of normal points from c—with a supervised contrastive term that explicitly pushes labeled anomalies away. By leveraging this limited anomaly knowledge, Deep SAD learns a more discriminative and compact representation of normality, resulting in significantly better separation between known normal behavior and both known and previously unseen anomalies compared to purely unsupervised methods.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Deep SAD builds upon a rich foundation of anomaly detection and representation learning techniques. These related concepts form the theoretical and practical backbone of semi-supervised hypersphere classification.
Deep SVDD
The direct unsupervised predecessor to Deep SAD. Deep SVDD trains a neural network to map all normal data into a minimal-volume hypersphere centered at a fixed point. Anomalies are identified as points falling outside this boundary. Deep SAD extends this by incorporating labeled anomalies to explicitly push them away from the center, creating a more discriminative boundary.
One-Class SVM
A classical kernel-based method that learns a decision boundary tightly enveloping the normal training data in a high-dimensional feature space. Unlike Deep SAD's neural network approach, One-Class SVM relies on the kernel trick to separate inliers from outliers. It serves as the traditional baseline that deep one-class methods aim to outperform on complex, high-dimensional data like images and RF signals.
Contrastive Learning
A self-supervised representation learning framework that Deep SAD implicitly leverages. Contrastive methods pull positive pairs (semantically similar samples) together and push negative pairs apart in embedding space. Deep SAD's loss function performs a similar operation: it attracts normal samples to the hypersphere center while repelling known anomalies, creating a well-separated feature space for open set rejection.
Out-of-Distribution Detection
The broader task of identifying inputs that differ fundamentally from the training distribution. Deep SAD is one architectural approach to this problem, using the distance to the hypersphere center as an anomaly score. Other OOD methods include:
- Energy-Based Models: Assign low energy to in-distribution data
- Mahalanobis Distance: Measure distance accounting for feature covariance
- Monte Carlo Dropout: Estimate epistemic uncertainty through stochastic inference
Open Space Risk
A formal concept quantifying the danger of labeling unknown samples as known classes. Deep SAD directly minimizes open space risk by defining a compact, closed boundary around normal data. The hypersphere radius creates a finite volume of acceptance; anything outside is rejected. This contrasts with SoftMax classifiers that partition the entire feature space, leaving unbounded regions where unknowns can be confidently misclassified.
Feature Embedding
The low-dimensional vector representation learned by the neural network backbone of Deep SAD. The quality of this embedding is critical: normal samples must cluster tightly around the center, while anomalies must be pushed to the periphery. Techniques like angular margin losses (ArcFace, CosFace) can be combined with Deep SAD to enforce maximum inter-class separation in this learned space.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us