Explainable DDoS Detection with a CNN-LSTM Hybrid Model and SHAP Interpretation

Authors

  • Amali Amali Universitas Pelita Bangsa
  • Anggi Muhammad Rifa'i Universitas Pelita Bangsa
  • Edy Widodo Universitas Pelita Bangsa
  • Ahmad Turmudi Zy Universitas Pelita Bangsa
  • Dhani Ariatmanto Universitas Amikom Yogyakarta

DOI:

https://doi.org/10.29207/resti.v9i6.6865

Keywords:

DDoS Attack Detection, CNN-LSTM, Explainable AI (XAI), SHAP, network security

Abstract

The rising frequency and complexity of Distributed Denial of Service (DDoS) attacks pose a severe threat to network security. This study aims to develop an effective and interpretable DDoS detection framework using a hybrid deep learning approach. The proposed method integrates Convolutional Neural Networks (CNN) to capture local traffic patterns and Long Short-Term Memory (LSTM) networks to model temporal dependencies. The CICIDS 2017 dataset, after preprocessing steps including data cleaning, standardization, and class balancing with SMOTE, was used to train and evaluate the model. Experimental results show that the framework achieved 99.98% accuracy and a 99.83% F1-Score, with minimal false positive and false negative rates. This study integrates SHAP to improve model interpretability, aligning feature importance with network security expertise. Future research will focus on real-time deployment, cross-dataset validation, and exploring alternative explainable AI techniques for improved scalability.

Downloads

Download data is not yet available.

References

M. Revathi, V. V. Ramalingam, and B. Amutha, “A Machine Learning Based Detection and Mitigation of the DDOS Attack by Using SDN Controller Framework,” Wirel Pers Commun, vol. 127, no. 3, pp. 2417–2441, Dec. 2022, doi: 10.1007/s11277-021-09071-1.

A. Suhag and A. Daniel, “Study of statistical techniques and artificial intelligence methods in distributed denial of service (DDOS) assault and defense,” Journal of Cyber Security Technology, vol. 7, no. 1, pp. 21–51, Jan. 2023, doi: 10.1080/23742917.2022.2135856.

Y. Shang, “Prevention and detection of DDOS attack in virtual cloud computing environment using Naive Bayes algorithm of machine learning,” Measurement: Sensors, vol. 31, p. 100991, Feb. 2024, doi: 10.1016/j.measen.2023.100991.

A. Fathima, G. S. Devi, and M. Faizaanuddin, “Improving distributed denial of service attack detection using supervised machine learning,” Measurement: Sensors, vol. 30, p. 100911, Dec. 2023, doi: 10.1016/j.measen.2023.100911.

E. Yang, S. Jeong, and C. Seo, “Harnessing feature pruning with optimal deep learning based DDoS cyberattack detection on IoT environment,” Sci Rep, vol. 15, no. 1, p. 17516, May 2025, doi: 10.1038/s41598-025-02152-2.

M. A. Ali and S. A. H. Al-Sharafi, “Intrusion detection in IoT networks using machine learning and deep learning approaches for MitM attack mitigation,” Discover Internet of Things, vol. 5, no. 1, p. 48, Apr. 2025, doi: 10.1007/s43926-025-00104-w.

B. Wang, Y. Jiang, Y. Liao, and Z. Li, “DDoS‐MSCT: A DDoS Attack Detection Method Based on Multiscale Convolution and Transformer,” IET Inf Secur, vol. 2024, no. 1, Jan. 2024, doi: 10.1049/2024/1056705.

M. Al-Fayoumi and Q. Abu Al-Haija, “Capturing low-rate DDoS attack based on MQTT protocol in software Defined-IoT environment,” Array, vol. 19, p. 100316, Sep. 2023, doi: 10.1016/j.array.2023.100316.

A. M. Rifai, S. Raharjo, E. Utami, and D. Ariatmanto, “Analysis for diagnosis of pneumonia symptoms using chest X-ray based on MobileNetV2 models with image enhancement using white balance and contrast limited adaptive histogram equalization (CLAHE),” Biomed Signal Process Control, vol. 90, p. 105857, Apr. 2024, doi: 10.1016/j.bspc.2023.105857.

S. Muthukumar and A. K. Ashfauk Ahamed, “A novel framework of DDoS attack detection in network using hybrid heuristic deep learning approaches with attention mechanism,” Journal of High Speed Networks, vol. 30, no. 2, pp. 251–277, May 2024, doi: 10.3233/JHS-230142.

Y. Yang and X. Peng, “BERT-based network for intrusion detection system,” EURASIP J Inf Secur, vol. 2025, no. 1, p. 11, Mar. 2025, doi: 10.1186/s13635-025-00191-w.

A. M. Rifa’i, A. T. Zy, W. Hadikristanto, Amali, and S. Butsianto, “Leveraging Data Augmentation and Dropout Layer in MobileNetV3 for Accurate Skin Cancer Detection ISIC Dataset,” in 2024 8th International Conference on Information Technology, Information Systems and Electrical Engineering (ICITISEE), IEEE, Aug. 2024, pp. 591–596. doi: 10.1109/ICITISEE63424.2024.10730105.

Z. He, X. Wang, and C. Li, “A Time Series Intrusion Detection Method Based on SSAE, TCN and Bi-LSTM,” Computers, Materials & Continua, vol. 78, no. 1, pp. 845–871, 2024, doi: 10.32604/cmc.2023.046607.

R. Abu Bakar, L. De Marinis, F. Cugini, and F. Paolucci, “FTG-Net-E: A hierarchical ensemble graph neural network for DDoS attack detection,” Computer Networks, vol. 250, p. 110508, Aug. 2024, doi: 10.1016/j.comnet.2024.110508.

S. Verma and S. Prabakeran, “A Hybrid Deep Learning Approach to Network Traffic Anomaly Detection Enhanced by SHAP and LIME Interpretability,” in 2025 8th International Conference on Trends in Electronics and Informatics (ICOEI), IEEE, Apr. 2025, pp. 1254–1261. doi: 10.1109/ICOEI65986.2025.11013553.

Q. Dai, B. Zhang, and S. Dong, “A DDoS-Attack Detection Method Oriented to the Blockchain Network Layer,” Security and Communication Networks, vol. 2022, pp. 1–18, May 2022, doi: 10.1155/2022/5692820.

G. K. Yuvaraaj and K. Dhinakaran, “SHAP-Enhanced Hybrid Model for Accurate Financial Fraud Detection,” in 2025 International Conference on Data Science, Agents & Artificial Intelligence (ICDSAAI), IEEE, Mar. 2025, pp. 1–5. doi: 10.1109/ICDSAAI65575.2025.11011708.

M. T. Ribeiro, S. Singh, and C. Guestrin, “‘Why Should I Trust You?,’” in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, New York, NY, USA: ACM, Aug. 2016, pp. 1135–1144. doi: 10.1145/2939672.2939778.

J. Lee, S. Oh, J. Song, J. Noh, M. Hanh, and J. Kim, “Explainable Network Anomaly Detection with GraphSAGE and SHAP,” in 2025 International Conference on Artificial Intelligence in Information and Communication (ICAIIC), IEEE, Feb. 2025, pp. 0477–0482. doi: 10.1109/ICAIIC64266.2025.10920860.

B. Asal, A. Cakin, and S. Dilek, “Enhancing Industrial IoT Cybersecurity with Explainable AI: A SHAP and LIME-Based Intrusion Detection Methodology,” in 2025 7th International Congress on Human-Computer Interaction, Optimization and Robotic Applications (ICHORA), IEEE, May 2025, pp. 1–8. doi: 10.1109/ICHORA65333.2025.11017105.

S. Abiramasundari and V. Ramaswamy, “Distributed denial-of-service (DDOS) attack detection using supervised machine learning algorithms,” Sci Rep, vol. 15, no. 1, p. 13098, Apr. 2025, doi: 10.1038/s41598-024-84879-y.

Ahmad Turmudi Zy, Isarianto, A. M. Rifa’i, A. Nugroho, and A. Ghofir, “Enhancing Network Security: Evaluating SDN-Enabled Firewall Solutions and Clustering Analysis Using K-Means through Data-Driven Insights,” Jurnal RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 9, no. 1, pp. 69–76, Jan. 2025, doi: 10.29207/resti.v9i1.6056.

C. Zhu, E. A. Bamidele, X. Shen, G. Zhu, and B. Li, “Machine Learning Aided Design and Optimization of Thermal Metamaterials,” Chem Rev, vol. 124, no. 7, pp. 4258–4331, Apr. 2024, doi: 10.1021/acs.chemrev.3c00708.

A. M. Rifa’i, E. Utami, and D. Ariatmanto, “Analysis for Diagnosis of Pneumonia Symptoms Using Chest X-Ray Based on Resnet-50 Models With Different Epoch,” in 2022 6th International Conference on Information Technology, Information Systems and Electrical Engineering (ICITISEE), IEEE, Dec. 2022, pp. 471–476. doi: 10.1109/ICITISEE57756.2022.10057805.

A. S. Sunge, Amali, A. T. ZY, D. K. Pramudito, A. Badruzzaman, and Purwanto, “The model interpretability on SHAP and comparison classification selection feature for heart disease prediction,” Procedia Comput Sci, vol. 245, pp. 210–219, 2024, doi: 10.1016/j.procs.2024.10.245.

C. van Zyl, X. Ye, and R. Naidoo, “Harnessing eXplainable artificial intelligence for feature selection in time series energy forecasting: A comparative analysis of Grad-CAM and SHAP,” Appl Energy, vol. 353, p. 122079, Jan. 2024, doi: 10.1016/j.apenergy.2023.122079.

G. Ranjbaran, D. R. Recupero, C. K. Roy, and K. A. Schneider, “C-SHAP: A Hybrid Method for Fast and Efficient Interpretability,” Applied Sciences, vol. 15, no. 2, p. 672, Jan. 2025, doi: 10.3390/app15020672.

Downloads

Published

2025-12-07

Issue

Section

Artificial Intelligence

How to Cite

Amali, A., Muhammad Rifa'i, A., Widodo, E., Turmudi Zy, A., & Ariatmanto, D. (2025). Explainable DDoS Detection with a CNN-LSTM Hybrid Model and SHAP Interpretation. Jurnal RESTI (Rekayasa Sistem Dan Teknologi Informasi), 9(6), 1358-1365. https://doi.org/10.29207/resti.v9i6.6865