Research on DDoS Attack Detection Method Fusing Dynamic Feature Selection and Heterogeneous Model Ensembling
Abstract
As distributed denial-of-service (DDoS) attacks and their derivatives grow increasingly complex and diverse, traditional approaches relying on single global feature selection and single-model classifiers often struggle to balance accuracy in identifying hybrid attacks with training and inference efficiency. This paper proposes a unified framework of “Dynamic Feature Selection and Multi-Model Ensemble,” systematically validated on the CICDDoS2019 benchmark dataset. Specifically, we first use XGBoost as the baseline, compute global feature importance via SHAP, and construct a Top-N dynamic feature subset based on this to quantitatively analyse the trade-off between accuracy and training time. Second, to optimize accuracy, we design differentiated feature engineering and data processing workflows for different models: applying standardization and PCA dimensionality reduction for tree models (XGBoost, Random Forest), introducing port range binning, protocol indicators, and TCP flag-derived features for neural networks (MLP), combined with low-cardinality one-hot encoding and high-cardinality frequency encoding; finally, fusing the probability outputs of three models via soft voting. Experiments demonstrate that retaining only the top-20 most important features achieves a system accuracy of 69.10%, comparable to or slightly exceeding the full-feature baseline while reducing training time to 6.9 seconds—approximately a 47% acceleration over the baseline. In terms of accuracy, the three-model ensemble further improves upon the baseline XGBoost by about 1 percentage point. SHAP-based interpretability analysis indicates that approximately 20 features represent the “inflection point” between performance and efficiency. Top-ranked features are primarily correlated with source/destination ports, packet counts in forward/reverse flows, bytes, and frequency—consistent with the traffic mechanisms of typical amplified reflection-based DDoS attacks. This paper contributes a reusable dual-objective evaluation framework for speed and accuracy, proposes differentiated feature engineering strategies for heterogeneous models, and significantly reduces training overhead while steadily improving detection accuracy—all while maintaining interpretability.
References
- Rashid, S. M. K.-U.-R. Raazi, and S. Ali, "Detection and mitigation of DDoS attacks on IoT networks using machine learning, " in 2024 26th International Multi-Topic Conference (INMIC), Karachi, Pakistan, 2024, pp. 1-6, doi: 10.1109/INMIC64792.2024.11004398.
- K. Saluja, S. Bagchi, V. Solanki, M. N. A. Khan, E. Dhamija, and S. K. Debnath, "Exploring robust DDoS detection: A machine learning analysis with the CICDDoS2019 dataset, " in 2024 IEEE 5th India Council International Subsections Conference (INDISCON), Chandigarh, India, 2024, pp. 1–6, doi: 10.1109/INDISCON62179.2024.10744272.
- G. Kunapuli, Ensemble Methods for Machine Learning. Shelter Island, NY: Manning, 2023.
- A_Student_2020, "Ensemble Learning Methods: A Practical Guide, " CSDN Blog, May 2024. [Online]. Available: https: //blog.csdn.net/a_student_2020/article/details/139784117.
- S. Abimannan, E.-S. M. El-Alfy, Y.-S. Chang, S. Hussain, S. Shukla, and D. Satheesh, "Ensemble multifeatured deep learning models and applications: A survey, " IEEE Access, vol. 11, pp. 107194–107217, 2023, doi: 10.1109/ACCESS.2023.3320042.