Saved in:
Bibliographic Details
Main Authors: Miguel-Diez, Alberto, Campazas-Vega, Adrián, Guerrero-Higueras, Ángel Manuel, Álvarez-Aparicio, Claudia, Matellán-Olivera, Vicente
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2509.01375
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915473067606016
author Miguel-Diez, Alberto
Campazas-Vega, Adrián
Guerrero-Higueras, Ángel Manuel
Álvarez-Aparicio, Claudia
Matellán-Olivera, Vicente
author_facet Miguel-Diez, Alberto
Campazas-Vega, Adrián
Guerrero-Higueras, Ángel Manuel
Álvarez-Aparicio, Claudia
Matellán-Olivera, Vicente
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2509_01375
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Anomaly detection in network flows using unsupervised online machine learning
Miguel-Diez, Alberto
Campazas-Vega, Adrián
Guerrero-Higueras, Ángel Manuel
Álvarez-Aparicio, Claudia
Matellán-Olivera, Vicente
Cryptography and Security
Artificial Intelligence
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.
title Anomaly detection in network flows using unsupervised online machine learning
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2509.01375