IDEAS home Printed from https://ideas.repec.org/a/jbo/ijsrml/v2y2026i2id12.html

Email Spam Detection Using Machine Learning

Author

Listed:
  • Chandrabhushan Prasad
  • Himanshu Kumar
  • Kumar Sayran

Abstract

Unsolicited emails, including phishing and spam, incur annual costs of millions of dollars for organizations and individuals. Numerous models and strategies for the automatic detection of spam emails have been introduced and developed; nevertheless, none have demonstrated 100% predictive accuracy. Both machine learning and deep learning algorithms demonstrated greater success among all proposed models. Natural language processing (NLP) improved the accuracy of the models. This study presents the efficacy of word embedding in the classification of spam emails. The pre-trained transformer model BERT (Bidirectional Encoder Representations from Transformers) is fine-tuned to identify spam emails vs non-spam (HAM). BERT employs attention layers to incorporate the context of the text into its analysis. The results are juxtaposed with a basic deep neural network model that incorporates a bidirectional Long Short Term Memory layer and two stacked dense layers. Furthermore, the results are juxtaposed with a collection of traditional classifiers, namely k-NN (k-nearest neighbors) and NB (Naive Bayes). Two open-source datasets are utilized, one for model training and the other for evaluating the model's persistence and resilience against novel data. The proposed method achieved a maximum accuracy of 98.67% and an F1 score of 98.66%.

Suggested Citation

  • Chandrabhushan Prasad & Himanshu Kumar & Kumar Sayran, 2026. "Email Spam Detection Using Machine Learning," International Journal of Scientific Research in Artificial Intelligence and Machine Learning, International Journal of Scientific Research in Artificial Intelligence and Machine Learning, vol. 2(2), pages 33-40, April.
  • Handle: RePEc:jbo:ijsrml:v2:y2026:i2:id:12
    Note: Article URL: https://ijsraiml.com/home/article/view/IJSRAIML26225
    as

    Download full text from publisher

    File URL: https://ijsraiml.com/home/article/view/IJSRAIML26225
    File Function: Article URL
    Download Restriction: no

    File URL: https://ijsraiml.com/home/article/download/IJSRAIML26225/IJSRAIML26225
    File Function: Full text
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:jbo:ijsrml:v2:y2026:i2:id:12. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Pankaj Sharma (email available below). General contact details of provider: https://ijsraiml.com/home .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.