Intelligent Firewall for Attack Detection: Integrating Dragonfly and Bat Algorithms with Machine Learning

Authors

  • Ali Al-Allawee Department of Computer Science, College of Education for Pure Science, University of Mosul, Mosul, Iraq.
  • Sultan Aldossary Department of Computer Engineering and Information, College of Engineering in Wadi Alddawasir, Prince Sattam bin Abdulaziz University, Saudi Arabia.
  • Radhwan M. Abdullah Department of Agricultural Machines and Equipment, College of Agriculture and Forestry, University of Mosul, Mosu 41002, Iraq.
  • Lway Faisal Abdulrazak Department of space and UAV Engineering Technologies, Electrical Engineering Technical College, Middle Technical University, Baghdad, Iraq.

Keywords:

Attack Detection, Machine Learning, Feature Selection, Dragonfly Algorithm, Bat Algorithm

Abstract

The increasing sophistication of cyber threats necessitates the development of advanced attack detection methods capable of handling high-dimensional network traffic data efficiently. This paper introduces an AI-driven firewall model that leverages the Dragonfly Algorithm (DA) and Bat Algorithm (BA) for optimal feature selection, enhancing attack detection accuracy. The proposed approach utilizes the UNSW-NB15 dataset and employs a union-based feature selection strategy, combining the best-selected features from DA and BA to maximize classification performance. Three classifiers— utilize Decision Tree (DT), Support Vector Machine (SVM), and Logistic Regression (LR)—are implemented for attack detection. Experimental results demonstrate that DT achieved 100% accuracy, SVM achieved 99.99% accuracy, while LR achieved 99.94%, confirming the effectiveness of the proposed model. The AI-embedded firewall significantly reduces false positives and enhances detection robustness.

Downloads

Published

2025-11-29

How to Cite

Ali Al-Allawee, Sultan Aldossary, Radhwan M. Abdullah, & Lway Faisal Abdulrazak. (2025). Intelligent Firewall for Attack Detection: Integrating Dragonfly and Bat Algorithms with Machine Learning . Journal of Computing & Biomedical Informatics, 10(01). Retrieved from https://jcbi.org/index.php/Main/article/view/1156