NLP · Machine Learning · Planned project

YouTube Comment Spam Detector

Planned, not built yet: a classifier to flag phishing-scam, adult-bait, and engagement-spam YouTube comments so the harmful ones can be surfaced.

PythonYouTube Data APIpandasscikit-learn
Planned
not built yet
4
planned comment categories
Recall
-first evaluation on high-risk categories

Overview01

Harmful comments reduce user trust, skew engagement metrics, and expose vulnerable viewers to scams and worse. The plan is to classify comments into four buckets, phishing_scam (crypto and messaging-app links), adult_bait (automated content traps), engagement_spam (repetitive “who is watching in 2026” patterns), and benign, so the harmful ones can be surfaced and handled.

The plan02

  1. Collect. Pull comments through the YouTube Data API.
  2. Label. Use rule-based weak supervision to flag obvious spam, then validate a sample by hand against clear guidelines.
  3. Engineer features. Extract behavioral markers: link density, emoji frequency, and repetition signatures.
  4. Train. Start with a simple text-classification baseline (TF-IDF with logistic regression) for the four categories.

Evaluation plan03

Because a missed scam costs more than a false alarm, the plan is to prioritize recall on the high-risk categories (phishing and adult-bait), while tracking precision so moderators aren’t flooded, and to use confusion matrices and error analysis to show where it works and where it slips.

Tech

PythonYouTube Data APIpandasscikit-learn