Anomaly detection is a challenging task that frequently arises in practically all areas of industry and science, from fraud detection and data quality monitoring to finding rare cases of diseases and searching for new physics. Most of the conventional approaches to anomaly detection, such as one-class SVM and Robust Auto-Encoder, are one-class classification methods, i.e. focus on separating normal data from the rest of the space. Such methods are based on the assumption of separability of normal and anomalous classes, and subsequently do not take into account any available samples of anomalies. Nonetheless, in practical settings, some anomalous samples are often available; however, usually in amounts far lower than required for a balanced classification task, and the separability assumption might not always hold. This leads to an important task -- incorporating known anomalous samples into training procedures of anomaly detection models. In this work, we propose a novel model-agnostic training procedure to address this task. We reformulate one-class classification as a binary classification problem with normal data being distinguished from pseudo-anomalous samples. The pseudo-anomalous samples are drawn from low-density regions of a normalizing flow model by feeding tails of the latent distribution into the model. Such an approach allows to easily include known anomalies into the training process of an arbitrary classifier. We demonstrate that our approach shows comparable performance on one-class problems, and, most importantly, achieves comparable or superior results on tasks with variable amounts of known anomalies.
翻译:异常探测是工业和科学几乎所有领域都经常出现的一项挑战性任务,从欺诈检测和数据质量监测到发现罕见的疾病病例和寻找新的物理学,从欺诈检测和数据质量监测到发现罕见的疾病案例,到发现异常现象的大多数常规方法,如单级SVM和Robust Auto-Encoder,都是单级分类方法,即侧重于将正常数据与空间的其余部分区分开来,这些方法基于正常和异常等级的分离假设,随后不考虑任何异常现象的样本。然而,在实际环境中,往往可以找到一些异常的样本;然而,通常数量远远低于平衡分类任务所需的数量,而分离性假设可能并不总是有效。这导致一项重要的任务 -- -- 将已知的异常样本纳入异常检测模型的训练程序。在这项工作中,我们提出一个新的模型-不定期培训程序,以解决这一问题。我们将一个已知的分类方法重新确定为二分解,将正常的异常数据与假的样品区别开来;在最易变相的样品上,从易变现的样品中提取的样品,从一个可比较性序列的样品,从一个可比较的变的序列中提取到一个可变的序列,将一个可比较性的方法,从一个可比较性地将一个可分解的序列到一个可分解的样品,将一个可分解的序列性的方法,从一个可分解到一个可分解到一个可分解到一个可分解的序列。