Inferensys

Glossary

Deep SAD

Deep Semi-supervised Anomaly Detection (Deep SAD) is a neural network method that extends Deep SVDD by leveraging a small amount of labeled anomaly data to refine the hypersphere boundary for better separation.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
SEMI-SUPERVISED ANOMALY DETECTION

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.

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.

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.

SEMI-SUPERVISED ANOMALY DETECTION

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.

01

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.

02

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.

03

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.

04

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.

05

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.

06

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.

DEEP SAD EXPLAINED

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.

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.