JOURNAL ARTICLE

NFAD: fixing anomaly detection using normalizing flows

A. RyzhikovM. BorisyakA. UstyuzhaninDenis Derkach

Year: 2021 Journal:   PeerJ Computer Science Vol: 7 Pages: e757-e757   Publisher: PeerJ, Inc.

Abstract

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.

Keywords:
Anomaly detection Computer science One-class classification Classifier (UML) Artificial intelligence Binary classification Support vector machine Pattern recognition (psychology) Task (project management) Anomaly (physics) Data mining Class (philosophy) Machine learning Physics

Metrics

15
Cited By
1.27
FWCI (Field Weighted Citation Impact)
80
Refs
0.84
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Anomaly Detection Techniques and Applications
Physical Sciences →  Computer Science →  Artificial Intelligence
Network Security and Intrusion Detection
Physical Sciences →  Computer Science →  Computer Networks and Communications
Advanced Malware Detection Techniques
Physical Sciences →  Computer Science →  Signal Processing

Related Documents

JOURNAL ARTICLE

Quantum normalizing flows for anomaly detection

Bodo RosenhahnChristoph Hirche

Journal:   Physical review. A/Physical review, A Year: 2024 Vol: 110 (2)
JOURNAL ARTICLE

Unsupervised anomaly detection in images using attentional normalizing flows

Xingzhen WuGuojun MaoShuli Xing

Journal:   Engineering Applications of Artificial Intelligence Year: 2023 Vol: 127 Pages: 107369-107369
JOURNAL ARTICLE

Explainable Anomaly Detection in Network Traffic Using Normalizing Flows

Lior ShafirRaja GiryesAvishai Wool

Journal:   IEEE Transactions on Networking Year: 2025 Vol: 34 Pages: 1205-1220
© 2026 ScienceGate Book Chapters — All rights reserved.