The Study of Performance for Cross-Platform Spam Filtering Based on the Random Forest Algorithm

Author:

Ma Zhengchi,Ouyang Ruoyu,Wang Hanzhang

Abstract

The objective of this study was to investigate the performance of the Random Forest algorithm in spam detection when generalized from email spam to social media comment spam. The dataset used involved the use of two sources: an email dataset and a YouTube spam comment dataset. Text processing techniques and feature extraction methods were applied to preprocess the datasets using scikit-learn package. Labels were mapped from "spam" and "ham" to "1" and "0" respectively for training and testing the model. The email spam dataset was split into training and testing datasets, and the first 3000 lines were used for training the model. The generalization ability of the model was tested on the YouTube spam comment dataset. Multiple decision trees were created using the Random Forest algorithm and were trained on different subsets of the training data. The results indicated that the accuracy rate of the prediction on the YouTube spam comment dataset was only around 62%, which is comparatively low. This suggests that the Random Forest algorithm, when used for spam detection, may not have good enough generalization ability to be applied in practice. Additionally, as the number of trees increased, the maximum accuracy decreased, indicating the possibility of overfitting. Although the accuracy of the models was modest, possible improvements could be made to the pre-processing of the data so that the features extracted from the text can have greater conformity with social media spams. In conclusion, further work is needed before the model can be used in generalized situations.

Publisher

Darcy & Roy Press Co. Ltd.

Reference10 articles.

1. Gordon V. Cormack. Email Spam Filtering: A Systematic Review, Foundations and Trends® in Information Retrieval: Vol. 1: No. 4, pp 335-455. http://dx.doi.org/10.1561/1500000006, 2008.

2. Khaidem L, Saha S, Dey S R. Predicting the direction of stock market prices using random forest. arXiv preprint arXiv:1605.00003, 2016.

3. Yu Q, Wang J, Jin Z, et al. Pose-guided matching based on deep learning for assessing quality of action on rehabilitation training. Biomedical Signal Processing and Control, 2022, 72: 103323.

4. Petre E G. A decision tree for weather prediction. Universitatea Petrol-Gaze din Ploiesti, 2009, 61(1): 77-82.

5. Hovold J. Naive Bayes Spam Filtering Using Word-Position-Based Attributes. CEAS. 2005: 41-48.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3