Implementation of Machine and Deep Learning Algorithms for Intrusion Detection System

  • Conference paper
  • First Online:
Intelligent Communication Technologies and Virtual Mobile Networks

Abstract

The intrusion detection system (IDS) is an important aspect of network security. This research article presents an analysis of machine and deep learning algorithms for intrusion detection systems. The study utilizes the CICIDS2017 dataset that consists of 79 features. Multilayer perceptrons (MLPs) and random forests (RFs) algorithms are implemented. Four features extraction techniques (information gain, extra tree, random forest, and correlation) are considered for experimentation. Two models have been presented, the first one using the machine learning random forest (RF) algorithm and the second using deep learning multilayer perceptron (MLP) algorithm. The increased accuracy has been observed when using the random forest algorithm. The RF algorithm gives the best results for the four feature selection techniques, thus proving that RF is better than MLP. The RF algorithm gives 99.90% accuracy, and 0.068% false positive rate (FPR) with 36 features. Furthermore, the dimensionality of the features has been reduced from 79 to 18 features with an accuracy of 99.70% and FRP of 0.19%.

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

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
EUR 29.95
Price includes VAT (France)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
EUR 213.99
Price includes VAT (France)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
EUR 263.74
Price includes VAT (France)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free ship** worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Vinayakumar R, Alazab M, Soman KP, Poornachandran P, Al-Nemrat A, Venkatraman S (2019) Deep learning approach for ıntelligent ıntrusion detection system. IEEE Access 7:41525–41550. https://doi.org/10.1109/ACCESS.2019.2895334

  2. Abdulraheem MH, Ibraheem NB (2019) A detailed analysis of new intrusion detection dataset. J Theor Appl Inf Technol 97(17):4519–4537

    Google Scholar 

  3. Hagar AA, Chaudhary DG, Al-bakhrani ALIA, Gawali BW (2020) Big Data analytic using machine learning algorithms for intrusion detection system: a survey, vol 10, no 3, pp 6063–6084

    Google Scholar 

  4. Buczak AL, Guven E (2016) A survey of data mining and machine learning methods for cyber security intrusion detection. IEEE Commun Surv Tutorials 18(2):1153–1176. https://doi.org/10.1109/COMST.2015.2494502

    Article  Google Scholar 

  5. Sathesh A (2019) Enhanced soft computıng approaches for intrusion. J Soft Comput Paradigm 1(2):69–79

    Google Scholar 

  6. Farhan RI, Maolood AT, Hassan NF (2020) Performance analysis of flow-based attacks detection on CSE-CIC-IDS2018 dataset using deep learning. Indonesian J Electr Eng Comput Sci 20(3):1413–1418. https://doi.org/10.11591/ijeecs.v20.i3.pp1413-1418

    Article  Google Scholar 

  7. Karatas G, Demir O, Sahingoz OK (2020) Increasing the performance of machine learning-based IDSs on an imbalanced and up-to-date dataset. IEEE Access 8:32150–32162. https://doi.org/10.1109/ACCESS.2020.2973219

    Article  Google Scholar 

  8. Joe CV, Raj JS (2021) Deniable authentication encryption for privacy protection using blockchain. J Artif Intell Capsule Netw 3(3):259–271

    Google Scholar 

  9. Goeschel K (2016) Reducing false positives in intrusion detection systems using data-mining techniques utilizing support vector machines, decision trees, and Naive Bayes for off-line analysis. In: Conference Proceedings—IEEE SOUTHEASTCON, vol 2016. https://doi.org/10.1109/SECON.2016.7506774

  10. Leevy JL, Khoshgoftaar TM (2020) A survey and analysis of intrusion detection models based on CSE-CIC-IDS2018 Big Data. J Big Data 7(1). https://doi.org/10.1186/s40537-020-00382-x

  11. Almansob SMH, Lomte SS (2017) Addressing challenges in big data intrusion detection system using machine learning techniques. Int J Comput Sci Eng 5(11):127–130. https://doi.org/10.26438/ijcse/v5i11.127130

    Article  Google Scholar 

  12. Peng K, Leung VCM, Huang Q (2018) Clustering approach based on mini batch Kmeans for ıntrusion detection system over Big Data. IEEE Access 6:11897–11906. https://doi.org/10.1109/ACCESS.2018.2810267

  13. Ustebay S, Turgut Z, Aydin MA (2018) Intrusion detection system with recursive feature elimination by using random forest and deep learning classifier. In: 2018 International congress on big data, deep learning and fighting cyber terrorism, pp 71–76

    Google Scholar 

  14. Tang TA, Ali S, Zaidi R, Mclernon D, Mhamdi L, Ghogho M (2018) Deep recurrent neural network for ıntrusion detection in SDN-based networks

    Google Scholar 

  15. Peng K, Leung VCM, Zheng L, Wang S, Huang C, Lin T (2018) Intrusion detection system based on decision tree over big data in fog environment. Wirel Commun Mob Comput 2018. https://doi.org/10.1155/2018/4680867

  16. Potluri S, Henry NF, Diedrich C (2017) Evaluation of hybrid deep learning techniques for ensuring security in networked control systems

    Google Scholar 

  17. Jiang J et al (2018) IEEE International conference on big data science and engineering method for application layer DdoS. In: 2018 17th IEEE International conference on trustworthy security and privacy computer communication. 12th IEEE International conference on big data science and engineering, pp 1565–1569 (2018). https://doi.org/10.1109/TrustCom/BigDataSE.2018.00225

  18. Sharafaldin I, Lashkari AH, Ghorbani AA (2018) Toward generating a new intrusion detection dataset and intrusion traffic characterization. In: ICISSP 2018—Proceedings of 4th International conference on ınformation systems, security and privacy, vol 2018, no Cic, pp 108–116. https://doi.org/10.5220/0006639801080116

  19. Potluri S, Diedrich C (2016) Accelerated deep neural networks for enhanced ıntrusion detection system

    Google Scholar 

  20. Vijayanand R, Devaraj D, Kannapiran B (2018) Intrusion detection system for wireless mesh network using multiple support vector machine classifiers with genetic-algorithm-based feature selection. Comput Secur. https://doi.org/10.1016/j.cose.2018.04.010

    Article  Google Scholar 

  21. Stiawan D, Yazid M, Bamhdi AM (2020) CICIDS-2017 dataset feature analysis with ınformation gain for anomaly detection. IEEE Access XX:1–12. https://doi.org/10.1109/ACCESS.2020.3009843

  22. Abdulhamed R et al (2019) Features dimensionality reduction approaches for machine learning based network. Electronics. https://doi.org/10.3390/electronics8030322

  23. Hamid Y, Balasaraswathi VR, Journaux L, Sugumaran M (2018) Benchmark datasets for network intrusion detection: a review. Int J Netw Secur 20(4):7. https://doi.org/10.6633/IJNS.2018xx.20(x).xx

    Article  Google Scholar 

  24. Othman SM, Ba-Alwi FM, Alsohybe NT, Al-Hashida AY (2018) Intrusion detection model using machine learning algorithm on Big Data environment. J Big Data 5(1). https://doi.org/10.1186/s40537-018-0145-4

  25. Keerthi Vasan K, Surendiran B (2016) Dimensionality reduction using principal component analysis for network intrusion detection. Perspect Sci 8:510–512. https://doi.org/10.1016/j.pisc.2016.05.010

  26. Zhou L, Pan S, Wang J, Vasilakos AV (2017) Machine learning on big data: opportunities and challenges. Neurocomputing 237:350–361. https://doi.org/10.1016/j.neucom.2017.01.026

  27. Genuer R, Poggi JM, Tuleau-Malot C, Villa-Vialaneix N (2017) Random forests for big data. Big Data Res 9:28–46. https://doi.org/10.1016/j.bdr.2017.07.003

    Article  Google Scholar 

  28. Chockwanich N, Visoottiviseth V (2019) Intrusion detection by deep learning with tensorflow. In: International conference on advanced communication technology (ICACT), vol 2019, pp 654–659. https://doi.org/10.23919/ICACT.2019.8701969

  29. Abirami S, Chitra P (2020) Energy-efficient edge based real-time healthcare support system, 1st edn, vol 117, no 1. Elsevier

    Google Scholar 

  30. Basnet RB, Shash R, Johnson C, Walgren L, Doleck T (2019) Towards detecting and classifying network intrusion traffic using deep learning frameworks. J Internet Serv Inf Secur 9(4):1–17. https://doi.org/10.22667/JISIS.2019.11.30.001

    Article  Google Scholar 

  31. Wang L, Jones R (2017) Big data analytics for network intrusion detection: a survey. Int J Netw Commun 7(1):24–31. https://doi.org/10.5923/j.ijnc.20170701.03

    Article  Google Scholar 

  32. Dahiya P, Srivastava DK (2020) Intrusion detection system on big data using deep learning techniques. Int J Innov Technol Exploring Eng 9(4):3242–3247. https://doi.org/10.35940/ijitee.D2011.029420

  33. Fernandes G, Carvalho LF, Rodrigues JJPC, Proença ML (2016) Network anomaly detection using IP flows with principal component analysis and ant colony optimization. J Netw Comput Appl 64:1–11. https://doi.org/10.1016/j.jnca.2015.11.024

    Article  Google Scholar 

  34. Kato K, Klyuev V (2017) Development of a network intrusion detection system using Apache Hadoop and Spark. In: 2017 IEEE conference on dependable security and computing, pp 416–423. https://doi.org/10.1109/DESEC.2017.8073860

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Abdulnaser A. Hagar .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Hagar, A.A., Gawali, B.W. (2023). Implementation of Machine and Deep Learning Algorithms for Intrusion Detection System. In: Rajakumar, G., Du, KL., Vuppalapati, C., Beligiannis, G.N. (eds) Intelligent Communication Technologies and Virtual Mobile Networks. Lecture Notes on Data Engineering and Communications Technologies, vol 131. Springer, Singapore. https://doi.org/10.1007/978-981-19-1844-5_1

Download citation

  • DOI: https://doi.org/10.1007/978-981-19-1844-5_1

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-19-1843-8

  • Online ISBN: 978-981-19-1844-5

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics

Navigation