Skip to main content

Network Intrusion System Detection Using Machine and Deep Learning Models: A Comparative Study

  • Conference paper
  • First Online:
Artificial Intelligence, Data Science and Applications (ICAISE 2023)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 837))

  • 105 Accesses

Abstract

As Internet technology advances, the exponential growth of network security risks is becoming increasingly apparent. Safeguarding the network poses a significant challenge in the realm of network security. Numerous security measures have been put in place to detect and pinpoint any malicious activities occurring within the network. Among these mechanisms, the Intrusion Detection System (IDS) stands out as a widely utilized mechanism to reduce the impact of these risks. In this paper, a comparative study of different machine learning classifiers namely decision tree, random forest, SVM, KNN and different deep learning models including CNN, GRU and LSTM is performed to select the best approach for intrusion detection. Our approach consists of three main steps: pre-processing, feature extraction and selection, and classification and validation. The experiments are conducted using two large datasets namely KDDCUP99 and Hogzilla datasets in both binary and multi-class classification fashion. The evaluation results show the superiority of deep learning methods over machine learning classifiers on both datasets.

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 149.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 199.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

Notes

  1. 1.

    K-fold cross validation formula at https://stats.stackexchange.com/questions/17431/a-mathematical-formula-for-k-fold-cross-validation-prediction-error

  2. 2.

    http://kdd.ics.uci.edu/databases/kddcup99/kddcup99.html

  3. 3.

    https://ids-hogzilla.org/dataset/

References

  1. Li, W. et al.: A new intrusion detection system based on KNN classification algorithm in wireless sensor network. J. Electri. Comput. Eng. (2014)

    Google Scholar 

  2. Shapoorifard, H., Shamsinejad, P.: Intrusion detection using a novel hybrid method incorporating an improved KNN. Int. J. Comput. Appl. 173(1), 5–9 (2017)

    Google Scholar 

  3. Farnaaz, N., Jabbar, M.: Random forest modeling for network intrusion detection system. Proc. Comput. Sci. 89, 213–217 (2016)

    Article  Google Scholar 

  4. Staudemeyer, R.C.: Applying long short-term memory recurrent neural networks to intrusion detection. South Afri. Comput. J. 56(1), 136–154 (2015)

    Google Scholar 

  5. Yin, C., et al.: A deep learning approach for intrusion detection using recurrent neural networks. IEEE Access 5, 21954–21961 (2017)

    Article  Google Scholar 

  6. Vinayakumar, R., et al.: Deep learning approach for intelligent intrusion detection system. IEEE Access 7, 41525–41550 (2019)

    Article  Google Scholar 

  7. Shone, N., et al.: A deep learning approach to network intrusion detection. IEEE Trans. Emerg. Topics in Computat. Intell. 2(1), 41–50 (2018)

    Article  Google Scholar 

  8. Vinayakumar, R., Soman, K., Poornachandran, P.: Applying convolutional neural network for network intrusion detection. In: 2017 International Conference on Advances in Computing, Communications and Informatics (ICACCI), IEEE (2017)

    Google Scholar 

  9. Herve Nkiama, S.Z.M.S., Saidu, M: A subset feature elimination mechanism for intrusion detection system. (IJACSA) Int. J. Adv. Comput. Sci. Appl. 7(4) (2016)

    Google Scholar 

  10. Lantz, B.: Machine learning with R. 2nd ed. Birmingham, Packt Publishing (2015)

    Google Scholar 

  11. Zulkernine, Z.A.: Network intrusion detection using random forests. Citeseer (2005)

    Google Scholar 

  12. Kilian, Q., Weinberger, L.K.S.: Distance metric learning for large margin nearest neighbor classification. J. Mach. Learn. Res. 10, 207–244 (2009)

    Google Scholar 

  13. Yi, T. et al.: Review on the application of deep learning in network attack detection. J. Netw. Comput. Appl. 212, 103580 (2023)

    Google Scholar 

  14. Mining, K.D.a.D.: In: The Fifth International Conference on Knowledge Discovery and Data Mining. http://kdd.ics.uci.edu/databases/kddcup99/kddcup99.html

  15. Resende, P.A.A., Drummond, A.C.: An active labeling approach for behavioral-based intrusion detection systems. Comput. Secur. (2020)

    Google Scholar 

  16. Resende, P.A.A., Drummond, A.C.: HTTP and contact‐based features for Botnet detection. Secur. Privacy (2018)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Asmaa Benchama .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 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

Benchama, A., Bensoltane, R., Zebbara, K. (2024). Network Intrusion System Detection Using Machine and Deep Learning Models: A Comparative Study. In: Farhaoui, Y., Hussain, A., Saba, T., Taherdoost, H., Verma, A. (eds) Artificial Intelligence, Data Science and Applications. ICAISE 2023. Lecture Notes in Networks and Systems, vol 837. Springer, Cham. https://doi.org/10.1007/978-3-031-48465-0_36

Download citation

Publish with us

Policies and ethics