International Peer-Reviewed Journal•Open Access•ISSN 2456-8880
irejournals@gmail.com•+91-7433024337

Home / Current Issue / Paper 1715458

1715458 Vol 9 · Issue 9 Download Paper

Bidirectional LSTM for Spam Detection and Sentimental Analysis

Sadineni Gopichand Sontineni Jaswanth Siva Sai Shaik Khaja Afrid Ali Dr. S J R K Padminivalli V

Subject area: Science,Engineering and Technology  ·  Area of research: Machine learning

DOI: 10.64388/IREV9I9-1715458

Abstract

Short Message Service (SMS) and email communication have become primary vectors for spam, placing heavy burdens on users and mobile network operators. This paper proposes a Bidirectional Long Short-Term Memory (BiLSTM) deep learning model for spam detection and sentiment analysis, evaluated on three benchmark datasets: SpamAssassin, SMS, and Email. The model is compared against a Hybrid K-Nearest Neighbors and Support Vector Machine (Hybrid KNN-SVM) classifier from the prior literature. Preprocessing involves stemming, tokenization, and stop-word removal, followed by Word2Vec-based feature extraction. The BiLSTM network captures both past and future contextual information in text sequences, substantially outperforming the hybrid baseline. On the SpamAssassin dataset, BiLSTM achieves an accuracy of 98.77%, and on the Email dataset it reaches 99.11%. Sentiment polarity is classified using AFINN and SentiWordNet lexicons. Experimental results confirm that the proposed BiLSTM model yields superior accuracy, recall, F1-score, Kappa statistics, MAE, and RMSE across all three datasets.

Keywords

Spam Detection, BiLSTM, Deep Learning, SMS, Sentiment Analysis, Word2Vec, SpamAssassin

References

[1] Abayomi-Alli O, Misra S, Abayomi-Alli A, Odusami M (2019). A review of soft techniques for SMS spam classification: methods, approaches and applications. Engineering Applications of Artificial Intelligence, 86, 197–212.

[2] Barushka A, Hajek P (2020). Spam detection on social networks using cost-sensitive feature selection and ensemble-based regularized deep neural networks. Neural Computing and Applications, 32(9), 4239–4257.

[3] Cekik R, Uysal AK (2020). A novel filter feature selection method using rough set for short text data. Expert Systems with Applications, 160, 113691.

[4] Chandra A, Khatri SK (2019). Spam SMS filtering using recurrent neural network and long short-term memory. In: 4th International Conference on Information Systems and Computer Networks (ISCON), IEEE, pp. 118–122.

[5] Dhiman G, Garg M, Nagar A, Kumar V, Dehghani M (2020). A novel algorithm for global optimization: rat swarm optimizer. Journal of Ambient Intelligence and Humanized Computing.

[6] Gupta M, Bakliwal A, Agarwal S, Mehndiratta P (2018). A comparative study of spam SMS detection using machine learning classifiers. In: 11th International Conference on Contemporary Computing (IC3), IEEE, pp. 1–7.

[7] Labani M, Moradi P, Ahmadizar F, Jalili M (2018). A novel multivariate filter method for feature selection in text classification problems. Engineering Applications of Artificial Intelligence, 70, 25–37.

[8] Lall S, Sinha D, Ghosh A, Sengupta D, Bandyopadhyay S (2021). Stable feature selection using copula-based mutual information. Pattern Recognition, 112, 107697.

[9] Lee HY, Kang SS (2019). Word embedding method of SMS messages for spam message filtering. In: IEEE International Conference on Big Data and Smart Computing (BigComp), pp. 1–4.

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

[11] Pong-Inwong C, Songpan W (2019). Sentiment analysis in teaching evaluations using sentiment phrase pattern matching (SPPM). International Journal of Machine Learning and Cybernetics, 10(8), 2177–2186.

[12] Roy PK, Singh JP, Banerjee S (2020). Deep learning to filter SMS spam. Future Generation Computer Systems, 102, 524–533.

[13] Sharma S, Kumar P, Kumar K (2017, 2019). LEXER: lexicon-based emotion analyzer and related works. Pattern Recognition and Machine Intelligence, Springer.

[14] Su YJ, Hu WC, Jiang JH, Su RY (2020). A novel LMAEB-CNN model for Chinese microblog sentiment analysis. Journal of Supercomputing.

[15] Hochreiter S, Schmidhuber J (1997). Long short-term memory. Neural Computation, 9(8), 1735–1780.]

[16] [Schuster M, Paliwal KK (1997). Bidirectional recurrent neural networks. IEEE Transactions on Signal Processing, 45(11), 2673–2681.]

How to cite this paper

Sadineni Gopichand, Sontineni Jaswanth Siva Sai , Shaik Khaja Afrid Ali, Dr. S J R K Padminivalli V "Bidirectional LSTM for Spam Detection and Sentimental Analysis" Iconic Research And Engineering Journals Volume 9 Issue 9 2026 Page 2410-2417 https://doi.org/10.64388/IREV9I9-1715458
Sadineni Gopichand, Sontineni Jaswanth Siva Sai , Shaik Khaja Afrid Ali, Dr. S J R K Padminivalli V "Bidirectional LSTM for Spam Detection and Sentimental Analysis" Iconic Research And Engineering Journals, vol. 9, no. 9, Mar. 2026, doi: https://doi.org/10.64388/IREV9I9-1715458
Sadineni Gopichand, Sontineni Jaswanth Siva Sai , Shaik Khaja Afrid Ali, Dr. S J R K Padminivalli V (2026). Bidirectional LSTM for Spam Detection and Sentimental Analysis. Iconic Research And Engineering Journals, 9(9). doi: https://doi.org/10.64388/IREV9I9-1715458
Sadineni Gopichand, Sontineni Jaswanth Siva Sai , Shaik Khaja Afrid Ali, Dr. S J R K Padminivalli V "Bidirectional LSTM for Spam Detection and Sentimental Analysis" Iconic Research And Engineering Journals, vol. 9, no. 9, Mar. 2026. Crossref, https://doi.org/10.64388/IREV9I9-1715458
@article{1715458,
      author = {Sadineni Gopichand, Sontineni Jaswanth Siva Sai , Shaik Khaja Afrid Ali, Dr. S J R K Padminivalli V},
      title = {Bidirectional LSTM for Spam Detection and Sentimental Analysis},
      journal = {Iconic Research And Engineering Journals},
      year = {2026},
      volume = {9},
      number = {9},
      pages = {2410-2417},
      issn = {2456-8880},
      url = {https://www.irejournals.com/formatedpaper/1715458.pdf},
      abstract = {Short Message Service (SMS) and email communication have become primary vectors for spam, placing heavy burdens on users and mobile network operators. This paper proposes a Bidirectional Long Short-Term Memory (BiLSTM) deep learning model for spam detection and sentiment analysis, evaluated on three benchmark datasets: SpamAssassin, SMS, and Email. The model is compared against a Hybrid K-Nearest Neighbors and Support Vector Machine (Hybrid KNN-SVM) classifier from the prior literature. Preprocessing involves stemming, tokenization, and stop-word removal, followed by Word2Vec-based feature extraction. The BiLSTM network captures both past and future contextual information in text sequences, substantially outperforming the hybrid baseline. On the SpamAssassin dataset, BiLSTM achieves an accuracy of 98.77%, and on the Email dataset it reaches 99.11%. Sentiment polarity is classified using AFINN and SentiWordNet lexicons. Experimental results confirm that the proposed BiLSTM model yields superior accuracy, recall, F1-score, Kappa statistics, MAE, and RMSE across all three datasets.},
      keywords = {Spam Detection, BiLSTM, Deep Learning, SMS, Sentiment Analysis, Word2Vec, SpamAssassin},
      month = {March},
      doi = {https://doi.org/10.64388/IREV9I9-1715458}
  }