arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.05296cs.LGcs.AI
收藏

使用凝聚层次聚类和基于主题的方法对垃圾邮件进行分类

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

University of León(莱昂大学);INCIBE (Spanish National Cybersecurity Institute)(西班牙国家网络安全研究所)

F. Janez-Martino, R. Alaiz-Rodriguez, V. Gonzalez-Castro, E. Fidalgo, E. Alegre

AI总结:

该研究提出基于主题的垃圾邮件多分类方法,构建两个各含约1.5万封邮件的数据集,评估16种流水线,发现TF-IDF与逻辑回归在英文数据集上F1达0.953,在西班牙语数据集上朴素贝叶斯F1为0.945。

摘要:

垃圾邮件是不请自来的、烦人的且有时是有害的消息,可能包含恶意软件、钓鱼或恶作剧。与大多数研究关注高效反垃圾邮件过滤器设计不同,我们从一种新颖的角度处理垃圾邮件问题。着眼于网络安全单位的需求,我们采用基于主题的方法将垃圾邮件分类为多个类别。我们提出了SPEMC-15K-E和SPEMC-15K-S,两个新颖的数据集,分别包含约15,000封英文和西班牙文邮件,并使用凝聚层次聚类将它们标记为11个类别。我们评估了16条流水线,结合四种文本表示技术——词频-逆文档频率(TF-IDF)、词袋、Word2Vec和BERT——以及四种分类器:支持向量机、朴素贝叶斯、随机森林和逻辑回归。实验结果表明,对于英文数据集,TF-IDF和逻辑回归取得了最高性能,F1分数为0.953,准确率为94.6%;而对于西班牙语数据集,TF-IDF与朴素贝叶斯产生了0.945的F1分数和98.5%的准确率。在处理时间方面,TF-IDF与逻辑回归实现了最快的分类,平均分别处理一封英文和西班牙文垃圾邮件。

英文摘要:

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, Näive 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 and on average, respectively.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑