Deep SVDD Anomaly Detection
Deep SVDD trains a neural network to map normal observations as close as possible to a fixed centre point in a learned feature space; how far a new observation lands from that centre is its anomaly score. The network has no bias terms so it cannot simply send every input to the centre, and its weights are first pre-trained as the encoder of an autoencoder.
딥 SVDD는 정상 관측값을 학습된 특징 공간의 고정된 중심점에 최대한 가깝게 보내도록 신경망을 학습시키고, 새 관측값이 그 중심에서 얼마나 멀리 떨어지는지를 이상 점수로 씁니다. 모든 입력을 중심으로 보내는 자명한 해를 막기 위해 편향 항이 없는 신경망을 쓰며, 가중치는 먼저 오토인코더의 인코더로 사전 학습합니다.
Which observations look unlike the bulk of the data when the normal pattern is too complex for distance or density rules?
정상 패턴이 거리나 밀도 규칙으로 잡기 어려울 만큼 복잡할 때, 어떤 관측값이 대부분의 자료와 다르게 보일까요?
Each row receives a squared distance to the hypersphere centre; the rows with the largest distances (the top contamination share) are flagged. When a 0/1 anomaly label is supplied, the network can be trained on rows labelled normal only and the AUC is computed on held-out normal rows and the anomalies.
When to use Deep SVDD Anomaly Detection
- Normal behaviour is nonlinear and spread over many numeric features.
- You have a training set known to be (almost) free of anomalies.
- You want a learned representation rather than raw distances.
When to use something else
- The data set is small or you need a simple, transparent score: use Isolation Forest Anomaly Detection
- Anomalies are local density drops among clusters: use Local Outlier Factor Anomaly Detection
- A kernel boundary is enough: use One-Class SVM Anomaly Detection
Assumptions and requirements
- Training rows are mostly normal (otherwise anomalies can be pulled towards the centre)
- Numeric features on comparable scales (they are z-scored)
- Enough rows to train a small network (hundreds or more)
What the analysis reports
- Anomaly score per row and flagged rows
- Training and pre-training loss
- AUC against labels when given
- Histogram of scores
How to report it
A one-class Deep SVDD network ([value] architecture, autoencoder pre-training) trained on [value] normal rows flagged [value] of [value] rows (score above [value]); AUC on held-out data = [value].
Related methods
- Isolation Forest Anomaly Detection
- One-Class SVM Anomaly Detection
- Local Outlier Factor Anomaly Detection
- Extended Isolation Forest
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with reference values computed independently in the test suite.
독립 계산. 시험에서 따로 계산한 참조값 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Deep SVDD Anomaly Detection on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns
- Price
- 900 credits for one analysis up to 10,000 rows (complexity level 5); larger or wider data costs more. Optional methodologist review: 3600 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.