Anomaly detection in network flows using unsupervised online machine learning

Alberto Miguel-Diez, Adrián Campazas-Vega, Ángel Manuel Guerrero-Higueras, Claudia Álvarez-Aparicio, Vicente Matellán-Olivera
9/1/2025
cs.CRcs.AI

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Nowadays, the volume of network traffic continues to grow, along with the frequency and sophistication of attacks. This scenario highlights the need for solutions capable of continuously adapting, since network behavior is dynamic and changes over time. This work presents an anomaly detection model for network flows using unsupervised machine learning with online learning capabilities. This approach allows the system to dynamically learn the normal behavior of the network and detect deviations without requiring labeled data, which is particularly useful in real-world environments where traffic is constantly changing and labeled data is scarce. The model was implemented using the River library with a One-Class SVM and evaluated on the NF-UNSW-NB15 dataset and its extended version v2, which contain network flows labeled with different attack categories. The results show an accuracy above 98%, a false positive rate below 3.1%, and a recall of 100% in the most advanced version of the dataset. In addition, the low processing time per flow (<0.033 ms) demonstrates the feasibility of the approach for real-time applications.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{migueldiez2025anomaly,
  title  = {Anomaly detection in network flows using unsupervised online machine learning},
  author = {Alberto Miguel-Diez and Adrián Campazas-Vega and Ángel Manuel Guerrero-Higueras and Claudia Álvarez-Aparicio and Vicente Matellán-Olivera},
  year   = {2025},
  eprint = {2509.01375},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.01375v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.01375.svg)](https://codeofpaper.com/paper/2509.01375)

Discussion