Classifying spam emails using agglomerative hierarchical clustering and a topic-based approach

被引:7
|
作者
Janez-Martino, Francisco [1 ]
Alaiz-Rodriguez, Rocio
Gonzalez-Castro, Victor
Fidalgo, Eduardo
Alegre, Enrique
机构
[1] Univ Leon, Dept Elect Syst & Automat, Leon, Spain
关键词
Spam detection; Multi-classification; Image-based spam; Hidden text; Text classification; Word embedding; SELECTION; FEATURES; DOMAINS; MODEL;
D O I
10.1016/j.asoc.2023.110226
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Spam emails are unsolicited, annoying and sometimes harmful messages which may contain malware, phishing or hoaxes. Unlike most studies that address the design of efficient anti-spam filters, we approach the spam email problem from a different and novel perspective. Focusing on the needs of cybersecurity units, we follow a topic-based approach for addressing the classification of spam email into multiple categories. We propose SPEMC-15K-E and SPEMC-15K-S, two novel datasets with approximately 15K emails each in English and Spanish, respectively, and we label them using agglomerative hierarchical clustering into 11 classes. We evaluate 16 pipelines, combining four text representation techniques-Term Frequency-Inverse Document Frequency (TF-IDF), Bag of Words, Word2Vec and BERT-and four classifiers: Support Vector Machine, Naive Bayes, Random Forest and Logistic Regression. Experimental results show that the highest performance is achieved with TF-IDF and LR for the English dataset, with a F1 score of 0.953 and an accuracy of 94.6%, and while for the Spanish dataset, TF-IDF with NB yields a F1 score of 0.945 and 98.5% accuracy. Regarding the processing time, TF-IDF with LR leads to the fastest classification, processing an English and Spanish spam email in 2 ms and 2.2 ms on average, respectively.& COPY; 2023 The Authors. Published by Elsevier B.V. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).
引用
收藏
页数:16
相关论文
共 50 条
  • [22] Semantic Clustering of Functional Requirements Using Agglomerative Hierarchical Clustering
    Salman, Hamzeh Eyal
    Hammad, Mustafa
    Seriai, Abdelhak-Djamel
    Al-Sbou, Ahed
    INFORMATION, 2018, 9 (09)
  • [23] On Agglomerative Hierarchical Clustering Using Clusterwise Tolerance Based Pairwise Constraints
    Hamasuna, Yukihiro
    Endo, Yasunori
    Miyamoto, Sadaaki
    JOURNAL OF ADVANCED COMPUTATIONAL INTELLIGENCE AND INTELLIGENT INFORMATICS, 2012, 16 (01) : 174 - 179
  • [24] A Topic-based Dynamic Clustering Algorithm for Text Stream
    Rao, Y.
    Li, X. J.
    PROCEEDINGS OF THE 2015 INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND INDUSTRIAL ENGINEERING (AIIE 2015), 2015, 123 : 480 - 483
  • [25] A Heuristic-Based Feature Selection Method for Clustering Spam Emails
    Song, Jungsuk
    Eto, Masashi
    Kim, Hyung Chan
    Inoue, Daisuke
    Nakao, Koji
    NEURAL INFORMATION PROCESSING: THEORY AND ALGORITHMS, PT I, 2010, 6443 : 290 - 297
  • [26] An Unsupervised Approach for Content-Based Clustering of Emails Into Spam and Ham Through Multiangular Feature Formulation
    Karim, Asif
    Azam, Sami
    Shanmugam, Bharanidharan
    Kannoorpatti, Krishnan
    IEEE ACCESS, 2021, 9 : 135186 - 135209
  • [27] Hierarchical Agglomerative Clustering Using Common Neighbours Similarity
    Makrehchi, Masoud
    2016 IEEE/WIC/ACM INTERNATIONAL CONFERENCE ON WEB INTELLIGENCE (WI 2016), 2016, : 546 - 551
  • [28] Anomaly Detection Using Agglomerative Hierarchical Clustering Algorithm
    Mazarbhuiya, Fokrul Alom
    AlZahrani, Mohammed Y.
    Georgieva, Lilia
    INFORMATION SCIENCE AND APPLICATIONS 2018, ICISA 2018, 2019, 514 : 475 - 484
  • [29] Model Order Reduction Based on Agglomerative Hierarchical Clustering
    Al-Dabooni, Seaar
    Wunsch, Donald
    IEEE TRANSACTIONS ON NEURAL NETWORKS AND LEARNING SYSTEMS, 2019, 30 (06) : 1881 - 1895
  • [30] A Boltzmann Theory Based Dynamic Agglomerative Hierarchical Clustering
    Li, Gang
    Zhuang, Jian
    Hou, Hongning
    Yu, Dehong
    IEEE INTERNATIONAL SYMPOSIUM ON COMPUTATIONAL INTELLIGENCE IN ROBOTICS AND AUTOMATION, 2009, : 96 - 101