Skip to content

BotSlayer: real-time detection of bot amplification on Twitter

Journal of Open Source Software · 2019

In brief

BotSlayer-CE is an open-source tool for real-time detection and tracking of coordinated bot amplification on Twitter. The system uses a composite "BS Level" metric combining volume, trendiness, diversity, and botness to identify suspicious entities (hashtags, URLs, mentions, media) that may indicate amplification campaigns, making bot-detection capabilities accessible to researchers, journalists, and citizens.

Contributions

  • Open-source community edition (BotSlayer-CE) of a real-time bot-amplification detection tool
  • Three-tier architecture (backend data collection, middleware APIs, frontend dashboard) for scalable deployment
  • BS Level metric: logistic regression combining temporal trends (volume, trendiness), coordination signals (diversity), and account behavior (botness)
  • Pluggable bot-detection module; achieves ~0.70 AUC with simple heuristics (friend growth rate, friend/follower ratio, tweeting frequency, default profile image)
  • User-friendly dashboard enabling experts, journalists, and citizens to investigate suspicious information campaigns in real time

Method

Data Collection. BotSlayer-CE connects to Twitter's filtering API using user-supplied keywords. Entities (hashtags, user handles, links, media) are extracted from streaming tweets and stored in a PostgreSQL database using asyncpg and asyncio for concurrency.

Anomaly Detection. For each entity, the system extracts four features in 4-hour sliding windows:

  • Volume: count of tweets containing the entity
  • Trendiness: ratio of entity volume between consecutive time windows
  • Diversity: ratio of unique users to total tweets
  • Botness: fraction of tweets about the entity from suspected bot accounts

A logistic regression model, trained on manually annotated data, combines these features into a BS Level (BotSlayer Level) score. The intuition: entities with intermediate diversity (indicating some coordination but not complete uniformity) and high volume, trendiness, and botness tend to be more suspicious.

Bot Scoring. The rule-based bot-scoring function uses simple heuristics: high friend-growth rate, elevated friend/follower ratio, high tweeting frequency, and use of default profile images. These heuristics yield ~0.70 AUC on annotated accounts. The design is modular; users can substitute alternative bot detectors (e.g., learned classifiers like BotOrNot or the proprietary BotSlayer Pro version).

Dashboard. The frontend renders entity statistics sorted by BS Level, with filtering and re-ordering options by botness or trendiness. For each entity, users can view tweet counts, accounts, trending indicators, and links to Twitter and Google for further investigation. Integration with Hoaxy enables visualization of information cascades. Aggregated statistics can be exported as spreadsheets.

Results

The paper does not report quantitative evaluation on a held-out test set. Instead, it presents the system architecture, feature engineering choices, and deployment considerations. The 0.70 AUC figure for the bot heuristics is cited from prior work (Yang et al., 2019) on annotated Twitter accounts.

Notes

Strengths. Real-time detection addresses a gap: most misinformation research disseminates months or years post-event. BotSlayer-CE lowers the barrier to entry—no machine-learning expertise required, easy customization to any topic. The modular design for bot detection is pragmatic: different domains may benefit from different algorithms.

Limitations. The rule-based bot heuristics are simple and known to have limited coverage (~0.70 AUC). Heavy reliance on account metadata (friend/follower ratio, growth rate) means sophisticated adversaries can evade detection. No evaluation on real-world campaigns or comparison against baselines. The 4-hour sliding window is not justified; optimal temporal aggregation likely depends on campaign dynamics.

Follow-ups. Integration of learned bot classifiers (Varol et al.'s learned models, etc.) could improve botness estimates. Temporal dynamics of the BS Level metric (stability, false-positive rate over time) warrant empirical study. Validation on annotated coordinated-campaign datasets (e.g., IRA, state-sponsored trolls) would strengthen claims about applicability.

How it connects

Similar papers

Discussed in GUIDE by

Summarized from the full text. Added 2026-11-27 from a submission by reza. Every statement on this page traces back to the source.