A Mood Analysis on Youtube Comments and a Method for Improved Social Spam Detection

  • Enaitz EzpeletaEmail author
  • Mikel Iturbe
  • Iñaki Garitano
  • Iñaki Velez de Mendizabal
  • Urko Zurutuza
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 10870)


In the same manner that Online Social Networks (OSN) usage increases, non-legitimate campaigns over these types of web services are growing. This is the reason why significant number of users are affected by social spam every day and therefore, their privacy is threatened. To deal with this issue in this study we focus on mood analysis, among all content-based analysis techniques. We demonstrate that using this technique social spam filtering results are improved. First, the best spam filtering classifiers are identified using a labeled dataset consisting of Youtube comments, including spam. Then, a new dataset is created adding the mood feature to each comment, and the best classifiers are applied to it. A comparison between obtained results with and without mood information shows that this feature can help to improve social spam filtering results: the best accuracy is improved in two different datasets, and the number of false positives is reduced 13.76% and 11.41% on average. Moreover, the results are validated carrying out the same experiment but using a different dataset.


Spam Social spam Mood analysis Online Social Networks Youtube 



This work has been developed by the intelligent systems for industrial systems group supported by the Department of Education, Language policy and Culture of the Basque Government. This work was partially supported by the project Semantic Knowledge Integration for Content-Based Spam Filtering (TIN2017-84658-C2-2-R) from the Spanish Ministry of Economy, Industry and Competitiveness (SMEIC), State Research Agency (SRA) and the European Regional Development Fund (ERDF).

We thank Mattias Östmar for the valuable tools developed and published. And we thank Jon Kâgström (Founder of uClassify( for the opportunity to use their API for research purposes.

Iñaki Garitano is partially supported by the INCIBE grant “INCIBEC-2015-02495” corresponding to the “Ayudas para la Excelencia de los Equipos de Investigación avanzada en ciberseguridad”.


  1. 1.
    Alberto, T.C., Lochter, J.V., Almeida, T.A.: TubeSpam: Comment spam filtering on YouTube. In: 2015 IEEE 14th International Conference on Machine Learning and Applications (ICMLA), pp. 138–143, December 2015Google Scholar
  2. 2.
    Almaatouq, A., Shmueli, E., Nouh, M., Alabdulkareem, A., Singh, V.K., Alsaleh, M., Alarifi, A., Alfaris, A., Pentland, A.S.: If it looks like a spammer and behaves like a spammer, it must be a spammer: analysis and detection of microblogging spam accounts. Int. J. Inf. Secur. 15(5), 475–491 (2016). Scholar
  3. 3.
    Arif, M.H., Li, J., Iqbal, M., Liu, K.: Sentiment analysis and spam detection in short informal text using learning classifier systems. Soft Comput. July 2017.
  4. 4.
    Bollen, J., Mao, H., Zeng, X.: Twitter mood predicts the stock market. J. Comput. Sci. 2(1), 1–8 (2011)CrossRefGoogle Scholar
  5. 5.
    Chandramouli, R.: Emerging social media threats: technology and policy perspectives. In: 2011 Second Worldwide Cybersecurity Summit (WCS), pp. 1–4, June 2011Google Scholar
  6. 6.
    Chaudhary, V., Sureka, A.: Contextual feature based one-class classifier approach for detecting video response spam on YouTube. In: 2013 Eleventh Annual Conference on Privacy, Security and Trust, pp. 195–204, July 2013Google Scholar
  7. 7.
    Egele, M., Stringhini, G., Kruegel, C., Vigna, G.: COMPA: detecting compromised accounts on social networks. In: NDSS. The Internet Society (2013).
  8. 8.
    Ezpeleta, E., Zurutuza, U., Gómez Hidalgo, J.M.: Does sentiment analysis help in Bayesian spam filtering? In: Martínez-Álvarez, F., Troncoso, A., Quintián, H., Corchado, E. (eds.) HAIS 2016. LNCS (LNAI), vol. 9648, pp. 79–90. Springer, Cham (2016). Scholar
  9. 9.
    Ezpeleta, E., Zurutuza, U., Hidalgo, J.M.G.: A study of the personalization of spam content using facebook public information. Logic J. IGPL 25(1), 30–41 (2017). Scholar
  10. 10.
    Gao, H., Chen, Y., Lee, K., Palsetia, D., Choudhary, A.N.: Towards online spam filtering in social networks. In: NDSS. The Internet Society (2012).
  11. 11.
    Gao, H., Hu, J., Wilson, C., Li, Z., Chen, Y., Zhao, B.Y.: Detecting and characterizing social spam campaigns. In: Proceedings of the 17th ACM Conference on Computer and Communications Security, CCS 2010, pp. 681–683. ACM, New York (2010).
  12. 12.
    Hu, X., Tang, J., Gao, H., Liu, H.: Social spammer detection with sentiment information. In: Proceedings of the 2014 IEEE International Conference on Data Mining, ICDM 2014, pp. 180–189. IEEE Computer Society, Washington, DC (2014).
  13. 13.
    Kwak, H., Lee, C., Park, H., Moon, S.: What is Twitter, a social network or a news media? In: Proceedings of the 19th International Conference on World Wide Web, pp. 591–600. ACM (2010)Google Scholar
  14. 14.
    Mahajan, S., Rana, V.: Spam detection on social network through sentiment analysis. Adv. Comput. Sci. Technol. 10(8), 2225–2231 (2017)Google Scholar
  15. 15.
    O’Callaghan, D., Harrigan, M., Carthy, J., Cunningham, P.: Network analysis of recurring YouTube spam campaigns. arXiv preprint arXiv:1201.3783 (2012)
  16. 16.
    O’Callaghan, D., Harrigan, M., Carthy, J., Cunningham, P.: Network analysis of recurring YouTube spam campaigns. CoRR abs/1201.3783 (2012).
  17. 17.
    Pang, B., Lee, L.: Opinion mining and sentiment analysis. Found. Trends Inf. Retrieval 2(1–2), 1–135 (2008)CrossRefGoogle Scholar
  18. 18.
    Pang, B., Lee, L., Vaithyanathan, S.: Thumbs up?: sentiment classification using machine learning techniques. In: Proceedings of the ACL-02 Conference on Empirical Methods in Natural Language Processing, EMNLP 2002, vol. 10, pp. 79–86. Association for Computational Linguistics, Stroudsburg (2002).
  19. 19.
    Perveen, N., Missen, M.M.S., Rasool, Q., Akhtar, N.: Sentiment based Twitter spam detection. Int. J. Adv. Comput. Sci. Appl. (IJACSA) 7(7), 568–573 (2016)Google Scholar
  20. 20.
    Shehnepoor, S., Salehi, M., Farahbakhsh, R., Crespi, N.: NetSpam: a network-based spam detection framework for reviews in online social media. IEEE Trans. Inf. Forensics Secur. 12(7), 1585–1595 (2017)CrossRefGoogle Scholar
  21. 21.
    Song, J., Lee, S., Kim, J.: Spam filtering in Twitter using sender-receiver relationship. In: Sommer, R., Balzarotti, D., Maier, G. (eds.) RAID 2011. LNCS, vol. 6961, pp. 301–317. Springer, Heidelberg (2011). Scholar
  22. 22.
    Stringhini, G., Kruegel, C., Vigna, G.: Detecting spammers on social networks. In: Proceedings of the 26th Annual Computer Security Applications Conference, ACSAC 2010, pp. 1–9. ACM, New York (2010).
  23. 23.
    Turney, P.D.: Thumbs up or thumbs down?: semantic orientation applied to unsupervised classification of reviews. In: Proceedings of the 40th Annual Meeting on Association for Computational Linguistics, ACL 2002, pp. 417–424. Association for Computational Linguistics, Stroudsburg (2002).
  24. 24.
    Wang, A.H.: Don’t follow me: spam detection in Twitter. In: Proceedings of the 2010 International Conference on Security and Cryptography (SECRYPT), pp. 1–10. IEEE (2010)Google Scholar
  25. 25.
    Wang, D., Irani, D., Pu, C.: A social-spam detection framework. In: Proceedings of the 8th Annual Collaboration, Electronic messaging, Anti-Abuse and Spam Conference, pp. 46–54. ACM (2011)Google Scholar
  26. 26.
    Yang, C., Harkreader, R., Zhang, J., Shin, S., Gu, G.: Analyzing spammers’ social networks for fun and profit: a case study of cyber criminal ecosystem on Twitter. In: Proceedings of the 21st International Conference on World Wide Web, pp. 71–80. ACM (2012)Google Scholar
  27. 27.
    Zheng, X., Zeng, Z., Chen, Z., Yu, Y., Rong, C.: Detecting spammers on social networks. Neurocomputing 159, 27–34 (2015). Scholar

Copyright information

© Springer International Publishing AG, part of Springer Nature 2018

Authors and Affiliations

  • Enaitz Ezpeleta
    • 1
    Email author
  • Mikel Iturbe
    • 1
  • Iñaki Garitano
    • 1
  • Iñaki Velez de Mendizabal
    • 1
  • Urko Zurutuza
    • 1
  1. 1.Electronics and Computing DepartmentMondragon UniversityArrasate-MondragónSpain

Personalised recommendations