English

Anomaly detection in network flows using unsupervised online machine learning

Cryptography and Security 2025-09-03 v1 Artificial Intelligence

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.

Keywords

Cite

@article{arxiv.2509.01375,
  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},
  journal= {arXiv preprint arXiv:2509.01375},
  year   = {2025}
}

Comments

14 pages, 3 figures, 6 tables

R2 v1 2026-07-01T05:15:11.187Z