Skip to content
Open access

Comparative Evaluation of LSTM, BiLSTM, CNN-LSTM, Random Forest, and XGBoost for Detection of Distributed Denial of Service (DDoS) Attacks Using the CICDDoS2019 Dataset

Aug 2026 · East African Journal of Information Technology · Vol 9, pp. 62-81 · 0 citations

TL;DR

The results confirm that temporal deep learning architectures substantially outperform classical ML models in detecting multi-class DDoS patterns, with the performance gap being most pronounced for low-frequency and easily confused attack classes such as DRDOS_LDAP, DRDOS_MSSQL, and UDP-LAG.

Abstract

Distributed Denial of Service (DDoS) attacks continue to pose a severe and escalating threat to networked digital infrastructure, with global attack volumes rising by over 53% in 2024 alone. While machine learning approaches have demonstrated improved detection performance over traditional rule-based systems, many existing models treat network traffic samples as independent observations and fail to capture the temporal dependencies that characterise real-world DDoS behaviour. This study addresses this gap by developing and evaluating an LSTM-based deep learning model for DDoS attack detection and comparing it against Bidirectional LSTM (BiLSTM), CNN-LSTM, Random Forest, and XGBoost models using the publicly available CICDDoS2019 dataset. The task is formulated as a 19-class problem: BENIGN traffic plus 18 distinct DDoS attack labels present in the dataset, including reflection-based (DrDoS) and exploitation-based attack variants. The study employs a methodologically rigorous, leakage-free pipeline that preserves the natural class imbalance for two low-frequency attack types while applying stratified per-class sampling, post-split mutual information feature selection, Min-Max normalisation fitted on training data only, and chronological sliding-window reshaping into time-step tensors. Experimental results show that LSTM achieves a weighted F1-score of 0.847 and a macro one-vs-rest ROC-AUC of 0.992, outperforming BiLSTM (F1: 0.832, AUC: 0.992) and CNN-LSTM (F1: 0.840, AUC: 0.992), while Random Forest and XGBoost trail by 25–30 percentage points (F1: 0.552 and 0.549, respectively). The results confirm that temporal deep learning architectures substantially outperform classical ML models in detecting multi-class DDoS patterns, with the performance gap being most pronounced for low-frequency and easily confused attack classes such as DRDOS_LDAP, DRDOS_MSSQL, and UDP-LAG. The study produces a benchmark other researchers can reproduce, and it gives practical grounds for deploying LSTM detection where budgets are tight. An LSTM trained under a leakage-free pipeline is realistic for Tanzanian public institutions and e-Government platforms to run.

Read PDF

Similar papers

Open access Sep 2026

Lightweight AI Models for Cyber Threat Detection: An Evaluation of MobileNetV2, Random Forest, and CNN-LSTM for Phishing and Network Anomaly Detection

This work contributes a comparative evaluation of lightweight detection models, consistent attention to security-critical metrics, and interpretable insights to support practical cybersecurity deployment.

Nwagbara Chisom Telvin, Gilbert Imuetin Osaze Aimufua, Raymond Ternenge Igbudu · 0 citations
Review Open access Sep 2026

A Systematic Review of Deep Learning Models for DDoS Attack Detection in Cybersecurity

Distributed Denial of Service (DDoS) attacks are still one of the biggest threats to cybersecurity. They overload network resources and cause problems for businesses, governments, and important infrastructure. Conventional detection systems frequently inadequately respond to the dynamic and extensive characteristics of...

D. S., B. Lakshmi · 0 citations
Open access Sep 2026

Attention-augmented CNN-BiLSTM with temporal-spatial attention for imbalanced multi-class network intrusion detection

The proposed Attention-Augmented CNN-BiLSTM architecture incorporating a lightweight Temporal-Spatial Attention Module (TSAM) achieves an effective balance between computational efficiency, robustness to severe class imbalance, and accurate multi-class intrusion detection for next-generation IoT security systems.

D. Bhosale, Avinash Dhole, P. B. Deshmukh et al. · 0 citations
Conference Aug 2026

From KNN to Ensemble Learning: Advancing Real-Time Network Intrusion Detection with Asymmetric SMOTE-ENN Balancing on the CSE-CIC-IDS2018 Benchmark

The increasing occurrence and sophistication of attacks on current enterprise-grade computer networks require the development of IDSs with real-time, per-flow traffic categorization capability while ensuring a low rate of false positives. Most traditional architectures based on machine learning models are typically pla...

Piyush Parate, Vashisht Urgonda, Chintan Parmar et al. · 0 citations
Open access Sep 2026

BBCS-Net: A BERT-Based CNN-BiLSTM-SVM Hybrid Architecture for Fine-Grained Cyberbullying Detection

Cyberbullying detection remains challenging due to diverse linguistic patterns used by offenders. The in- ductive biases of deep learning architectures add to this challenge. Single-model approaches often capture only part of abusive language. This results in distinct but partially overlapping error spaces, limiting th...

K. Bhalerao, Vanita Mane · 0 citations
Open access 2026

A Structured Query Language (SQL) Injection Attack Detection Based on Probabilistic Neural Network

—Structured Query Language (SQL) injection attacks remain one of the most critical web application security threats. Deep Learning (DL) models such as Convolutional Neural Networks (CNN) often require high computational resources, large numbers of parameters, and long training times, which limit their suitability for l...

Jawaher AlZaidi, Jehan Janbi · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.