Skip to main content

A Model on Intrusion Detection Using Firefly Algorithm and Classical Machine Learning

  • Conference paper
  • First Online:
Advanced Machine Intelligence and Signal Processing

Abstract

Effective intrusion detection is one of the key concerns in increasing the sizes of the network. A network intrusion detection system is commonly used as a tool to detect and protect various networks. False-positive detection is one of the key issues because it can distract various organizations from legitimate securities. In this work, we have applied a firefly algorithm-based machine learning model to improve intrusion detection. Firefly-DT-based proposed model giving better classification accuracy in comparison to other KNN, random forest, and neural network models. Further, the firefly algorithm is used to find the optimal structure of the decision tree (DT) by minimizing the false positive and maximizing the true-positive intrusion detection rate. The NSL-KDD dataset is used as a benchmark to observe the outcomes of the proposed model. The performance analysis shows the usefulness of the model, and the comparative study also concludes the same.

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.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
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
Hardcover Book
USD 279.99
Price excludes VAT (USA)
  • Durable hardcover 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

Similar content being viewed by others

References

  1. Malik, A.J., Shahzad, W., Khan, F.A.: Network intrusion detection using hybrid binary PSO and random forests algorithm. Secur. Commun. Networks 8, 2646–2660 (2015)

    Article  Google Scholar 

  2. Bace, R.G., Mell, P.: Intrusion detection systems. US Department of Commerce, Technology Administration, National Institute of … (2001)

    Google Scholar 

  3. Aburomman, A.A., Reaz, M.B.I.: A novel SVM-kNN-PSO ensemble method for intrusion detection system. Appl. Soft Comput. 38, 360–372 (2016)

    Article  Google Scholar 

  4. Selvakumar, B., Muneeswaran, K.: Firefly algorithm based feature selection for network intrusion detection. Comput. Secur. 81, 148–155 (2019)

    Article  Google Scholar 

  5. Joo, D., Hong, T., Han, I.: The neural network models for IDS based on the asymmetric costs of false negative errors and false positive errors. Expert Syst. Appl. 25, 69–75 (2003)

    Article  Google Scholar 

  6. Dickson, A., Thomas, C.: Improved PSO for optimizing the performance of intrusion detection systems. J. Intell. Fuzzy Syst. 1–11 (2020)

    Google Scholar 

  7. Gómez, J., Gil, C., Baños, R., Márquez, A.L., Montoya, F.G., Montoya, M.: A Pareto-based multi-objective evolutionary algorithm for automatic rule generation in network intrusion detection systems. Soft. Comput. 17, 255–263 (2013)

    Article  Google Scholar 

  8. Caswell, B., Beale, J.: Snort 2.1 intrusion detection. Elsevier (2004)

    Google Scholar 

  9. Thomas, C., Balakrishnan, N.: Improvement in intrusion detection with advances in sensor fusion. IEEE Trans. Inf. Forensics Secur. 4, 542–551 (2009)

    Article  Google Scholar 

  10. Singh, S.K., Vidyarthi, D.P.: Independent tasks scheduling using parallel PSO in multiprocessor systems. Int. J. Grid High Perform. Comput. (IJGHPC) 7, 1–17 (2015)

    Article  Google Scholar 

  11. 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 

  12. Yang, X.-S.: Firefly algorithms for multimodal optimization. In: International symposium on stochastic algorithms, pp. 169–178. Springer (2009)

    Google Scholar 

  13. Yang, X.-S., Karamanoglu, M.: Swarm intelligence and bio-inspired computation: an overview. Swarm intelligence and bio-inspired computation 3–23 (2013)

    Google Scholar 

  14. Yang, X.-S., He, X.: Firefly algorithm: recent advances and applications. Int. J. Swarm Intell. 1, 36–50 (2013)

    Article  Google Scholar 

  15. Yoshimoto, E., Heckler, M.V.: Optimization of planar antenna arrays using the firefly algorithm. J. Microwaves Optoelectron. Electromagnet. Appl. 18, 126–140 (2019)

    Article  Google Scholar 

  16. Tavallaee, M., Bagheri, E., Lu, W., Ghorbani, A.A.: A detailed analysis of the KDD CUP 99 data set. In: 2009 IEEE symposium on computational intelligence for security and defense applications, pp. 1–6. IEEE (2009)

    Google Scholar 

  17. Dhanabal, L., Shantharajah, S.: A study on NSL-KDD dataset for intrusion detection system based on classification algorithms. Int. J. Adv. Res. Comput. Commun. Eng. 4, 446–452 (2015)

    Google Scholar 

  18. Sharma, M., Tan, R.-S., Acharya, U.R.: Automated heartbeat classification and detection of arrhythmia using optimal orthogonal wavelet filters. In: Informatics in Medicine Unlocked 16, 100221 (2019)

    Google Scholar 

  19. Tsai, C.-F., Hsu, Y.-F., Lin, C.-Y., Lin, W.-Y.: Intrusion detection by machine learning: a review. expert systems with applications 36, 11994–12000 (2009)

    Google Scholar 

  20. Navada, A., Ansari, A.N., Patil, S., Sonkamble, B.A.: Overview of use of decision tree algorithms in machine learning. In: 2011 IEEE control and system graduate research colloquium, pp. 37–42. IEEE (2011)

    Google Scholar 

  21. Liu, Y., Wang, Y., Zhang, J.: New machine learning algorithm: random forest. In: International Conference on Information Computing and Applications, pp. 246–252. Springer (2012)

    Google Scholar 

  22. Kumar, S., Mishra, S., Singh, S.K.: Deep Transfer learning-based COVID-19 prediction using Chest X-rays. medRxiv (2020)

    Google Scholar 

  23. Kumar, S., Mishra, S., Singh, S.K.: A machine learning-based model to estimate PM2. 5 concentration levels in Delhi's atmosphere. Heliyon 6, e05618 (2020)

    Google Scholar 

  24. Thomas, C., Balakrishnan, N.: Performance enhancement of intrusion detection systems using advances in sensor fusion. In: 11th International Conference on Information Fusion, pp. 1–7. IEEE (2008)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sunil Kumar Singh .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

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

Ranjan, P., Singh, S.K. (2022). A Model on Intrusion Detection Using Firefly Algorithm and Classical Machine Learning. In: Gupta, D., Sambyo, K., Prasad, M., Agarwal, S. (eds) Advanced Machine Intelligence and Signal Processing. Lecture Notes in Electrical Engineering, vol 858. Springer, Singapore. https://doi.org/10.1007/978-981-19-0840-8_16

Download citation

Publish with us

Policies and ethics