Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Monday, Dec 7.Claim the deal
1Framing the ProblemChapter 1

Every social media platform eventually faces automated actors that create fake accounts, spam messages, post duplicate content, and spread misinformation. These bots erode user trust and degrade the experience for hundreds of millions of real people. Our goal is to design a system that detects this automated activity accurately enough to take enforcement action without wrongly restricting legitimate users.

What we are detecting and why

The primary surface is per-action bot scoring on a social media platform with roughly 500M monthly active users (MAU). When a user posts content, sends a friend request, or sends a message, the bot scoring service evaluates that action in real time and returns a bot-likelihood score. The trust-and-safety enforcement service consumes this score and applies graduated responses: throttle the account, present a CAPTCHA challenge, shadow-ban, or suspend. The business objective is protecting platform trust and brand value, not just optimizing classification accuracy.

The ML task is binary classification: given account features, behavioral signals, and action context, predict P(bot∣action)P(bot | action). The precision constraint is hard. At 500M MAU, even a 0.1% false positive rate means 500k wrongly restricted users per day, so we target at least 95% precision before enforcement. The adversarial nature of this problem is the defining complication: unlike passive classification targets, bots actively evolve to evade detection, which means the system must be designed for continuous adaptation rather than one-time accuracy.

The system shape is a multi-stage cascade. A rule pre-filter catches the most blatant automated behavior at near-zero latency. An online ML classifier scores the remaining actions using behavioral and account features within a 50-100 ms budget. A batch graph analysis sweep runs daily to catch coordinated campaigns that per-action scoring misses. Nearline feature aggregation via Flink keeps behavioral velocity features fresh within minutes, while Kafka provides the durable event log that feeds both the training pipeline and the monitoring layer.

Your progressLogin to save progress
Spot an issue or have a suggestion?