Submit your papersSubmit Now
For Enquiries: [email protected]
IIARD LogoIIARD

Deep Learning-Based Detection and Classification of Distributed Denial-of-Service Attacks in Computer Networks

Femi Kolawole, Bolutife Bolarinwa Kolawole, Gbolagade Babatunde Kolawole, Emmanuel Pelumi Kolawole

Abstract

Distributed Denial-of-Service attacks remain the most frequent cyber incident, and deep learning is widely proposed for detecting them, yet published accuracies near 99% are rarely tested under controlled, repeated comparison. This study examined convolutional neural network , long short-term memory and hybrid CNN-LSTM models for detecting and classifying DDoS attacks using the public CIC-DDoS2019 dataset (431,371 flows, 11 attack types). After cleaning and class-capped sampling (52,626 flows, 65 features), ten models were trained on identical stratified partitions over 10 independent runs. CNN variants detected attacks with about 99.6% accuracy but did not differ significantly from logistic regression in accuracy (F = 1.41, p = .256), although the deep CNN lowered the false positive rate (F = 3.23, p = .034). LSTM variants did not differ (F = 1.43, p = .258), while attack category explained most variation in F1 (F = 1,382.56). Hybrids improved precision (F = 5.55, p = .003) and recall (F = 5.48, p = .003). Multi-protocol reflection attacks were hardest to classify (R2 = 0.853). CNN-LSTM ranked first overall, but differences were small. Deployment of hybrid models with category-aware evaluation is recommended.

Keywords

DDoS; deep learning; CNN; LSTM; CNN-LSTM; CIC-DDoS2019; intrusion detection

References

Akgun, D., Hizal, S., & Cavusoglu, U. (2022). A new DDoS attacks intrusion detection model based on deep learning for cybersecurity. Computers & Security, 118, Article 102748. https://doi.org/10.1016/j.cose.2022.102748 Bashaiwth, A., Binsalleeh, H., & AsSadhan, B. (2023). An explanation of the LSTM model used for DDoS attacks classification. Applied Sciences, 13(15), Article 8820. https://doi.org/10.3390/app13158820 Batool, S., Aslam, M., Akpokodje, E., & Jilani, S. F. (2025). A comprehensive review of DDoS detection and mitigation in SDN environments: Machine learning, deep learning, and federated learning perspectives. Electronics, 14(21), Article 4222. https://doi.org/10.3390/electronics14214222 Becerra-Suarez, F. L., Fernández-Roman, I., & Forero, M. G. (2024). Improvement of distributed denial of service attack detection through machine learning and data processing. Mathematics, 12(9), Article 1294. https://doi.org/10.3390/math12091294 Bengio, Y., Courville, A., & Vincent, P. (2013). Representation learning: A review and new perspectives. IEEE Transactions on Pattern Analysis and Machine Intelligence, 35(8), 1798–1828. https://doi.org/10.1109/TPAMI.2013.50 Chen, S.-R., Chen, S.-J., & Hsieh, W.-B. (2025). Enhancing machine learning-based DDoS detection through hyperparameter optimization. Electronics, 14(16), Article 3319. https://doi.org/10.3390/electronics14163319 Cloudflare. (2025). DDoS threat report for 2025 Q2. Cloudflare Radar. https://radar.cloudflare.com/reports/ddos-2025-q2 Demšar, J. (2006). Statistical comparisons of classifiers over multiple data sets. Journal of Machine Learning Research, 7, 1–30. https://www.jmlr.org/papers/v7/demsar06a.html European Union Agency for Cybersecurity. (2025). ENISA threat landscape 2025. https://www.enisa.europa.eu/publications/enisa-threat-landscape-2025 Friedman, M. (1937). The use of ranks to avoid the assumption of normality implicit in the analysis of variance. Journal of the American Statistical Association, 32(200), 675– 701. https://doi.org/10.1080/01621459.1937.10503522 Green, D. M., & Swets, J. A. (1966). Signal detection theory and psychophysics. Wiley. Hochreiter, S., & Schmidhuber, J. (1997). Long short-term memory. Neural Computation, 9(8), 1735–1780. https://doi.org/10.1162/neco.1997.9.8.1735 Kingma, D. P., & Ba, J. (2015). Adam: A method for stochastic optimization. In Proceedings of the 3rd International Conference on Learning Representations. https://arxiv.org/abs/1412.6980 LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521(7553), 436–444. https://doi.org/10.1038/nature14539 LeCun, Y., Bottou, L., Bengio, Y., & Haffner, P. (1998). Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11), 2278–2324. https://doi.org/10.1109/5.726791 Mehmood, S., Amin, R., Mustafa, J., Hussain, M., Alsubaei, F. S., & Zakaria, M. D. (2025). Distributed denial of services attack detection in SDN using optimizer- equipped CNN-MLP. PLoS ONE, 20(1), Article e0312425. https://doi.org/10.1371/journal.pone.0312425 Mohamed, M. B. B., Bouzidi, D., Ibraheem, M. K., Al-Abadi, A. A. J., & Fakhfakh, A. (2026). Cyber approach for DDoS attack detection using hybrid CNN-LSTM model in IoT-based healthcare. Future Internet, 18(1), Article 52. https://doi.org/10.3390/fi18010052 Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., IJCSMT IJCSMT Gimelshein, N., Antiga, L., Desmaison, A., Köpf, A., Yang, E., DeVito, Z., Raison, M., Tejani, A., Chilamkurthy, S., Steiner, B., Fang, L., Bai, J., & Chintala, S. (2019). PyTorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems 32 (pp. 8024–8035). https://arxiv.org/abs/1912.01703 Ramzan, M., Shoaib, M., Altaf, A., Arshad, S., Iqbal, F., Kuc Castilla, Á., & Ashraf, I. (2023). Distributed denial of service attack detection in network traffic using deep learning algorithm. Sensors, 23(20), Article 8642. https://doi.org/10.3390/s23208642 Raza, M. S., Sheikh, M. N. A., Hwang, I.-S., & Ab-Rahman, M. S. (2024). Feature-selection- based DDoS attack detection using AI algorithms. Telecom, 5(2), 333–346. https://doi.org/10.3390/telecom5020017 Sathaporn, P., Krungseanmuang, W., Chaowalittawin, V., Benjangkaprasert, C., & Purahong, B. (2025). DDoS detection using a hybrid CNN–RNN model enhanced with multi- head attention for cloud infrastructure. Applied Sciences, 15(21), Article 11567. https://doi.org/10.3390/app152111567 Sharafaldin, I., Lashkari, A. H., Hakak, S., & Ghorbani, A. A. (2019). Developing realistic distributed denial of service attack dataset and taxonomy. In 2019 International Carnahan Conference on Security Technology (pp. 1–8). IEEE. https://doi.org/10.1109/CCST.2019.8888419 Shieh, C.-S., Nguyen, T.-T., & Horng, M.-F. (2023). Detection of unknown DDoS attack using convolutional neural networks featuring geometrical metric. Mathematics, 11(9), Article 2145. https://doi.org/10.3390/math11092145

More Articles from INTERNATIONAL JOURNAL OF COMPUTER SCIENCE AND MATHEMATICAL THEORY