Skip to content
Detection methodsBots & coordinated campaigns unsupervisedstructural analysisinterpretability

Unsupervised Social Bot Detection via Structural Information Theory

ACM Transactions on Information Systems · 2024

In brief

Social bots spread misinformation and disrupt information dissemination, but current detection methods either rely on black-box neural networks (limiting interpretability) or use simple behavioral markers that sophisticated bots can evade. This paper proposes UnDBot, an unsupervised framework using structural information theory to decode bot behavior through multi-relational graph analysis and hierarchical community detection. UnDBot achieves \text{ACC} = 89–93\% on four Twitter datasets while remaining fully interpretable.

Contributions

  • An unsupervised, interpretable detection framework (UnDBot) based on structural information theory, addressing the black-box problem in supervised neural approaches.
  • Three novel social relationship metrics that capture behavioral similarity: Posting Type Distribution, Posting Influence, and Follow-to-Follower Ratio.
  • A multi-relational graph construction method for social users that extends traditional direct-interaction models to include behavioral similarity.
  • A heterogeneous structural entropy optimization method using weighted edge types and an encoding tree for adaptive hierarchical clustering.
  • A community labeling method combining community influence (via stationary distribution) and community cohesion (via structural entropy) to distinguish bot communities from human communities.
  • Comprehensive experiments on four datasets (Cresci-2015, Cresci-2017, Pronbots-2019, Botwiki-2019) demonstrating superior performance and interpretability compared to 10+ baselines.

Method

The framework consists of three main components:

1. Multi-relational Social User Graph. Rather than modeling only direct interactions (following, liking, retweeting), UnDBot constructs edges based on behavioral similarity. Posting Type Distribution edges connect users with similar distributions of original tweets, retweets, and comments. Posting Influence edges connect users whose comments, likes, and retweets reach similar audience sizes. Follow-to-Follower Ratio edges connect users with similar following-to-followers ratios. Edges are weighted by similarity (using Manhattan distance thresholds), producing a heterogeneous multi-relational graph $G' = (V, \mathcal{E}_k)$ with $k$ relationship types.

2. Hierarchical Structural Entropy Optimization. The framework extends traditional structural entropy (originally defined for homogeneous graphs) to multi-relational graphs. It constructs an optimal 2D encoding tree through a greedy merging operator that minimizes heterogeneous structural entropy $H^T(G')$. The encoding tree partitions the user space hierarchically, with each level representing a different granularity of community division. Unlike fixed-clustering methods (K-means, spectral), this approach adaptively determines the number and size of communities.

3. Community Binary Classification. Once communities are identified, UnDBot labels each using a community evaluation index $Eu(\alpha)$ that combines: (a) community influence $x_{\text{comm}}^{\alpha}$ — the stationary distribution (via random walk) capturing the average influence of users in the community; (b) community cohesion $H(G':\alpha)$ — the structural entropy of the community node on the encoding tree, measuring internal interconnectedness. Communities with evaluation scores above a threshold $\theta$ are classified as bot communities.

Results

Evaluated on four publicly available Twitter bot detection datasets:

  • Cresci-2015: 1,950 humans, 3,351 bots; UnDBot ACC = 89.12%, Precision = 86.4%, Recall = 83.4%
  • Cresci-2017: 3,474 humans, 9,263 bots; UnDBot ACC = 89.32%, Precision = 85.6%, Recall = 85.8%
  • Pronbots-2019: 1,481 humans, 17,882 bots; UnDBot ACC = 92.68%, Precision = 94.8%, Recall = 92.3%
  • Botwiki-2019: 65 humans, 698 bots; UnDBot ACC = 90.22%, Precision = 93.2%, Recall = 88.3%

Comparisons to unsupervised baselines (K-means on features, DNA):

  • Outperforms K-means by 12.61–19.66% (ACC)
  • Outperforms DNA by 12.40–13.56% (ACC)

Comparisons to unsupervised graph representation learning methods (DeepWalk, Node2vec, LINE, SDNE, GraRep, DNGR, HOPE):

  • Improves over the best baseline by 1.37–3.13% (ACC), with better precision-recall balance

Ablation studies demonstrate that multi-relational graph structure contributes meaningfully to accuracy; homogeneous graphs yield significantly lower recall, particularly on Pronbots-2019 and Botwiki-2019.

Notes

Strengths: The core insight—that behavioral similarity creates informative graph structure—is novel and well-motivated. The multi-relational approach captures posting behavior, influence, and network position simultaneously, addressing limitations of single-relation or feature-based methods. Full interpretability through hierarchical communities and explicit influence/cohesion metrics is a major advantage over neural approaches for understanding bot behavior. Extensive ablation studies validate each component's contribution. Code and datasets are publicly available.

Limitations: Performance on Botwiki-2019 (smallest dataset, 763 total users) is notably higher, raising questions about whether the method's adaptive clustering has sufficient signal in truly large-scale deployments. The evaluation is restricted to Twitter; generalization to other platforms (Instagram, TikTok, Bluesky) remains untested. The similarity thresholds ($\epsilon$) for edge construction appear dataset-specific and may require tuning. The paper does not address temporal dynamics—bots and humans may display different behaviors over time, and static snapshots may miss evolving detection challenges.

Future directions: Extending to multiplatform settings, incorporating temporal evolution, and comparing against recent transformer-based bot detectors would strengthen the contribution. Real-world deployment challenges (computational efficiency, handling streaming data, interpretability trade-offs with more sophisticated baselines) warrant practical investigation.

How it connects

Similar papers

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