IDEAS home Printed from https://ideas.repec.org/a/gam/jsusta/v15y2023i8p6662-d1123645.html
   My bibliography  Save this article

Twitter Bot Detection Using Diverse Content Features and Applying Machine Learning Algorithms

Author

Listed:
  • Fawaz Khaled Alarfaj

    (Management Information Systems, School of Business, King Faisal University, Hofuf 31982, Saudi Arabia)

  • Hassaan Ahmad

    (Department of Computer Science, COMSATS University Islamabad, Wah Campus, Wah Cantt 47040, Pakistan)

  • Hikmat Ullah Khan

    (Department of Computer Science, COMSATS University Islamabad, Wah Campus, Wah Cantt 47040, Pakistan)

  • Abdullah Mohammaed Alomair

    (Management Information Systems, School of Business, King Faisal University, Hofuf 31982, Saudi Arabia)

  • Naif Almusallam

    (Management Information Systems, School of Business, King Faisal University, Hofuf 31982, Saudi Arabia)

  • Muzamil Ahmed

    (Department of Computer Science, COMSATS University Islamabad, Wah Campus, Wah Cantt 47040, Pakistan)

Abstract

A social bot is an intelligent computer program that acts like a human and carries out various activities in a social network. A Twitter bot is one of the most common forms of social bots. The detection of Twitter bots has become imperative to draw lines between real and unreal Twitter users. In this research study, the main aim is to detect Twitter bots based on diverse content-specific feature sets and explore the use of state-of-the-art machine learning classifiers. The real-world data from Twitter is scrapped using Twitter API and is pre-processed using standard procedure. To analyze the content of tweets, several feature sets are proposed, such as message-based, part-of-speech, special characters, and sentiment-based feature sets. Min-max normalization is considered for data normalization and then feature selection methods are applied to rank the top features within each feature set. For empirical analysis, robust machine learning algorithms such as deep learning (DL), multilayer perceptron (MLP), random forest (RF), naïve Bayes (NB), and rule-based classification (RBC) are applied. The performance evaluation based on standard metrics of precision, accuracy, recall, and f-measure reveals that the proposed approach outperforms the existing studies in the relevant literature. In addition, we explore the effectiveness of each feature set for the detection of Twitter bots.

Suggested Citation

  • Fawaz Khaled Alarfaj & Hassaan Ahmad & Hikmat Ullah Khan & Abdullah Mohammaed Alomair & Naif Almusallam & Muzamil Ahmed, 2023. "Twitter Bot Detection Using Diverse Content Features and Applying Machine Learning Algorithms," Sustainability, MDPI, vol. 15(8), pages 1-17, April.
  • Handle: RePEc:gam:jsusta:v:15:y:2023:i:8:p:6662-:d:1123645
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2071-1050/15/8/6662/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2071-1050/15/8/6662/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jsusta:v:15:y:2023:i:8:p:6662-:d:1123645. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.