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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 457a0986-d2b4-4201-b71b-a4c93762a227Cited 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
- 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
- Anomaly Detection with Score Distribution DiscriminationMinqi Jiang, Songqiao Han, Hailiang HuangKDD 2023 · 17 citations
- 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
- Towards a Unified Framework of Clustering-based Anomaly DetectionZeyu Fang, Ming Gu, Sheng Zhou, Jiawei Chen et al.ICML 2025
