Skip to main content

Spam Detection on Arabic Twitter

  • Conference paper
  • First Online:
Social Informatics (SocInfo 2020)

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 12467))

Included in the following conference series:

Abstract

Twitter has become a popular social media platform in the Arab region. Some users exploit this popularity by posting unwanted advertisements for their own interest. In this paper, we present a large manually annotated dataset of advertisement (Spam) tweets in Arabic. We analyze the characteristics of these tweets that distinguish them from other tweets and identify their targets and topics. In addition, we analyze the characteristics of Spam accounts. We utilize Support Vector Machines (SVMs) and contextual embedding based models to identify these Spam tweets with macro averaged F1 score above 98%.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    ads.twitter.com.

  2. 2.

    Dataset can be downloaded from http://alt.qcri.org/resources/SpamArabic-Twitter.tgz.

  3. 3.

    https://developer.twitter.com/en/docs/basics/counting-characters.

  4. 4.

    https://www.bbc.co.uk/usingthebbc/terms/what-are-the-rules-for-commenting/.

  5. 5.

    https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes.

  6. 6.

    https://help.twitter.com/en/rules-and-policies/twitter-rules.

  7. 7.

    https://botometer.iuni.iu.edu/.

  8. 8.

    We used the libSVM implementation in scikit-learn https://scikit-learn.org/.

References

  1. Abdelali, A., Mubarak, H., Samih, Y., Hassan, S., Darwish, K.: Arabic dialect identification in the wild. arXiv abs/2005.06557 (2020)

    Google Scholar 

  2. Abozinadah, E., Mbaziira, A., Jones, J.H.: Detection of abusive accounts with Arabic tweets. Int. J. Knowl. Eng. 1(2), September 2015

    Google Scholar 

  3. Abu Farha, I., Magdy, W.: Mazajak: an online Arabic sentiment analyser. In: Proceedings of the Fourth Arabic Natural Language Processing Workshop, pp. 192–198. Association for Computational Linguistics, Florence, August 2019. https://doi.org/10.18653/v1/W19-4621, https://www.aclweb.org/anthology/W19-4621

  4. Al-Khalifa, H.S.: On the analysis of twitter spam accounts in Saudi Arabia. Int. J. Technol. Diffus. (IJTD) 6(1), 46–60 (2015)

    Article  Google Scholar 

  5. Al Twairesh, N., Al Tuwaijri, M., Al Moammar, A., Al Humoud, S.: Arabic spam detection in twitter. In: The 2nd Workshop on Arabic Corpora and Processing Tools 2016 Theme: Social Media, p. 38 (2016)

    Google Scholar 

  6. Albadi, N., Kurdi, M., Mishra, S.: Are they our brothers? analysis and detection of religious hate speech in the Arabic twittersphere. In: 2018 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining (ASONAM), pp. 69–76. IEEE (2018)

    Google Scholar 

  7. Alharbi, A., Aljaedi, A.: Predicting rogue content and Arabic spammers on twitter. Fut. Internet 11, 229 (2019). https://doi.org/10.3390/fi11110229

    Article  Google Scholar 

  8. Alshehri, A., Nagoudi, E.M.B., Alhuzali, H., Abdul-Mageed, M.: Think Before Your Click: Data and Models for Adult Content in Arabic Twitter (2018)

    Google Scholar 

  9. Antoun, W., Baly, F., Hajj, H.M.: Arabert: transformer-based model for Arabic language understanding. arXiv abs/2003.00104 (2020)

    Google Scholar 

  10. Conover, M., Ratkiewicz, J., Francisco, M.R., Gonçalves, B., Menczer, F., Flammini, A.: Political polarization on twitter. ICWSM 133, 89–96 (2011)

    Google Scholar 

  11. Devlin, J., Chang, M.W., Lee, K., Toutanova, K.: BERT: pre-training of deep bidirectional transformers for language understanding. In: Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers). pp. 4171–4186. Association for Computational Linguistics, Minneapolis, June 2019. https://doi.org/10.18653/v1/N19-1423, https://www.aclweb.org/anthology/N19-1423

  12. El-Mawass, N., Alaboodi, S.: Detecting Arabic spammers and content polluters on twitter. In: 2016 Sixth International Conference on Digital Information Processing and Communications (ICDIPC), pp. 53–58. IEEE (2016)

    Google Scholar 

  13. Grier, C., Thomas, K., Paxson, V., Zhang, M.: @spam: the underground on 140 characters or less. In: Proceedings of the 17th ACM Conference on Computer and Communications Security, CCS 2010, pp. 27–37. Association for Computing Machinery, New York (2010). https://doi.org/10.1145/1866307.1866311, https://doi.org/10.1145/1866307.1866311

  14. Hassan, S., Samih, Y., Mubarak, H., Abdelali, A.: ALT at SemEval-2020 task 12: Arabic and English offensive language identification in social media. In: Proceedings of the International Workshop on Semantic Evaluation (SemEval) (2020)

    Google Scholar 

  15. Hassan, S., Samih, Y., Mubarak, H., Abdelali, A., Rashed, A., Chowdhury, S.A.: ALT submission for OSACT shared task on offensive language detection. In: Proceedings of the 4th Workshop on Open-Source Arabic Corpora and Processing Tools, with a Shared Task on Offensive Language Detection, pp. 61–65. European Language Resource Association, Marseille, May 2020. https://www.aclweb.org/anthology/2020.osact-1.9

  16. Herzallah, W., Faris, H., Adwan, O.: Feature engineering for detecting spammers on twitter: modelling and analysis. J. Inf. Sci. 44(2), 230–247 (2018). https://doi.org/10.1177/0165551516684296

    Article  Google Scholar 

  17. McCord, M., Chuah, M.: Spam detection on twitter using traditional classifiers. In: Calero, J.M.A., Yang, L.T., Mármol, F.G., García Villalba, L.J., Li, A.X., Wang, Y. (eds.) ATC 2011. LNCS, vol. 6906, pp. 175–186. Springer, Heidelberg (2011). https://doi.org/10.1007/978-3-642-23496-5_13

    Chapter  Google Scholar 

  18. Mubarak, H., Darwish, K.: Arabic offensive language classification on twitter. In: Weber, I., et al. (eds.) SocInfo 2019. LNCS, vol. 11864, pp. 269–276. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-34971-4_18

    Chapter  Google Scholar 

  19. Mubarak, H., Darwish, K., Magdy, W.: Abusive language detection on Arabic social media. In: Proceedings of the First Workshop on Abusive Language Online, pp. 52–56. Association for Computational Linguistics, Vancouver, August 2017. https://doi.org/10.18653/v1/W17-3008, https://www.aclweb.org/anthology/W17-3008

  20. Lin, P.-C., Huang, P.-M.: A study of effective features for detecting long-surviving twitter spam accounts. In: 2013 15th International Conference on Advanced Communications Technology (ICACT), pp. 841–846 (2013)

    Google Scholar 

  21. Saeed, R.M., Rady, S., Gharib, T.F.: An ensemble approach for spam detection in Arabic opinion texts. J. King Saud Univ. Comput. Inf. Sci. (2019)

    Google Scholar 

  22. Sriram, B., Fuhry, D., Demir, E., Ferhatosmanoglu, H., Demirbas, M.: Short text classification in twitter to improve information filtering. In: Proceedings of the 33rd International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR 2010, pp. 841–842. Association for Computing Machinery, New York (2010). https://doi.org/10.1145/1835449.1835643

  23. Varol, O., Ferrara, E., Davis, C.A., Menczer, F., Flammini, A.: Online Human-bot Interactions: Detection, Estimation, and Characterization (2017)

    Google Scholar 

  24. Yang, C., Harkreader, R., Gu, G.: Empirical evaluation and new design for fighting evolving twitter spammers. IEEE Trans. Inf. Forens. Secur. 8(8), 1280–1293 (2013). https://doi.org/10.1109/tifs.2013.2267732

    Article  Google Scholar 

  25. Yang, K.C., Hui, P.M., Menczer, F.: Bot electioneering volume: visualizing social bot activity during elections. In: Companion Proceedings of The 2019 World Wide Web Conference, May 2019. https://doi.org/10.1145/3308560.3316499, http://dx.doi.org/10.1145/3308560.3316499

  26. Yang, K.C., Varol, O., Hui, P.M., Menczer, F.: Scalable and generalizable social bot detection through data selection. In: Proceedings of the AAAI Conference on Artificial Intelligence, vol. 34, no. 01, pp. 1096–1103, April 2020. https://doi.org/10.1609/aaai.v34i01.5460, http://dx.doi.org/10.1609/aaai.v34i01.5460

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sabit Hassan .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Mubarak, H., Abdelali, A., Hassan, S., Darwish, K. (2020). Spam Detection on Arabic Twitter. In: Aref, S., et al. Social Informatics. SocInfo 2020. Lecture Notes in Computer Science(), vol 12467. Springer, Cham. https://doi.org/10.1007/978-3-030-60975-7_18

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-60975-7_18

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-60974-0

  • Online ISBN: 978-3-030-60975-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics