Transferring the Contamination Factor between Anomaly Detection Domains by Shape Similarity
Lorenzo Perini, Vincent Vercruyssen, Jesse Davis
Abstract
Anomaly detection attempts to find examples in a dataset that do not conform to the expected behavior. Algorithms for this task assign an anomaly score to each example representing its degree of anomalousness. Setting a threshold on the anomaly scores enables converting these scores into a discrete prediction for each example. Setting an appropriate threshold is challenging in practice since anomaly detection is often treated as an unsupervised problem. A common approach is to set the threshold based on the dataset's contamination factor, i.e., the proportion of anomalous examples in the data. While the contamination factor may be known based on domain knowledge, it is often necessary to estimate it by labeling data. However, many anomaly detection problems involve monitoring multiple related, yet slightly different entities (e.g., a fleet of machines). Then, estimating the contamination factor for each dataset separately by labeling data would be extremely time-consuming. Therefore, this paper introduces a method for transferring the known contamination factor from one dataset (the source domain) to a related dataset where it is unknown (the target domain). Our approach does not require labeled target data and is based on modeling the shape of the distribution of the anomaly scores in both domains. We theoretically analyze how our method behaves when the (biased) target domain anomaly score distribution converges to its true one. Empirically, our method outperforms several baselines on real-world datasets.
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 fc928a3f-9f2f-48b0-9af4-cc4471e6d8b6Cited by top-tier papers6
- Deep Weakly-supervised Anomaly DetectionGuansong Pang, Chunhua Shen, Huidong Jin, Anton van den HengelKDD 2023 · 100 citations
- Estimating the Contamination Factor's Distribution in Unsupervised Anomaly DetectionLorenzo Perini, Paul-Christian Bürkner, Arto KlamiICML 2023 · 27 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
Builds on3
- Kitsune: An Ensemble of Autoencoders for Online Network Intrusion DetectionYisroel Mirsky, Tomer Doitshman, Yuval Elovici, Asaf ShabtaiNDSS 2018 · 945 citations
- Classification-Based Anomaly Detection for General DataLiron Bergman, Yedid HoshenICLR 2020 · 412 citations
- Transfer Learning for Anomaly Detection through Localized and Unsupervised Instance SelectionVincent Vercruyssen, Wannes Meert, Jesse DavisAAAI 2020 · 35 citations
Related papers
- When Model Meets New Normals: Test-Time Adaptation for Unsupervised Time-Series Anomaly DetectionDongmin Kim, Sunghyun Park, Jaegul ChooAAAI 2024 · 43 citations
- Cross-Domain Graph Anomaly Detection via Anomaly-Aware Contrastive AlignmentQizhou Wang, Guansong Pang, Mahsa Salehi, Wray L. Buntine et al.AAAI 2023 · 51 citations
- FlexUOD: The Answer to Real-world Unsupervised Image Outlier DetectionZhonghang Liu, Kun Zhou, Changshuo Wang, Wen-Yan Lin et al.CVPR 2025
- DoKnowAD: Calibrating Normal Representations with Refined Domain Knowledge to Enhance Time Series Anomaly DetectionShiwang Xing, Jianwei Niu, Tao RenAAAI 2026
- UniAd: Unified Adversarial Alignment for Unsupervised Cross-Domain Industrial Anomaly DetectionYulong Fang, Zhanshan Li, Jingyao LiKDD 2026
