Skip to main content
QUICK REVIEW

[Paper Review] On-the-fly Detection of Autogenerated Tweets

Jonas Lundberg, Jonas Nordqvist|arXiv (Cornell University)|Feb 4, 2018
Spam and Phishing DetectionComputer Science23 references3 citations
TL;DR

This paper presents a two-classifier system for on-the-fly detection of autogenerated tweets (AGTs) in real-time Twitter streams, using tweet text and metadata (no-Profile Classifier) or enriched with user timeline data (Profile Classifier). The method achieves 98% accuracy in AGT detection, with the Profile Classifier offering only marginal gains over the simpler no-Profile Classifier, suggesting that user timeline downloads may be avoidable in some cases to reduce latency.

ABSTRACT

Most previous work related to tweet classification have focused on identifying a given tweet as a spam, or to classify a Twitter user account as a spammer or a bot. In most cases the tweet classification has taken place offline, on a pre-collected dataset of tweets. In this paper we present an \emph{on-the-fly} approach to classify each newly downloaded tweet as \emph{autogenerated} or not. We define an autogenerated tweet (AGT) as a tweet where all or parts of the natural language content is generated automatically by a bot or other type of program. Our on-the-fly approach makes use of two classifiers. The first classifies a tweet solely based on the twitter text and the tweet metadata that comes with every tweet. It is used for tweets posted by unknown users with no available tweet history. An unknown user also triggers a batch job to start downloading the missing user timeline information. The second classifier is used for tweets posted by a user where the user timeline is downloaded and available. Initially, it will be the first classifier that handles most of the tweets. This will gradually change and after an initialization phase where we download historic data for the most active users, we reach a state where the second classifier handles a vast majority of all the tweets. A simulation using our on-the-fly detection mechanism indicates that we can handle Twitter streams with up to 68,000 unique users each day. The bottleneck is the time required to download new user timelines. The AGT detection is very accurate. In a set of 5,000 tweets we correctly classified about 98\% of all AGTs using a subject-wise cross-validation.

Motivation & Objective

  • To develop a real-time, on-the-fly system for detecting tweets generated by bots or automated programs (autogenerated tweets, AGTs) in Twitter streams.
  • To address the challenge of classifying AGTs when historic user data (e.g., user timelines) is required but too slow to retrieve in real time.
  • To evaluate whether a lightweight classifier using only tweet metadata and text can match the performance of a more complex classifier that includes downloaded user timeline data.
  • To simulate system scalability and identify performance bottlenecks in handling high-volume Twitter streams.

Proposed method

  • A two-classifier architecture is proposed: a 'no-Profile Classifier' that uses only real-time tweet text and metadata for new users, and a 'Profile Classifier' that uses downloaded user timelines for known users.
  • The no-Profile Classifier relies on textual features (e.g., entropy, repetition, URL density) and metadata (e.g., device type, retweet ratio) to detect AGTs.
  • The Profile Classifier enhances detection by computing tweet periodicity using the χ² test and temporal entropy on user timelines.
  • A simulation using 59 days of NTS data estimates system performance, including throughput and classifier workload distribution.
  • Three machine learning models (SVM, Random Forest, Naive Bayes) are trained and evaluated on a manually labeled dataset of 10,000 tweets with 2,251 AGTs.
  • Subject-wise cross-validation is used to evaluate generalization across different users and tweet sources.

Experimental results

Research questions

  • RQ1Can a lightweight, real-time classifier detect AGTs using only tweet text and metadata, without requiring access to user timelines?
  • RQ2Does incorporating user timeline data significantly improve AGT detection accuracy compared to metadata-only classification?
  • RQ3What is the maximum scale of Twitter streams (in terms of unique users per day) that the on-the-fly detection system can handle?
  • RQ4How do different machine learning models perform in classifying AGTs when trained on a manually labeled dataset of 10,000 tweets?
  • RQ5What are the main failure modes of the classifiers, and can they be mitigated through model refinement or feature weighting?

Key findings

  • The no-Profile Classifier achieved 97.9% accuracy in detecting AGTs, with only 24 additional misclassifications compared to the more complex Profile Classifier.
  • The Profile Classifier achieved 98.0% accuracy, but the marginal improvement over the no-Profile Classifier suggests that user timeline downloads may not be essential for AGT detection in this dataset.
  • The Text Classifier alone achieved 96.3% AGT detection accuracy, indicating strong performance based on textual and structural features alone.
  • The system can handle Twitter streams with up to 68,000 unique users per day, with the user timeline download time being the primary performance bottleneck.
  • Misclassified tweets were often app-generated by human users using rare apps, with low AGT probability scores from the Text Classifier despite other indicators suggesting automation.
  • The study suggests that continuous learning and fine-tuning of the Text Classifier’s influence could improve robustness against evolving AGT generation methods.

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.