Distributed denial of service (DDoS) classification based on random forest model with backward elimination algorithm and grid search algorithm

Distributed Denial of Service (DDoS) attacks pose significant threats to network security, disrupting critical services by overwhelming targeted systems with malicious traffic. In this study, a machine learning-based approach is proposed to classify DDoS attacks using multiple classification models, including Random Forest (RF), Naïve Bayes (NB), K-Nearest Neighbors (KNN), Linear Discriminant Analysis (LDA), and Support Vector Machine (SVM). The DDoS-SDN dataset was used for training and evaluation, with feature selection via Backward Elimination (BE) and hyperparameter tuning using Grid Search with 5-fold Cross-Validation (CV = 5). Experimental results demonstrate a significant improvement in classification performance after feature selection and parameter optimization, with RF achieving the highest accuracy of 99.99%. In this study, we propose a machine learning-based classification framework enhanced by feature selection and hyperparameter optimization techniques through employing Recursive Feature Elimination (RFE) and Grid Search .Our model based on Random Forest (RF) achieved a remarkable accuracy of 99.99%, outperforming other baseline classifiers, including Naive Bayes (98.85%), K-Nearest Neighbors (97.90%), Linear Discriminant Analysis (97.10%), and Support Vector Machine (95.70%). In addition to accuracy, the RF model also demonstrated superior F1 score, recall, and precision, each reaching 99.99%. These results validate the effectiveness of our optimization strategy in improving classification performance. The study highlights the effectiveness of feature engineering and model optimization in enhancing DDoS detection accuracy, making machine learning a viable solution for real-time cybersecurity applications.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-05-30
DOI
https://doi.org/10.1038/s41598-025-03868-x
Citations
5
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
7.44

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Distributed denial of service (DDoS) classification based on random forest model with backward elimination algorithm and grid search algorithm

Osama E. Sheta, Hela Elmannai, Mohamed S. Sawah, Kh. Lotfy et al.
5 citations
Scientific Reports
Network Security and Intrusion Detection
7.44
article

Distributed denial of service (DDoS) classification based on random forest model with backward elimination algorithm and grid search algorithm

Osama E. Sheta, Hela Elmannai, Mohamed S. Sawah, Kh. Lotfy, Alaa A. El‐Bary
article en
5 citations

Abstract

Distributed Denial of Service (DDoS) attacks pose significant threats to network security, disrupting critical services by overwhelming targeted systems with malicious traffic. In this study, a machine learning-based approach is proposed to classify DDoS attacks using multiple classification models, including Random Forest (RF), Naïve Bayes (NB), K-Nearest Neighbors (KNN), Linear Discriminant Analysis (LDA), and Support Vector Machine (SVM). The DDoS-SDN dataset was used for training and evaluation, with feature selection via Backward Elimination (BE) and hyperparameter tuning using Grid Search with 5-fold Cross-Validation (CV = 5). Experimental results demonstrate a significant improvement in classification performance after feature selection and parameter optimization, with RF achieving the highest accuracy of 99.99%. In this study, we propose a machine learning-based classification framework enhanced by feature selection and hyperparameter optimization techniques through employing Recursive Feature Elimination (RFE) and Grid Search .Our model based on Random Forest (RF) achieved a remarkable accuracy of 99.99%, outperforming other baseline classifiers, including Naive Bayes (98.85%), K-Nearest Neighbors (97.90%), Linear Discriminant Analysis (97.10%), and Support Vector Machine (95.70%). In addition to accuracy, the RF model also demonstrated superior F1 score, recall, and precision, each reaching 99.99%. These results validate the effectiveness of our optimization strategy in improving classification performance. The study highlights the effectiveness of feature engineering and model optimization in enhancing DDoS detection accuracy, making machine learning a viable solution for real-time cybersecurity applications.

Scientific ReportsVol. 15(1)
Princess Nourah bint Abdulrahman University (SA), Zagazig University (EG), Taibah University (SA), Arab Academy for Science, Technology, and Maritime Transport (EG)
Princess Nourah Bint Abdulrahman University
Life in Land
Openalex Percentile: Top 3%
Network Security and Intrusion Detection
7.44
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.