Skip to main content

Spam Detection Using Genetic Algorithm Optimized LSTM Model

  • Conference paper
  • First Online:
Computer Networks and Inventive Communication Technologies

Part of the book series: Lecture Notes on Data Engineering and Communications Technologies ((LNDECT,volume 75))

Abstract

The advancement in technology over the years has resulted in the increased usage of SMS which in turn has provided certain groups a chance to exploit this service by spreading spam messages to consumers making it difficult for people to receive important information and also possessing a threat to their privacy. There are numerous machine learning and deep learning techniques that have been used for spam detection and have proved to be effective. But in deep learning techniques, it is essential to fine-tune the hyperparameters which requires excessive computational power and time, making the process less feasible. The proposed work aims at reducing this computational barrier and time by using Genetic Algorithm in order to select the key hyperparameters. A randomly generated population of LSTM models was created and further generations were produced following the different stages of the genetic algorithm multiple times until the terminal condition was met, and the performance of each candidate solution was evaluated using a chosen fitness function. The most optimal configuration was obtained from the final generation which is used to classify the messages. Four metrics, namely the accuracy, precision, recall and f1-score were used to analyze the model’s performance. The experimental results demonstrate that the Genetic Algorithm optimized LSTM model was able to outperform the other machine learning models.

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 299.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 379.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. Gupta, M. et al.: A comparative study of spam SMS detection using machine learning classifiers. In: 2018 Eleventh International Conference on Contemporary Computing (IC3). IEEE, 2018, pp. 1–7

    Google Scholar 

  2. Navaney, P., Dubey, G., Rana, A., SMS spam filtering using supervised machine learning algorithms. In: 8th International Conference on Cloud Computing, Data Science & Engineering (Confluence), 2018, pp. 43–48

    Google Scholar 

  3. Delany, S., Buckley, Greene, D.: SMS spam filtering: methods and data. In: Expert Systems with Applications (Feb. 2013), pp. 9899-9908. https://doi.org/10.1016/j.eswa.2012.02.053

  4. Nizar Bouguila and Ola Amayri: A discrete mixture-based kernel for SVMs: application to spam and image categorization. Inf. Process. Manage. 45(6), 631–642 (2009)

    Article  Google Scholar 

  5. Bahgat, E.M., Rady, S., Gad, W.: An e-mail filtering approach using classification techniques. In: The 1st International Conference on Advanced Intelligent System and Informatics (AISI2015), Nov 28–30, 2015, pp. 321–331. Springer, Beni Suef, Egypt, 2016

    Google Scholar 

  6. Islam, M.S., Mahmud, A.A., Islam, M.R.: Machine learning approaches for modeling spammer behavior. In: Asia Information Retrieval Symposium, pp. 251–260. Springer, 2010

    Google Scholar 

  7. Gorgolis, N.: Hyperparameter optimization of LSTM network models through genetic algorithm. In: 10th International Conference on Information, Intelligence, Systems and Applications (IISA), pp 1–4. IEEE, 2019

    Google Scholar 

  8. Elbeltagi, E., Hegazy, T., Grierson, D.: Comparison among five evolutionary-based optimization algorithms. Adv. Eng. Inform. 19(1), 43–53 (2005)

    Google Scholar 

  9. McCall, John: Genetic algorithms for modelling and optimisation. J. Comput. Appl. Math. 184(1), 205–222 (2005)

    Article  MathSciNet  Google Scholar 

  10. Mahajan, R., Kaur, G.: Neural networks using genetic algorithms. Int. J. Comput. Appl. 77(14) (2013)

    Google Scholar 

  11. Arram, A., Mousa, H., Zainal, A.: Spam detection using hybrid artificial neural network and genetic algorithm. In: 2013 13th International Conference on Intelligent Systems Design and Applications. IEEE, pp. 336–340, 2013

    Google Scholar 

  12. Chung , H., Shin, K.: Genetic algorithm-optimized long short-term memory network for stock market prediction. Sustainability 10(10), 3765 (2018)

    Google Scholar 

  13. Yadav, K. et al.: SMSAssassin: crowdsourcing driven mobile-based system for SMS spam filtering. In: Proceedings of the 12th Workshop on Mobile Computing Systems and Applications, 2011, pp. 1–6

    Google Scholar 

  14. Charbonneau, P.: An introduction to genetic algorithms for numerical optimization. In: NCAR Technical Note 74 (2002)

    Google Scholar 

  15. Zhong, J. et al.: Comparison of performance between different selection strategies on simple genetic algorithms. In: International Conference on Computational Intelligence for Modelling, Control and Automation and International Conference on Intelligent Agents, Web Technologies and Internet Commerce (CIMCA-IAWTIC’06), vol. 2, pp. 1115–1121. IEEE, 2005

    Google Scholar 

  16. Tabassum, M., Mathew, K., et al.: A genetic algorithm analysis towards optimization solutions. Int. J. Dig. Inf. Wirel. Commun. (IJDIWC) 4(1), 124–142 (2014)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

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

Sinhmar, A., Malhotra, V., Yadav, R.K., Kumar, M. (2022). Spam Detection Using Genetic Algorithm Optimized LSTM Model. In: Smys, S., Bestak, R., Palanisamy, R., Kotuliak, I. (eds) Computer Networks and Inventive Communication Technologies . Lecture Notes on Data Engineering and Communications Technologies, vol 75. Springer, Singapore. https://doi.org/10.1007/978-981-16-3728-5_5

Download citation

  • DOI: https://doi.org/10.1007/978-981-16-3728-5_5

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-16-3727-8

  • Online ISBN: 978-981-16-3728-5

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics