Design Detection of Fake Engagement and Spam Pins
Last updated: November 29, 2026
Quick Overview
Design an ML system that detects spam Pins (deceptive links, scraped content farms) and fake engagement (bot saves and follows) on Pinterest, acting fast enough to limit distribution while keeping false positives on real creators low.
0
0
0 solved
Design an ML system that detects spam Pins (deceptive links, scraped content farms) and fake engagement (bot saves and follows) on Pinterest, acting fast enough to limit distribution while keeping false positives on real creators low.
Spam on Pinterest usually aims to drive outbound clicks to low-quality or malicious sites, and fake engagement can pollute the signals the recommender trusts. The interviewer checks a layered design (rules, real-time models, graph models, human review), label strategy under adversarial conditions, and precise action policies.
What the Interviewer Expects
- Separates Pin-level, account-level and link-level signals
- Combines real-time scoring at creation with batch graph-based detection
- Plans labels from reviewers, user reports and enforcement outcomes
- Defines graded actions (reduce distribution, hold for review, remove)
- Measures prevalence and false positive rate, not only accuracy
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- Spammers start rotating domains every hour; how do you adapt?
- How would you detect a ring of 10,000 accounts that each look normal?
- How do you keep bot saves from biasing your recommendation training data?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Detect: spam Pins at creation, spammy accounts, and inauthentic saves or follows.
Targets: decision within a few hundred ms at Pin creation; near real-time detection of engagement bursts; precision h...
High-Level Design
Layer 1, rules and blocklists: known bad domains, URL redirects to blocked domains, velocity limits on new accounts.
Layer 2, real-time model at Pin creation: gradient boosted trees or a small neural...
Submit Your Answer
Pinterest Machine Learning Engineer Interview Guide
Interview process, tips, and preparation timeline