Skip to main content
QUICK REVIEW

[Paper Review] Twitter Bot Detection Using Bidirectional Long Short-term Memory Neural Networks and Word Embeddings

Wei Feng, Uyen Trang Nguyen|arXiv (Cornell University)|Feb 3, 2020
Spam and Phishing DetectionComputer Science54 references18 citations
TL;DR

This paper proposes a bidirectional Long Short-Term Memory (BiLSTM) neural network with word embeddings to detect Twitter bots using only tweet content, without relying on user profiles, friendship networks, or handcrafted features. The model achieves state-of-the-art performance on the cresci-2017 dataset, demonstrating high accuracy (96.1%) and F-measure (96.3%) in distinguishing human accounts from spambots through end-to-end learning from raw textual sequences.

ABSTRACT

Twitter is a web application playing dual roles of online social networking and micro-blogging. The popularity and open structure of Twitter have attracted a large number of automated programs, known as bots. Legitimate bots generate a large amount of benign contextual content, i.e., tweets delivering news and updating feeds, while malicious bots spread spam or malicious contents. To assist human users in identifying who they are interacting with, this paper focuses on the classification of human and spambot accounts on Twitter, by employing recurrent neural networks, specifically bidirectional Long Short-term Memory (BiLSTM), to efficiently capture features across tweets. To the best of our knowledge, our work is the first that develops a recurrent neural model with word embeddings to distinguish Twitter bots from human accounts, that requires no prior knowledge or assumption about users' profiles, friendship networks, or historical behavior on the target account. Moreover, our model does not require any handcrafted features. The preliminary simulation results are very encouraging. Experiments on the cresci-2017 dataset show that our approach can achieve competitive performance compared with existing state-of-the-art bot detection systems.

Motivation & Objective

  • To develop a bot detection system that requires no prior knowledge of user profiles, friendship networks, or historical behavior.
  • To eliminate the need for labor-intensive handcrafted features in bot detection by leveraging deep learning.
  • To evaluate the effectiveness of recurrent neural networks with word embeddings for classifying Twitter accounts as human or spambot.
  • To enable faster and more efficient deployment of bot detection systems in real-world applications.

Proposed method

  • Employ a bidirectional Long Short-Term Memory (BiLSTM) network to capture contextual dependencies from both past and future words in tweet sequences.
  • Use pre-trained word embeddings to encode raw text tweets into dense vector representations, replacing traditional NLP feature engineering.
  • Train the BiLSTM model end-to-end on tweet text only, without using metadata or network structure.
  • Apply dropout and softmax layers for regularization and final classification into human or bot categories.
  • Use the Adam optimizer and categorical cross-entropy loss for efficient training on the cresci-2017 dataset.
  • Perform inference using the learned model to classify test tweets based on their sequential linguistic patterns.

Experimental results

Research questions

  • RQ1Can a BiLSTM model with word embeddings effectively distinguish between human and spambot accounts using only tweet content?
  • RQ2How does the performance of a deep learning approach without feature engineering compare to state-of-the-art methods in Twitter bot detection?
  • RQ3To what extent can contextual sequence modeling capture distinguishing linguistic patterns in bot-generated tweets?
  • RQ4Does the absence of profile, network, or behavioral features significantly impact detection accuracy?

Key findings

  • The proposed BiLSTM model achieved an accuracy of 96.1% and an F-measure of 96.3% on test set #1 of the cresci-2017 dataset, outperforming several existing methods.
  • On test set #2, the model achieved 92.9% accuracy and 92.6% F-measure, demonstrating strong generalization across different data splits.
  • The model achieved 94.0% precision and 97.6% recall on test set #1, indicating high reliability in identifying spambots.
  • Word-cloud analysis revealed that bots frequently use exaggerated promotional terms like 'awesome' and 'fascinating', and include more external links than human accounts.
  • The model significantly outperformed supervised baselines like BotOrNot? and C. Yang et al. in F-measure and MCC, despite using no feature engineering.
  • The results confirm that deep learning with word embeddings can effectively model linguistic patterns in tweets, enabling high-accuracy bot detection without auxiliary data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.