Coursework · Northwestern MSDS 422 (Machine Learning)

Predicting YouTube video virality

Can you predict how many views a video will get from its content, creator, and technical attributes? We enriched a YouTube dataset through the YouTube Data API, engineered creator, content, and thumbnail features, and compared four regression models on log views.

Team
Selin Altiparmak, Max Chalekson, Eddie Deng
Timeline
Winter 2026
Stack
pandas, scikit-learn, YouTube Data API
0.62R² of the tuned random forest
1.51RMSE on log(1 + views)
4models compared

Features

  • Creator: subscriber count, channel views, channel age, upload history.
  • Content: title, description, hashtags, category.
  • Technical: duration, bitrate, resolution, frame rate, codec.
  • Thumbnail: brightness and colorfulness as visual proxies.

Results

We compared Elastic Net, k-nearest neighbors, a multi-layer perceptron, and a random forest. The tuned random forest was strongest (RMSE ≈ 1.51, R² ≈ 0.62). Creator reach dominated: channel views, average channel views, and subscriber count carried most of the signal, well ahead of anything about the video itself.

Bar chart of the top 15 random forest feature importances; channel view count, channel average views, and subscriber count are far ahead of the rest.
Top 15 feature importances from the random forest.