Identification of Twitter Bots Based on an Explainable Machine Learning Framework: The US 2020 Elections Case Study

Alexander Shevtsov, Christos Tzagkarakis, Despoina Antonakaki, Sotiris Ioannidis
12/8/2021
cs.SIcs.LG

Official code: alexdrk14/USBotDetection (4 stars, Python, MIT, last commit 2023-04-11).

Abstract

Twitter is one of the most popular social networks attracting millions of users, while a considerable proportion of online discourse is captured. It provides a simple usage framework with short messages and an efficient application programming interface (API) enabling the research community to study and analyze several aspects of this social network.

Show full abstract

However, the Twitter usage simplicity can lead to malicious handling by various bots. The malicious handling phenomenon expands in online discourse, especially during the electoral periods, where except the legitimate bots used for dissemination and communication purposes, the goal is to manipulate the public opinion and the electorate towards a certain direction, specific ideology, or political party. This paper focuses on the design of a novel system for identifying Twitter bots based on labeled Twitter data. To this end, a supervised machine learning (ML) framework is adopted using an Extreme Gradient Boosting (XGBoost) algorithm, where the hyper-parameters are tuned via cross-validation. Our study also deploys Shapley Additive Explanations (SHAP) for explaining the ML model predictions by calculating feature importance, using the game theoretic-based Shapley values. Experimental evaluation on distinct Twitter datasets demonstrate the superiority of our approach, in terms of bot detection accuracy, when compared against a recent state-of-the-art Twitter bot detection method.

View on arXivView PDF

Code Implementations(1)

MIT
45PythonJan 29, 20213 years agoMIT

Similar Papers

Cite this paper

@article{shevtsov2021identification,
  title  = {Identification of Twitter Bots Based on an Explainable Machine Learning Framework: The US 2020 Elections Case Study},
  author = {Alexander Shevtsov and Christos Tzagkarakis and Despoina Antonakaki and Sotiris Ioannidis},
  year   = {2021},
  eprint = {2112.04913},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.04913}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.04913.svg)](https://codeofpaper.com/paper/2112.04913)

Discussion