Skip to main content

The XGBoost Model for Network Intrusion Detection Boosted by Enhanced Sine Cosine Algorithm

  • Conference paper
  • First Online:
Third International Conference on Image Processing and Capsule Networks (ICIPCN 2022)

Abstract

Network intrusion detection systems are created with the purpose of detecting and identifying threats and vulnerabilities of a target network. One of the most cardinal challenge with such systems is that they frequently generate a considerable high rate of false positives and false negatives and that has a profound influence on its efficiency. However, this issue can be mitigated by applying machine learning models and algorithms. Therefore, in the research shown is in this paper, drawbacks of network intrusion detection systems are addressed by applying well-known XGBoost classifier tuned with improved sine cosine metaheuristics. It is known that machine learning models such is XGBoost should be optimized for each practical problem (dataset) and in this study was shown that XGBoost hyper-parameters’ tuning can be efficiently conducted by applying improved sine cosine algorithm. Proposed hybrid framework is validated against benchmarking NSL-KDD dataset and compared to XGBoost without tuning, as well as with few other metaheuristics approaches used for XGBoost tuning, including original sine cosine algorithm. Obtained research findings prove that proposed method is able to improve classificthe position of the current solution that is shown ation accuracy and precision compared to other methods including in the analysis.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 219.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 279.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Ahmed, M., Pal, R., Hossain, M.M., Bikas, M.A.N., Hasan, M.K.: NIDS: a network based approach to intrusion detection and prevention. In: 2009 International Association of Computer Science and Information Technology-Spring Conference, pp. 141–144. IEEE (2009)

    Google Scholar 

  2. Anderson, J.A.: An Introduction to Neural Networks. MIT Press, Cambridge (1995)

    Google Scholar 

  3. Bacanin, N., Alhazmi, K., Zivkovic, M., Venkatachalam, K., Bezdan, T., Nebhen, J.: Training multi-layer perceptron with enhanced brain storm optimization metaheuristics. Comput. Mater. Continua 70(2), 4199–4215 (2022). https://doi.org/10.32604/cmc.2022.020449, http://www.techscience.com/cmc/v70n2/44706

  4. Bacanin, N., Arnaut, U., Zivkovic, M., Bezdan, T., Rashid, T.A.: Energy efficient clustering in wireless sensor networks by opposition-based initialization Bat algorithm. In: Smys, S., Bestak, R., Palanisamy, R., Kotuliak, I. (eds.) Computer Networks and Inventive Communication Technologies. LNDECT, vol. 75, pp. 1–16. Springer, Singapore (2022). https://doi.org/10.1007/978-981-16-3728-5_1

    Chapter  Google Scholar 

  5. Bacanin, N., Bezdan, T., Tuba, E., Strumberger, I., Tuba, M.: Monarch butterfly optimization based convolutional neural network design. Mathematics 8(6), 936 (2020)

    Article  Google Scholar 

  6. Bacanin, N., Bezdan, T., Tuba, E., Strumberger, I., Tuba, M., Zivkovic, M.: Task scheduling in cloud computing environment by grey wolf optimizer. In: 2019 27th Telecommunications Forum (TELFOR), pp. 1–4. IEEE (2019)

    Google Scholar 

  7. Bacanin, N., et al.: Artificial neural networks hidden unit and weight connection optimization by quasi-refection-based learning artificial bee colony algorithm. IEEE Access 9, 169135–169155 (2021)

    Article  Google Scholar 

  8. Bacanin, N., Bezdan, T., Zivkovic, M., Chhabra, A.: Weight optimization in artificial neural network training by improved monarch butterfly algorithm. In: Shakya, S., Bestak, R., Palanisamy, R., Kamel, K.A. (eds.) Mobile Computing and Sustainable Informatics. LNDECT, vol. 68, pp. 397–409. Springer, Singapore (2022). https://doi.org/10.1007/978-981-16-1866-6_29

    Chapter  Google Scholar 

  9. Bacanin, N., Petrovic, A., Zivkovic, M., Bezdan, T., Antonijevic, M.: Feature selection in machine learning by hybrid sine cosine metaheuristics. In: Singh, M., Tyagi, V., Gupta, P.K., Flusser, J., Ören, T., Sonawane, V.R. (eds.) ICACDS 2021. CCIS, vol. 1440, pp. 604–616. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-81462-5_53

    Chapter  Google Scholar 

  10. Bacanin, N., Stoean, R., Zivkovic, M., Petrovic, A., Rashid, T.A., Bezdan, T.: Performance of a novel chaotic firefly algorithm with enhanced exploration for tackling global optimization problems: application for dropout regularization. Mathematics 9(21), 1–33 (2021). https://doi.org/10.3390/math9212705, https://www.mdpi.com/2227-7390/9/21/2705

  11. Bacanin, N., Tuba, E., Zivkovic, M., Strumberger, I., Tuba, M.: Whale optimization algorithm with exploratory move for wireless sensor networks localization. In: Abraham, A., Shandilya, S.K., Garcia-Hernandez, L., Varela, M.L. (eds.) HIS 2019. AISC, vol. 1179, pp. 328–338. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-49336-3_33

    Chapter  Google Scholar 

  12. Bacanin, N., Zivkovic, M., Bezdan, T., Cvetnic, D., Gajic, L.: Dimensionality reduction using hybrid brainstorm optimization algorithm. In: Saraswat, M., Roy, S., Chowdhury, C., Gandomi, A.H. (eds.) Proceedings of International Conference on Data Science and Applications. LNNS, vol. 287, pp. 679–692. Springer, Singapore (2022). https://doi.org/10.1007/978-981-16-5348-3_54

    Chapter  Google Scholar 

  13. Bacanin, N., Zivkovic, M., Bezdan, T., Venkatachalam, K., Abouhawwash, M.: Modified firefly algorithm for workflow scheduling in cloud-edge environment. Neural Comput. Appl. 34, 9043–9068 (2022)

    Article  Google Scholar 

  14. Basha, J., et al.: Chaotic Harris Hawks optimization with quasi-reflection-based learning: an application to enhance CNN design. Sensors 21(19), 6654 (2021)

    Article  Google Scholar 

  15. Bejtlich, R.: The Tao of Network Security Monitoring: Beyond Intrusion Detection. Pearson Education, Boston (2004)

    Google Scholar 

  16. Bezdan, T., Milosevic, S., Venkatachalam, K., Zivkovic, M., Bacanin, N., Strumberger, I.: Optimizing convolutional neural network by hybridized elephant herding optimization algorithm for magnetic resonance image classification of glioma brain tumor grade. In: 2021 Zooming Innovation in Consumer Technologies Conference (ZINC), pp. 171–176. IEEE (2021)

    Google Scholar 

  17. Bezdan, T., Petrovic, A., Zivkovic, M., Strumberger, I., Devi, V.K., Bacanin, N.: Current best opposition-based learning SALP swarm algorithm for global numerical optimization. In: 2021 Zooming Innovation in Consumer Technologies Conference (ZINC), pp. 5–10. IEEE (2021)

    Google Scholar 

  18. Bezdan, T., et al.: Hybrid fruit-fly optimization algorithm with k-means for text document clustering. Mathematics 9(16), 1929 (2021)

    Article  Google Scholar 

  19. Bezdan, T., Zivkovic, M., Tuba, E., Strumberger, I., Bacanin, N., Tuba, M.: Glioma brain tumor grade classification from MRI using convolutional neural networks designed by modified FA. In: Kahraman, C., Cevik Onar, S., Oztaysi, B., Sari, I.U., Cebi, S., Tolga, A.C. (eds.) INFUS 2020. AISC, vol. 1197, pp. 955–963. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-51156-2_111

    Chapter  Google Scholar 

  20. Bezdan, T., Zivkovic, M., Tuba, E., Strumberger, I., Bacanin, N., Tuba, M.: Multi-objective task scheduling in cloud computing environment by hybridized Bat algorithm. In: Kahraman, C., Cevik Onar, S., Oztaysi, B., Sari, I.U., Cebi, S., Tolga, A.C. (eds.) INFUS 2020. AISC, vol. 1197, pp. 718–725. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-51156-2_83

    Chapter  Google Scholar 

  21. Chen, T., Guestrin, C.: XGBoost: a scalable tree boosting system. In: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 785–794 (2016)

    Google Scholar 

  22. Chen, Z., Jiang, F., Cheng, Y., Gu, X., Liu, W., Peng, J.: XGBoost classifier for DDoS attack detection and analysis in SDN-based cloud. In: 2018 IEEE international Conference on Big Data And Smart Computing (BigComp), pp. 251–256. IEEE (2018)

    Google Scholar 

  23. Cuk, A., et al.: Feedforward multi-layer perceptron training by hybridized method between genetic algorithm and Artificial Bee Colony. In: Data Science and Data Analytics: Opportunities and Challenges, p. 279 (2021)

    Google Scholar 

  24. Depren, O., Topallar, M., Anarim, E., Ciliz, M.K.: An intelligent intrusion detection system (IDS) for anomaly and misuse detection in computer networks. Expert Syst. Appl. 29(4), 713–722 (2005)

    Article  Google Scholar 

  25. Dhiman, G., Kumar, V.: Emperor penguin optimizer: a bio-inspired algorithm for engineering problems. Knowl.-Based Syst. 159, 20–50 (2018)

    Article  Google Scholar 

  26. Gajic, L., Cvetnic, D., Zivkovic, M., Bezdan, T., Bacanin, N., Milosevic, S.: Multi-layer perceptron training using hybridized Bat algorithm. In: Smys, S., Tavares, J.M.R.S., Bestak, R., Shi, F. (eds.) Computational Vision and Bio-Inspired Computing. AISC, vol. 1318, pp. 689–705. Springer, Singapore (2021). https://doi.org/10.1007/978-981-33-6862-0_54

    Chapter  Google Scholar 

  27. Jabeur, S.B., Mefteh-Wali, S., Viviani, J.-L.: Forecasting gold price with the XGBoost algorithm and SHAP interaction values. Annals of Operations Research , 1–21 (2021). https://doi.org/10.1007/s10479-021-04187-w

  28. Jiang, H., He, Z., Ye, G., Zhang, H.: Network intrusion detection based on PSO-XGBoost model. IEEE Access 8, 58392–58401 (2020)

    Article  Google Scholar 

  29. Karaboga, D.: Artificial bee colony algorithm. Scholarpedia 5(3), 6915 (2010)

    Article  Google Scholar 

  30. Milosevic, S., Bezdan, T., Zivkovic, M., Bacanin, N., Strumberger, I., Tuba, M.: Feed-forward neural network training by hybrid bat algorithm. In: MDIS 2020. CCIS, vol. 1341, pp. 52–66. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-68527-0_4

    Chapter  Google Scholar 

  31. Mirjalili, S.: SCA: a sine cosine algorithm for solving optimization problems. Knowl.-Based Syst. 96, 120–133 (2016)

    Article  Google Scholar 

  32. Mirjalili, S., Lewis, A.: The whale optimization algorithm. Adv. Eng. Softw. 95, 51–67 (2016)

    Article  Google Scholar 

  33. Mirjalili, S., Mirjalili, S.M., Lewis, A.: Grey wolf optimizer. Adv. Eng. Softw. 69, 46–61 (2014). https://doi.org/10.1016/j.advengsoft.2013.12.007, https://www.sciencedirect.com/science/article/pii/S0965997813001853

  34. Ogunleye, A., Wang, Q.G.: XGBoost model for chronic kidney disease diagnosis. IEEE/ACM Trans. Comput. Biol. Bioinform. 17(6), 2131–2140 (2019)

    Article  Google Scholar 

  35. Prakash, S., Kumar, M.V., Ram, R.S., Zivkovic, M., Bacanin, N., Antonijevic, M.: Hybrid GLFIL enhancement and encoder animal migration classification for breast cancer detection. Comput. Syst. Sci. Eng. 41(2), 735–749 (2022)

    Article  Google Scholar 

  36. Protić, D.D.: Review of KDD CUP’99, NSL-KDD and Kyoto 2006+ datasets. Vojnotehnički glasnik 66(3), 580–596 (2018)

    Article  Google Scholar 

  37. Qin, C., Zhang, Y., Bao, F., Zhang, C., Liu, P., Liu, P.: XGBoost optimized by adaptive particle swarm optimization for credit scoring. Math. Probl. Eng. 2021, 6655510 (2021)

    Google Scholar 

  38. Ryu, S.E., Shin, D.H., Chung, K.: Prediction model of dementia risk based on XGBoost using derived variable extraction and hyper parameter optimization. IEEE Access 8, 177708–177720 (2020)

    Article  Google Scholar 

  39. Sheng, M., Liu, H., Yang, X., Wang, W., Huang, J., Wang, B.: Network security situation prediction in software defined networking data plane. In: 2020 IEEE International Conference on Advances in Electrical Engineering and Computer Applications (AEECA), pp. 475–479. IEEE (2020)

    Google Scholar 

  40. da Silva, L.M., Silveira, M.R., Cansian, A.M., Kobayashi, H.K.: Multiclass classification of malicious domains using passive DNS with XGBoost: (work in progress). In: 2020 IEEE 19th International Symposium on Network Computing and Applications (NCA), pp. 1–3. IEEE (2020)

    Google Scholar 

  41. Strumberger, I., Tuba, E., Bacanin, N., Zivkovic, M., Beko, M., Tuba, M.: Designing convolutional neural network architecture by the firefly algorithm. In: 2019 International Young Engineers Forum (YEF-ECE), pp. 59–65. IEEE (2019)

    Google Scholar 

  42. Wang, Y., et al.: An exhaustive research on the application of intrusion detection technology in computer network security in sensor networks. J. Sens. 2021, 5558860 (2021)

    Google Scholar 

  43. Wolpert, D.H., Macready, W.G.: No free lunch theorems for optimization. IEEE Trans. Evol. Comput. 1(1), 67–82 (1997)

    Article  Google Scholar 

  44. Yang, X.S., Slowik, A.: Firefly algorithm. In: Swarm Intelligence Algorithms, pp. 163–174. CRC Press (2020)

    Google Scholar 

  45. Zhang, X., Nguyen, H., Bui, X.N., Tran, Q.H., Nguyen, D.A., Bui, D.T., Moayedi, H.: Novel soft computing model for predicting blast-induced ground vibration in open-pit mines based on Particle Swarm Optimization and XGBoost. Nat. Resour. Res. 29(2), 711–721 (2020)

    Article  Google Scholar 

  46. Zivkovic, M., Bacanin, N., Tuba, E., Strumberger, I., Bezdan, T., Tuba, M.: Wireless sensor networks life time optimization based on the improved firefly algorithm. In: 2020 International Wireless Communications and Mobile Computing (IWCMC), pp. 1176–1181. IEEE (2020)

    Google Scholar 

  47. Zivkovic, M., et al.: Covid-19 cases prediction by using hybrid machine learning and beetle antennae search approach. Sustain. Cities Soc. 66, 102669 (2021)

    Article  Google Scholar 

  48. Zivkovic, M., Bacanin, N., Zivkovic, T., Strumberger, I., Tuba, E., Tuba, M.: Enhanced grey wolf algorithm for energy efficient wireless sensor networks. In: 2020 Zooming Innovation in Consumer Technologies Conference (ZINC), pp. 87–92. IEEE (2020)

    Google Scholar 

  49. Zivkovic, M., Bezdan, T., Strumberger, I., Bacanin, N., Venkatachalam, K.: Improved Harris Hawks optimization algorithm for workflow scheduling challenge in cloud–edge environment. In: Pandian, A.P., Fernando, X., Islam, S.M.S. (eds.) Computer Networks, Big Data and IoT. LNDECT, vol. 66, pp. 87–102. Springer, Singapore (2021). https://doi.org/10.1007/978-981-16-0965-7_9

    Chapter  Google Scholar 

  50. Zivkovic, M., et al.: Hybrid genetic algorithm and machine learning method for COVID-19 cases prediction. In: Shakya, S., Balas, V.E., Haoxiang, W., Baig, Z. (eds.) Proceedings of International Conference on Sustainable Expert Systems. LNNS, vol. 176, pp. 169–184. Springer, Singapore (2021). https://doi.org/10.1007/978-981-33-4355-9_14

    Chapter  Google Scholar 

  51. Zivkovic, M., Zivkovic, T., Venkatachalam, K., Bacanin, N.: Enhanced dragonfly algorithm adapted for wireless sensor network lifetime optimization. In: Jeena Jacob, I., Kolandapalayam Shanmugam, S., Piramuthu, S., Falkowski-Gilski, P. (eds.) Data Intelligence and Cognitive Informatics. AIS, pp. 803–817. Springer, Singapore (2021). https://doi.org/10.1007/978-981-15-8530-2_63

    Chapter  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Nebojsa Bacanin .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

AlHosni, N. et al. (2022). The XGBoost Model for Network Intrusion Detection Boosted by Enhanced Sine Cosine Algorithm. In: Chen, J.IZ., Tavares, J.M.R.S., Shi, F. (eds) Third International Conference on Image Processing and Capsule Networks. ICIPCN 2022. Lecture Notes in Networks and Systems, vol 514. Springer, Cham. https://doi.org/10.1007/978-3-031-12413-6_17

Download citation

Publish with us

Policies and ethics