[Paper Review] Simplistic Collection and Labeling Practices Limit the Utility of Benchmark Datasets for Twitter Bot Detection
This paper demonstrates that high-performing bot detection models on existing Twitter benchmark datasets achieve near-perfect accuracy not due to sophisticated feature engineering or model complexity, but because simplistic data collection and labeling practices embed dataset-specific artifacts into the training data. Shallow decision trees trained on just a few features—such as tweet frequency, liking behavior, or language—achieve state-of-the-art performance, revealing that models generalize poorly across datasets and instead learn sampling biases rather than true bot characteristics.
Accurate bot detection is necessary for the safety and integrity of online platforms. It is also crucial for research on the influence of bots in elections, the spread of misinformation, and financial market manipulation. Platforms deploy infrastructure to flag or remove automated accounts, but their tools and data are not publicly available. Thus, the public must rely on third-party bot detection. These tools employ machine learning and often achieve near perfect performance for classification on existing datasets, suggesting bot detection is accurate, reliable and fit for use in downstream applications. We provide evidence that this is not the case and show that high performance is attributable to limitations in dataset collection and labeling rather than sophistication of the tools. Specifically, we show that simple decision rules -- shallow decision trees trained on a small number of features -- achieve near-state-of-the-art performance on most available datasets and that bot detection datasets, even when combined together, do not generalize well to out-of-sample datasets. Our findings reveal that predictions are highly dependent on each dataset's collection and labeling procedures rather than fundamental differences between bots and humans. These results have important implications for both transparency in sampling and labeling procedures and potential biases in research using existing bot detection tools for pre-processing.
Motivation & Objective
- To investigate why state-of-the-art bot detection models achieve near-perfect performance on existing benchmark datasets.
- To evaluate whether these high-performance results reflect genuine detection capability or artifacts from data collection and labeling practices.
- To assess the generalization capability of bot detection models across different datasets and bot types.
- To highlight the risk of bias in downstream research that relies on bot detection as a preprocessing step.
- To advocate for greater transparency in data collection and labeling procedures in social media research datasets.
Proposed method
- Trained shallow decision trees on minimal feature sets (e.g., tweet frequency, liking behavior, language, account creation time) to evaluate model performance on benchmark datasets.
- Used multiclass classification to predict which dataset an account belongs to within each bot type, testing whether accounts from different datasets are distinguishable.
- Compared performance of shallow decision trees and random forests to assess interpretability versus slight performance gains.
- Evaluated generalization by training models on combined datasets and testing on out-of-sample datasets, measuring accuracy and balanced accuracy.
- Analyzed dataset-specific artifacts such as language use, engagement patterns, and account activity to identify sampling biases.
- Employed standard machine learning evaluation metrics (accuracy, balanced accuracy) to quantify model performance and generalization failure.
Experimental results
Research questions
- RQ1To what extent do high-performing bot detection models rely on dataset-specific artifacts rather than generalizable bot characteristics?
- RQ2Can simple models like shallow decision trees achieve near-state-of-the-art performance on existing benchmark datasets, and what does this imply about model generalization?
- RQ3How well do models trained on combined datasets generalize to out-of-sample datasets, and what does this reveal about data distribution shifts?
- RQ4To what extent can accounts be classified by their originating dataset, even within the same bot type, indicating dataset-level sampling bias?
- RQ5What are the implications of these findings for the use of bot detection as a preprocessing step in downstream social science research?
Key findings
- Shallow decision trees trained on just a few features—such as tweet frequency, liking behavior, or language—achieve near-state-of-the-art performance on most benchmark datasets, indicating that model accuracy stems from data artifacts, not model sophistication.
- Models trained on combined datasets generalize poorly to out-of-sample datasets, with performance dropping significantly, revealing fundamental distributional shifts across datasets.
- A multiclass classifier can predict which dataset an account comes from with high accuracy: 0.67/0.43 balanced accuracy for human accounts, 0.97/0.75 for spammers, and 0.97/0.94 for fake followers, indicating strong dataset-level sampling biases.
- Spam bot datasets are distinguishable by simple behavioral patterns—e.g., Italian-language tweets in social-spambots-1, high liking rates in pronbots-2019—showing that models learn sampling artifacts over bot semantics.
- The high performance of complex models like random forests is not due to their expressiveness but stems from the same dataset-specific features that shallow models exploit.
- These findings imply that bot detection tools used in downstream research may introduce significant bias if the underlying data is not representative or transparently collected.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.