# Comparative Performance Analysis of Supervised Models for Network Anomaly Detection

- Authors: Tahsinul Islam Nishat, Ragib Nadim, Noshin Saiyara Rahman, Md. Eaoumoon Haque, Md. Fahim Al Shihab, Mustakim Ahmed, Md. Faruk Abdullah Al Sohan
- Conference paper: IEEE COMPAS 2025, 2025
- DOI: https://doi.org/10.1109/compas67506.2025.11381844
- Read the paper: https://doi.org/10.1109/compas67506.2025.11381844

## Summary

This paper compares five supervised classifiers, Random Forest, XGBoost, K-Nearest Neighbors, Support Vector Classifier and Logistic Regression, for anomaly-based intrusion detection on the CICIDS2017 dataset. Models were scored on accuracy, precision, recall, F1 and ROC-AUC, and their differences were checked with Friedman, Nemenyi and Wilcoxon tests. Random Forest performed best overall, with XGBoost and K-Nearest Neighbors close behind.

## The question

What should you measure when choosing a model to flag suspicious network traffic?

## The problem

Many supervised models can be used to flag intrusions and anomalies in network traffic, which leaves the question of how to compare them fairly.

## Our approach

We compare five supervised classifiers, Random Forest, XGBoost, K-Nearest Neighbors, Support Vector Classifier and Logistic Regression, on the CICIDS2017 dataset. Each is scored on accuracy, precision, recall, F1 and ROC-AUC, and the differences are checked with Friedman, Nemenyi and Wilcoxon tests. Random Forest performed best, with XGBoost and K-Nearest Neighbors close behind.

## Key results

- Random Forest performed best overall, with XGBoost and K-Nearest Neighbors close behind
- Differences were checked with Friedman, Nemenyi and Wilcoxon significance tests

## Why it matters

It gives teams building intrusion and anomaly detection a side-by-side basis for choosing a model.

## Cite this paper

```bibtex
@inproceedings{nishat2025comparative,
  title         = {Comparative Performance Analysis of Supervised Models for Network Anomaly Detection},
  author        = {Nishat, Tahsinul Islam and
                   Nadim, Ragib and
                   Rahman, Noshin Saiyara and
                   Haque, Md. Eaoumoon and
                   Shihab, Md. Fahim Al and
                   Ahmed, Mustakim and
                   Sohan, Md. Faruk Abdullah Al},
  booktitle     = {IEEE COMPAS 2025},
  year          = {2025},
  doi           = {10.1109/compas67506.2025.11381844},
  url           = {https://doi.org/10.1109/compas67506.2025.11381844}
}
```

Page: https://www.archelab.org/publications/net-anomaly
