A SPAMTRANSFORMERMODEL FOR SMS SPAM DETECTION

Authors

  • Mrs. R.SOWJANYA Author
  • Dr.K.KIRAN KUMAR Author
  • Gollakummari Anusha Author
  • Shaik Mahammad Abdulla Author
  • Jada Veeranjaneyulu Author
  • Ramineni Umamaheswara Rao Author

DOI:

https://doi.org/10.64751/7sp0x034

Keywords:

Transformer, SMS Spam Detection, Natural Language Processing, Attention Mechanism, Deep Learning, Text Classification

Abstract

 With the increasing volume of mobile communication, SMS spam has become a prevalent security issue, exposing users to fraudulent messages, scams, and unwanted advertisements. Traditional machine learning approaches such as Naïve Bayes, SVM, and classical neural networks have achieved reasonable accuracy but struggle with long-range dependencies, contextual understanding, and evolving spam patterns. This paper introduces a Transformer-based SMS spam detection model designed to capture semantic meaning and contextual relationships within text messages. Unlike recurrent models, Transformers rely on selfattention, enabling the system to focus on significant words within a message and understand subtle cues commonly used in modern spam. The proposed architecture incorporates tokenization, position embeddings, multihead attention, and feed-forward layers for efficient text classification. The model was trained on publicly available SMS datasets containing labeled ham (legitimate) and spam messages. Experimental results show that the Transformer model achieved higher precision, recall, and F1-score compared to traditional classifiers and LSTM-based systems. The approach demonstrates strong capability in generalizing across different message styles and languages. This work highlights the effectiveness of Transformers in text classification and establishes a scalable, high-accuracy solution for SMS spam detection.

Downloads

Published

2026-04-19

How to Cite

A SPAMTRANSFORMERMODEL FOR SMS SPAM DETECTION. (2026). International Journal of AI Electronics and Nexus Energy, 2(2), 297-303. https://doi.org/10.64751/7sp0x034

Most read articles by the same author(s)

Similar Articles

1-10 of 112

You may also start an advanced similarity search for this article.