A Comparative Study of Two Different Spam Detection Methods

  • Haoyu Wang
  • Bingze Dai
  • Dequan YangEmail author
Conference paper
Part of the Communications in Computer and Information Science book series (CCIS, volume 1123)


With the development of the Internet, the problem of spam has become more and more prominent. Attackers can spread viruses through spam or place malicious advertisements, which have seriously interfered with people’s life and internet security. Therefore, it is of great significance to study efficient spam detection methods. Currently using machine learning methods for spam detection has become a mainstream direction. In this paper, the machine learning method of Bayesian linear regression and decision forest regression are used to conduct experiments on a data set from UCI Machine Learning Repository. We use the trained models to predict whether a mail is spam or not, and find better prediction scheme by comparing quantitative results. The experimental results show that the method of decision forest regression can get better performance and is suitable for numerical prediction.


Bayesian linear regression Decision forest regression Spam detection Machine learning Numerical prediction 



This research was supported by CERNET Innovation Project (NGII20180407).


  1. 1.
    Benevenuto, F., Magno, G., Rodrigues, T., Almeida, V.: Detecting spammers on twitter. In: Collaboration, Electronic Messaging, Anti-Abuse and Spam Conference (CEAS), p. 12, July 2010Google Scholar
  2. 2.
    Fu, Q., Feng, B., Guo, D., Li, Q.: Combating the evolving spammers in online social networks. Comput. Secur. 72, 60–73 (2018)CrossRefGoogle Scholar
  3. 3.
    Youn, S., Cho, H.C.: Improved spam filter via handling of text embedded image e-mail. J. Electr. Eng. Technol. 10(1), 401–407 (2015)CrossRefGoogle Scholar
  4. 4.
    Li, S., et al.: WAF-based chinese character recognition for spam image filtering. Chin. J. Electron. 27(5), 1050–1055 (2018)Google Scholar
  5. 5.
    Rusland, N.F., Wahid, N., Kasim, S., Hafit, H.: Analysis of Naïve Bayes algorithm for email spam filtering across multiple datasets. In: IOP Conference Series: Materials Science and Engineering. IOP Publishing, August 2017Google Scholar
  6. 6.
    Wei, Q. Understanding of the naive Bayes classifier in spam filtering. In: AIP Conference Proceedings. AIP Publishing (2018)Google Scholar
  7. 7.
    Yang, J., Liu, Y., Liu, Z., Zhu, X., Zhang, X.: A new feature selection algorithm based on binomial hypothesis testing for spam filtering. Knowl.-Based Syst. 24(6), 904–914 (2011)CrossRefGoogle Scholar
  8. 8.
    Feng, L., Wang, Y., Zuo, W.: Quick online spam classification method based on active and incremental learning. J. Intell. Fuzzy Syst. 30(1), 17–27 (2016)CrossRefGoogle Scholar
  9. 9.
    Gao, C.Z., Cheng, Q., He, P., Susilo, W., Li, J.: Privacy-preserving Naive Bayes classifiers secure against the substitution-then-comparison attack. Inf. Sci. 444, 72–88 (2018)MathSciNetCrossRefGoogle Scholar
  10. 10.
    He, L.: Identification of product review spam by random forest. J. Chin. Inf. Process. 29(3), 150–154 (2015)Google Scholar
  11. 11.
    Al-Janabi, M., Andras, P.: A systematic analysis of random forest based social media spam classification. In: Yan, Z., Molva, R., Mazurczyk, W., Kantola, R. (eds.) Network and System Security. NSS 2017. LNCS, vol. 10394, pp. 427–438. Springer, Cham.
  12. 12.
    Sun, X., Han, L., Li, K.: One email filtering system based on category feature selection and feedback learning random forest algorithm. Comput. Appl. Softw. 32(4), 67–71 (2015)Google Scholar
  13. 13.

Copyright information

© Springer Nature Singapore Pte Ltd. 2019

Authors and Affiliations

  1. 1.School of Information and ElectronicsBeijing Institute of TechnologyBeijingChina
  2. 2.Network Information Technology CenterBeijing Institute of TechnologyBeijingChina

Personalised recommendations