MulBot: Unsupervised Bot Detection Based on Multivariate Time Series

Lorenzo Mannocci, Stefano Cresci, Anna Monreale, Athina Vakali, Maurizio TesconiarXiv 2022

TL;DR

MULBOT is a novel unsupervised bot detection framework that leverages multivariate time series (MTS) to expose sophisticated, coordinated botnets on social media. By combining an LSTM autoencoder with density-based clustering, it achieves an outstanding F1-score of 0.99 on binary classification and 0.96 on multi-class botnet identification. Because it is entirely unsupervised, MULBOT successfully generalizes to completely new, unseen bot types without requiring re-labeling or retraining.

What Problem Does This Paper Address?

Social bots have evolved from simple automated accounts into highly sophisticated, coordinated networks (botnets) capable of manipulating public discourse, spreading misinformation, and altering digital engagement metrics.

Traditional bot detection methods fall short in two major ways:

  1. Supervised Learning Deficiencies: Most mainstream detectors (like Botometer) rely on supervised classifiers trained on hand-labeled datasets. These models fail to generalize when bots inevitably evolve their behavior to evade detection.
  2. Coarse Granularity: Existing unsupervised or time-series approaches typically analyze only one behavioral dimension at a time (e.g., just retweets or text content). This ignores the rich, multi-dimensional temporal context of how an account behaves across its entire timeline.

The authors introduce MULBOT to bridge this gap by analyzing multiple temporal features simultaneously without relying on any prior labels.

Methods

MULBOT processes user account timelines through a multi-step pipeline designed to capture synchronized group behaviors:

  1. Multivariate Time Series (MTS) Extraction: For each user, MULBOT extracts daily aggregated counts of six key features: URLs, hashtags, mentions, retweets, replies, and favorites.
  2. Dimensionality Reduction via LSTM Autoencoder: To handle the high dimensionality of sequential data, an Long Short-Term Memory (LSTM) autoencoder compresses the MTS into a lower-dimensional latent space. The authors experiment with mapping this data into either a dense vector or a univariate time series.
  3. Clustering Analysis: The compressed representations are fed into a clustering algorithm. For binary classification, Agglomerative Hierarchical clustering is used. For the more complex multi-class task, DBSCAN is applied.
MULBOT Framework Overview

Datasets

The framework was evaluated using the widely recognized public Twitter dataset cresci-17. This dataset contains:

  • 3,394 Genuine Users (29%)
  • 8,144 Bots (71%), further categorized into three distinct types of spambots and one group of fake followers.

To rigorously test the model's ability to handle unseen automation strategies, the authors adapted the Leave One Botnet Out (LOBO) test, iteratively hiding an entire bot class during the autoencoder's training phase to measure generalization performance.

Key Insights and Ideas

  • Humans are "Noise," Bots are Clusters: When using DBSCAN, genuine human users are naturally classified as "noisy" outliers. This happens because human behavior on social media is highly heterogeneous and unique, whereas coordinated bots exhibit rigid, synchronized patterns that form dense, easily identifiable clusters.
  • Interaction Over Content: Feature importance analysis revealed that interaction-based metrics (favorite_count and reply_count) are the most critical indicators of automation. Conversely, content-based features like hashtags and URLs had almost zero importance. This implies that text-generation advancements (like GPT-3) won't help bots evade detectors that focus on temporal interaction patterns.
Fig. 3. Feature importance for the 6 features included in MULBOT.

Key Results

  • Binary Classification: MULBOT achieved a peak accuracy of 0.993 and an F1-score of 0.99 using its Glob_Hier variant, outperforming state-of-the-art baselines like DNA-Sequence (F1 = 0.977).
  • Multi-Class Botnet Detection: In separating genuine users and identifying the four distinct bot types, MULBOT achieved an F1-score of 0.963 and a Matthews Correlation Coefficient (MCC) of 0.949, dramatically outperforming the unsupervised baseline adapted from Ahmed et al. (F1 = 0.618).
  • Generalization (LOBO Test): When completely removing a bot class from training, MULBOT showed negligible performance drops (ranging from only -0.09% to -1.39%), proving its resilience against novel bot variants.
Multi-Class Confusion Matrix

Limitations and Future Work

While MULBOT demonstrates exceptional accuracy, the authors note several avenues for improvement:

  • The Curse of Dimensionality: Incorporating more complex features (such as the exact time gaps between tweets) could enrich the model but might challenge the clustering algorithms due to increased dimensionality.
  • Time Granularity: The current framework relies strictly on daily aggregation. Future work will explore hourly or weekly granularities to find the optimal balance between sequence length and data sparsity.
  • Cross-Dataset Validation: The authors plan to test MULBOT across a wider variety of social media datasets to further validate its robustness.

Summary updated

BibTeX
@misc{mannocci2022mulbot,
  author = {Lorenzo Mannocci and Stefano Cresci and Anna Monreale and Athina Vakali and Maurizio Tesconi},
  title = {{MulBot: Unsupervised Bot Detection Based on Multivariate Time Series}},
  year = {2022},
  eprint = {2209.10361},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.10361},
}
Figure