Abstract
Bot detection on social media has traditionally focused on individual account classification. However, understanding the broader impact of automated accounts requires accurate community-level population estimation. We present BotPercent, a multi-modal framework that combines feature-, text-, and graph-based models with rigorous confidence calibration. By shifting from "micro" to "macro" analysis, BotPercent provides a more accurate and less biased estimation of bot prevalence across diverse Twitter communities, revealing significant bot activity in cryptocurrency, partisan news, and high-profile social events.
Introduction
Most existing Twitter bot detection research focuses on the "micro" level: identifying whether a specific account is a bot. While useful, this approach has significant gaps when trying to understand the "macro" level—the total population of bots within a community. Standard models are often community-agnostic and frequently miscalibrated; a model might assign a 0.7 score that does not correspond to a 70% probability. When aggregated across thousands of users, these uncalibrated scores lead to wildly inaccurate population estimates. BotPercent addresses this by shifting the focus to community-level estimation and ensuring that model outputs reflect true probabilities.
Methodology
BotPercent is a multi-modal ensemble framework that operates in three main stages:
- Model Amalgamation: The system integrates three detection modalities: Feature-based (metadata like follower counts), Text-based (LLM analysis of tweet content), and Graph-based (network structure via Graph Neural Networks).
- Knowledge Distillation: To ensure scalability for real-time analysis, complex GNNs are distilled into efficient linear layers, maintaining performance while reducing inference time.
- Confidence Calibration: Using temperature scaling, the framework rescales confidence scores against a validation set. This ensures that a predicted 10% bot rate accurately reflects the true population.
- Weighted Combination: Calibrated predictions are combined using learnable weights to produce a final community-level estimate.
Datasets and Evaluation
The framework was trained on a merged dataset of nine public Twitter bot repositories, totaling over 1.2 million users. Evaluation was conducted using the TwiBot-22 benchmark, which includes 10 distinct communities (e.g., Elon Musk followers, news outlets). To test robustness, the researchers used "resampled" communities with bot populations ranging from 10% to 90%.
Key Results
BotPercent significantly outperformed baselines in community-level estimation. While traditional models tended to under- or over-estimate populations as they deviated from balanced sets, BotPercent tracked the ground truth closely across all ranges.
At the individual account level, BotPercent achieved an F1-score of 0.726, compared to 0.585 for Botometer, which was found to be heavily biased toward flagging accounts as human. Furthermore, the model proved robust to "feature perturbation," maintaining accuracy even when simulating the unreliability of modern "verified" status indicators.
Community Insights
Analysis using BotPercent revealed several critical trends in social media automation:
- Heterogeneous Distribution: Bots are not evenly spread; they are significantly more prevalent in cryptocurrency and technology communities than in general discourse.
- The Partisan Spike: There is a strong correlation between political leaning and bot activity. Hyper-partisan news outlets (both left and right) exhibit much higher bot percentages in their interactions compared to centrist media.
- Event-Driven Surges: Bot populations spike in response to major socio-political events, such as the 2017 "Muslim ban" or the 2022 Roe v. Wade overturning. Notably, the system estimated that 8% to 14% of interactions in high-profile Twitter polls (e.g., regarding Donald Trump's reinstatement) were likely bot-driven.
Conclusion and Future Work
While BotPercent offers a significant advancement in macro-level social analysis, challenges remain regarding Twitter's API constraints and the "cold start" problem for new users. Future work will focus on incorporating bias-mitigation techniques to ensure the model remains fair across different demographic groups and languages.
Summary updated