arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.11014cs.CR
收藏

利用大型语言模型保障网络安全:通过鲁棒且具备上下文感知能力的文本分类增强 SMS 垃圾短信检测

Leveraging Large Language Models for Cybersecurity: Enhancing SMS Spam Detection with Robust and Context-Aware Text Classification

Mohsen Ahmadi, Matin Khajavi, Abbas Varmaghani, Ali Ala, Kasra Danesh, Danial Javaheri

AI总结:

本文系统比较六种分类器与 bag-of-words、TF-IDF 特征组合在 SMS 垃圾短信检测中的表现,发现 TF-IDF 整体更优,其中 Naive Bayes 结合 TF-IDF 准确率最高。

摘要:

本研究评估了不同特征提取技术和分类算法在检测 SMS 数据中垃圾短信方面的有效性。我们分析了六种分类器——Naive Bayes、K-Nearest Neighbors、Support Vector Machines、Linear Discriminant Analysis、Decision Trees 和 Deep Neural Networks——并使用两种特征提取方法:bag-of-words 和 TF-IDF。主要目标是确定用于 SMS 垃圾短信检测的最有效分类器与特征组合。我们的研究提供两项主要贡献:第一,系统考察多种分类器与特征提取配对;第二,通过实证评估它们区分垃圾短信的能力。结果表明,在所有六种分类器中,TF-IDF 方法始终优于 bag-of-words 方法。具体而言,Naive Bayes 结合 TF-IDF 取得了最高的 96.2% 准确率,其中非垃圾短信精确率为 0.976,垃圾短信精确率为 0.754。类似地,Support Vector Machines 结合 TF-IDF 的准确率为 94.5%,非垃圾短信和垃圾短信精确率分别为 0.926 和 0.891。使用 TF-IDF 的 Deep Neural Networks 获得 91.0% 的准确率,非垃圾短信召回率为 0.991,垃圾短信召回率为 0.415。相比之下,K-Nearest Neighbors、Linear Discriminant Analysis 和 Decision Trees 等分类器无论采用何种特征提取方法,都表现出较弱的性能。此外,我们观察到分类器有效性会随所选特征提取技术而出现显著差异。研究结果强调了特征选择在 SMS 垃圾短信检测中的重要性,并表明 TF-IDF 与 Naive Bayes、Support Vector Machines 或 Deep Neural Networks 配对时可提供最可靠的性能。这些洞见为通过优化特征提取和分类方法改进 SMS 垃圾短信检测奠定了基础。

英文摘要:

This study evaluates the effectiveness of different feature extraction techniques and classification algorithms in detecting spam messages within SMS data. We analyzed six classifiers Naive Bayes, K-Nearest Neighbors, Support Vector Machines, Linear Discriminant Analysis, Decision Trees, and Deep Neural Networks using two feature extraction methods: bag-of-words and TF-IDF. The primary objective was to determine the most effective classifier-feature combination for SMS spam detection. Our research offers two main contributions: first, by systematically examining various classifier and feature extraction pairings, and second, by empirically evaluating their ability to distinguish spam messages. Our results demonstrate that the TF-IDF method consistently outperforms the bag-of-words approach across all six classifiers. Specifically, Naive Bayes with TF-IDF achieved the highest accuracy of 96.2%, with a precision of 0.976 for non-spam and 0.754 for spam messages. Similarly, Support Vector Machines with TF-IDF exhibited an accuracy of 94.5%, with a precision of 0.926 for non-spam and 0.891 for spam. Deep Neural Networks using TF-IDF yielded an accuracy of 91.0%, with a recall of 0.991 for non-spam and 0.415 for spam messages. In contrast, classifiers such as K-Nearest Neighbors, Linear Discriminant Analysis, and Decision Trees showed weaker performance, regardless of the feature extraction method employed. Furthermore, we observed substantial variability in classifier effectiveness depending on the chosen feature extraction technique. Our findings emphasize the significance of feature selection in SMS spam detection and suggest that TF-IDF, when paired with Naive Bayes, Support Vector Machines, or Deep Neural Networks, provides the most reliable performance. These insights provide a foundation for improving SMS spam detection through optimized feature extraction and classification methods.

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

↑