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.
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.