Comparative Evaluation of Anomaly Detection Methods for 5G Network Traffic: A Reproducible Benchmark on Public Datasets
This record contains the manuscript and the source code for the study: "Comparative Evaluation of Anomaly Detection Methods for 5G Network Traffic: A Reproducible Benchmark on Public Datasets." Abstract: The increasing complexity of fifth-generation (5G) mobile networks introduces new security challenges associated with heterogeneous traffic patterns and sophisticated cyberattacks. This study presents a comparative experimental framework for evaluating five anomaly detection approaches: a statistical threshold baseline, Isolation Forest, One-Class SVM (OCSVM), a feedforward Autoencoder, and an LSTM Autoencoder. The framework incorporates chronological data partitioning, benign-only model training, validation-based threshold calibration, and repeated experiments using multiple random seeds. A preliminary experimental evaluation was conducted using a reproducible synthetic network-traffic generator. The results indicate that OCSVM achieved the highest mean PR-AUC and F1-score, providing a favorable balance between detection performance and training time. Repository Contents: - Article2.pdf: The full manuscript of the study. - anomaly_bench.py: A unified, standalone Python script containing the complete experimental pipeline (data generation, model training, evaluation, statistical testing, and visualization). - Figures (PNG): Visualizations of the results. Data Availability: To ensure a lightweight record, the raw datasets are not directly hosted here. The synthetic data (40,000 observations per seed, 20 features) is automatically generated by the anomaly_bench.py script upon execution. Execution Instructions: To reproduce the results, ensure you have Python installed along with standard machine learning libraries (NumPy, Pandas, Scikit-learn, PyTorch, Matplotlib, SciPy). Run the script using the following command: python anomaly_bench.py
Authors
- Rafik Cheraga
Institutions
- Badji Mokhtar-Annaba University (DZ)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-02
- DOI
- https://doi.org/10.5281/zenodo.24760643
- Primary Topic
- Network Security and Intrusion Detection
- Type
- preprint