# Self-contained Data Cleaning for Unsupervised Anomaly Detection

DevFeed: [Self-contained Data Cleaning for Unsupervised Anomaly Detection](<https://devfeed.tech/articles/self-contained-data-cleaning-for-unsupervised-anomaly-detection-125266.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.10856>)

Author: Jordan F. Masakuna, Ahmed Yacine, Djeff K. Nkashama, Arian Soltani, Marc Frappier, Pierre M. Tardif, Froduald Kabanza

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [outlier-detection](<https://devfeed.tech/topics/outlier-detection.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Data Quality](<https://devfeed.tech/topics/data-quality.md>)

Tags: [anomaly-detection](<https://devfeed.tech/tags/anomaly-detection.md>), [cosine-similarity](<https://devfeed.tech/tags/cosine-similarity.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [data-cleaning](<https://devfeed.tech/tags/data-cleaning.md>), [data-quality](<https://devfeed.tech/tags/data-quality.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [framework](<https://devfeed.tech/tags/framework.md>), [malicious](<https://devfeed.tech/tags/malicious.md>), [models](<https://devfeed.tech/tags/models.md>), [security](<https://devfeed.tech/tags/security.md>), [training](<https://devfeed.tech/tags/training.md>)

## AI overview

The paper proposes a preprocessing framework that detects and removes contamination from unsupervised anomaly detection training data without requiring a known contamination ratio. It analyzes cosine similarity between each point and its reconstruction during an autoencoder's early training, using lower-density regions in a dynamic space to identify anomalous candidates for removal. Because cleaning happens at the data level, the authors report that it applies across downstream model architectures. Across 8 models and 10 security-relevant datasets, they report up to 100% contamination reduction, with average gains of 11.2% in F1 score and 7.3% in classification accuracy.

## Source excerpt

arXiv:2611.10856v1 Announce Type: new Abstract: Training datasets for unsupervised anomaly detection are often assumed to be anomaly-free, but in practice, they frequently contain malicious or anomalous contamination. This contamination severely degrades the dependability and security of downstream detection models. While some contamination-robust methods exist, they rarely generalize across different model architectures and typically rely on a priori knowledge of the contamination ratio\textemdash information that is rarely available in real-world security operations. In this paper, we propose a novel, self-contained preprocessing framework for anomaly detection that identifies and removes training set contamination without relying on known contamination ratios. Our approach performs a dynamic analysis of the cosine similarity between each data point and its reconstruction during the early training stages of an auto-encoder, mapping points into a dynamic space where anomalous regions naturally exhibit lower density. By executing ``hard cleaning''\textemdash removing all identified anomalous candidates from the training pool\textemdash we systematically improve data quality. Because this cleaning occurs at the data level, the security and reliability improvements generalize seamlessly across various downstream anomaly detection architectures. Evaluating our framework across 8 distinct models and 10 security-relevant datasets, our approach achieves up to 100\% contamination reduction, yielding average improvements of 11.2\% in F1 score and 7.3\% in classification accuracy.