Estimating the Contamination Factor's Distribution in Unsupervised Anomaly Detection
Lorenzo Perini, Paul-Christian Bürkner, Arto Klami
Abstract
Anomaly detection methods identify examples that do not follow the expected behaviour, typically in an unsupervised fashion, by assigning real-valued anomaly scores to the examples based on various heuristics. These scores need to be transformed into actual predictions by thresholding, so that the proportion of examples marked as anomalies equals the expected proportion of anomalies, called contamination factor. Unfortunately, there are no good methods for estimating the contamination factor itself. We address this need from a Bayesian perspective, introducing a method for estimating the posterior distribution of the contamination factor of a given unlabeled dataset. We leverage on outputs of several anomaly detectors as a representation that already captures the basic notion of anomalousness and estimate the contamination using a specific mixture formulation. Empirically on 22 datasets, we show that the estimated distribution is well-calibrated and that setting the threshold using the posterior mean improves the anomaly detectors' performance over several alternative methods. All code is publicly available for full reproducibility.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
6 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- An Evidence-Based Post-Hoc Adjustment Framework for Anomaly Detection Under Data Contamination cites Transferring the Contamination Factor between Anomaly Detection Domains by Shape Similarity
- Unsupervised Anomaly Detection with Rejection cites Transferring the Contamination Factor between Anomaly Detection Domains by Shape Similarity
- Deep Weakly-supervised Anomaly Detection cites Transferring the Contamination Factor between Anomaly Detection Domains by Shape Similarity
- Learning from Positive and Unlabeled Multi-Instance Bags in Anomaly Detection cites Transferring the Contamination Factor between Anomaly Detection Domains by Shape Similarity
Cited by top-tier papers6
- Deep Weakly-supervised Anomaly DetectionGuansong Pang, Chunhua Shen, Huidong Jin, Anton van den HengelKDD 2023 · 100 citations
- Unsupervised Anomaly Detection with RejectionLorenzo Perini, Jesse DavisNeurIPS 2023 · 17 citations
- Learning from Positive and Unlabeled Multi-Instance Bags in Anomaly DetectionLorenzo Perini, Vincent Vercruyssen, Jesse DavisKDD 2023 · 13 citations
- An Evidence-Based Post-Hoc Adjustment Framework for Anomaly Detection Under Data ContaminationSukanya Patra, Souhaib Ben TaiebNeurIPS 2025 · 4 citations
- FlexUOD: The Answer to Real-world Unsupervised Image Outlier DetectionZhonghang Liu, Kun Zhou, Changshuo Wang, Wen-Yan Lin et al.CVPR 2025
Builds on2
- Fast and Exact Outlier Detection in Metric Spaces: A Proximity Graph-based ApproachDaichi Amagata, Makoto Onizuka, Takahiro HaraSIGMOD 2021 · 22 citations
- Transferring the Contamination Factor between Anomaly Detection Domains by Shape SimilarityLorenzo Perini, Vincent Vercruyssen, Jesse DavisAAAI 2022 · 20 citations
Related papers
- Anomaly Detection with Score Distribution DiscriminationMinqi Jiang, Songqiao Han, Hailiang HuangKDD 2023 · 17 citations
- Contamination-Resilient Anomaly Detection via Adversarial Learning on Partially-Observed Normal and Anomalous DataWenxi Lv, Qinliang Su, Hai Wan, Hongteng Xu et al.ICML 2024 · 2 citations
- MULDE: Multiscale Log-Density Estimation via Denoising Score Matching for Video Anomaly DetectionJakub Micorek, Horst Possegger, Dominik Narnhofer, Horst Bischof et al.CVPR 2024 · 21 citations
- AutoUAD: Hyper-parameter Optimization for Unsupervised Anomaly DetectionWei Dai, Jicong FanICLR 2025
- Beyond Clean Training Data: A Versatile and Model-Agnostic Framework for Out-of-Distribution Detection with Contaminated Training DataYuchuan Li, Jae-Mo Kang, Il-Min KimCVPR 2025
