Firefly Algorithm-Optimized Deep Learning Model for Cyber Intrusion Detection in Wireless Sensor Networks Using SMOTE-Tomek

Noor Abdulkaadhim Hamad, Oras Nasif Jasem

Abstract


Wireless Sensor Networks are increasingly vulnerable to sophisticated cyber threats, necessitating effective and intelligent intrusion detection strategies. This paper presents a deep learning-based intrusion detection model that enhances cybersecurity performance through intelligent hyperparameter optimization and advanced data balancing. The main objective of the study is to improve classification accuracy and generalization in intrusion detection systems by employing a dynamic and adaptive optimization framework. A Firefly Algorithm that mimics nature is part of the suggested model. It changes the number of neurons, learning rate, and dropout rate while evaluating the performance of every arrangement with just a little training. It uses the strategy of swarms to find solutions effectively and in an adaptable way. A hybrid method called SMOTE-Tomek is employed to deal with the issues caused by an unequal number of classes in the dataset. The network is built with different dense layers that are enhanced with dropout and batch normalization, and adaptive learning rate adjustment. In preprocessing the data, we encoded categorical variables, made the values consistent with normalization, and balanced the classes by producing artificial data when needed. The model was trained using GPU software for ten epochs and checked for performance using accuracy measurements, confusion matrices, and classification reports. The optimized model obtained an accuracy of 97.82% in classifications, higher than what baseline models and previous machine learning methods could do. It is able to spot and classify various kinds of attacks, completely handles Flooding cases and greatly lowers the chances of mistakes when identifying Blackhole and Grayhole. The study underlines the fact that using swarm intelligence with hybrid resampling enhances the real-time protection of networks against cyber attacks. A deep learning framework is developed at the end of the study that can work well and effectively in cybersecurity tasks.


Keywords


Intrusion Detection; Firefly Algorithm; Hyperparameter Optimization; SMOTE-Tomek; Deep Learning; Wireless Sensor Networks; Cybersecurity

Full Text:

PDF

References


S. Abbas et al., ‘Evaluating deep learning variants for cyber-attacks detection and multi-class classification in IoT networks’, PeerJ Computer Science, vol. 10, p. e1793, 2024.

M. H. Behiry and M. Aly, ‘Cyberattack detection in wireless sensor networks using a hybrid feature reduction technique with AI and machine learning methods’, J Big Data, vol. 11, no. 1, p. 16, Jan. 2024, doi: 10.1186/s40537-023-00870-w.

R. Alguliyev and R. Shikhaliyev, ‘NETWORK CYBERSECURITY INCIDENTS MULTICLASSIFICATION BASED ON DEEP LEARNING’, Problems of Information Technology, pp. 16–23, 2024.

T. Wongvorachan, S. He, and O. Bulut, ‘A comparison of undersampling, oversampling, and SMOTE methods for dealing with imbalanced classification in educational data mining’, Information, vol. 14, no. 1, p. 54, 2023.

L. Ai-jun and Z. Peng, ‘Research on Unbalanced Data Processing Algorithm Base Tomeklinks-Smote’, in Proceedings of the 2020 3rd International Conference on Artificial Intelligence and Pattern Recognition, Xiamen China: ACM, Jun. 2020, pp. 13–17. doi: 10.1145/3430199.3430222.

E. F. Swana, W. Doorsamy, and P. Bokoro, ‘Tomek link and SMOTE approaches for machine fault classification with an imbalanced dataset’, Sensors, vol. 22, no. 9, p. 3246, 2022.

L. Chen and J. Li, ‘A Firefly Algorithm Based on Prediction and Hybrid Samples Learning’, in International Conference on Intelligent Computing, Springer, 2023, pp. 262–274. Accessed: Feb. 07, 2025. [Online]. Available: https://link.springer.com/chapter/10.1007/978-981-99-4755-3_23

X. S. Yang and X. He, ‘Firefly algorithm: recent advances and applications’, IJSI, vol. 1, no. 1, p. 36, 2013, doi: 10.1504/IJSI.2013.055801.

W. L. Al-Yaseen, Z. A. Othman, and M. Z. A. Nazri, ‘Multi-level hybrid support vector machine and extreme learning machine based on modified K-means for intrusion detection system’, Expert Systems with Applications, vol. 67, pp. 296–303, 2017.

D. S. Berman, A. L. Buczak, J. S. Chavis, and C. L. Corbett, ‘A survey of deep learning methods for cyber security’, Information, vol. 10, no. 4, p. 122, 2019.

Z. H. E. Wang, C. Wu, K. Zheng, X. Niu, and X. Wang, ‘SMOTETomek-based resampling for personality recognition’, IEEE access, vol. 7, pp. 129678–129689, 2019.

M. K. Dahouda and I. Joe, ‘A deep-learned embedding technique for categorical features encoding’, IEEE Access, vol. 9, pp. 114381–114391, 2021.

G. M. Dandime, G. V. Nirmala, A. Baldania, C. M. S. Kumar, and M. Fahlevi, ‘Energy enhancement and optimization of WSN using firefly algorithm and deep learning’, in 2022 International Conference on Edge Computing and Applications (ICECAA), IEEE, 2022, pp. 1432–1436. Accessed: Feb. 08, 2025. [Online]. Available: https://ieeexplore.ieee.org/abstract/document/9936146/

M. Alsoul, H. Zaher, N. Ragaa, and E. M. Oun, ‘A New Efficient Hybrid Approach for Machine Learning-Based Firefly Optimization’, Iraqi Journal of Science, pp. 4600–4612, 2023.

O. A. Beg, A. A. Khan, W. U. Rehman, and A. Hassan, ‘A review of AI-based cyber-attack detection and mitigation in microgrids’, Energies, vol. 16, no. 22, p. 7644, 2023.

B. J. Kim, H. Choi, H. Jang, D. Lee, and S. W. Kim, ‘How to use dropout correctly on residual networks with batch normalization’, in Uncertainty in Artificial Intelligence, PMLR, 2023, pp. 1058–1067. Accessed: Feb. 08, 2025. [Online]. Available: https://proceedings.mlr.press/v216/kim23a.html

K. Medvedieva, T. Tosi, E. Barbierato, and A. Gatti, ‘Balancing the Scale: Data Augmentation Techniques for Improved Supervised Learning in Cyberattack Detection’, Eng, vol. 5, no. 3, pp. 2170–2205, 2024.

L. Huang, ‘Motivation and Overview of Normalization in DNNs’, in Normalization Techniques in Deep Learning, Springer, 2022, pp. 11–18. Accessed: Feb. 07, 2025. [Online]. Available: https://link.springer.com/chapter/10.1007/978-3-031-14595-7_2

X. Qi, Y. Wei, X. Mei, R. Chellali, and S. Yang, ‘Comparative Analysis of the Linear Regions in ReLU and LeakyReLU Networks’, in Neural Information Processing, vol. 1962, B. Luo, L. Cheng, Z.-G. Wu, H. Li, and C. Li, Eds., in Communications in Computer and Information Science, vol. 1962. , Singapore: Springer Nature Singapore, 2024, pp. 528–539. doi: 10.1007/978-981-99-8132-8_40.

F. Rahma, M. C. Rajasa, R. F. Rachmadi, B. A. Pratomo, and M. H. Purnomo, ‘Resampling Effects on Imbalanced Data in Network Intrusion Classification’, in 2024 International Electronics Symposium (IES), IEEE, 2024, pp. 534–540. Accessed: Feb. 08, 2025. [Online]. Available: https://ieeexplore.ieee.org/abstract/document/10665861/

H. M. Saleh, H. Marouane, and A. Fakhfakh, ‘Improves Intrusion Detection Performance InWireless Sensor Networks Through Machine Learning, Enhanced By An Accelerated Deep Learning Model With Advanced Feature Selection’, Iraqi Journal for Computer Science and Mathematics, vol. 5, no. 3, p. 23, 2024.




DOI: https://doi.org/10.47738/jads.v6i3.717

Refbacks

  • There are currently no refbacks.



Barcode

Journal of Applied Data Sciences

ISSN:2723-6471 (Online)
Publisher:Bright Publisher
Website:http://bright-journal.org/JADS
Email:taqwa@amikompurwokerto.ac.id (principal contact)
  support@bright-journal.org (technical issues)

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0