A machine learning approach to classify songs by mood.
Switch branches/tags
Clone or download
Latest commit e1f741e Nov 2, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
code add notebooks back Sep 30, 2016
dataset upload lyrics Oct 26, 2016
docs added bernoulli to table Dec 13, 2014
images webapp code Dec 23, 2014
.gitignore upload lyrics Oct 26, 2016
LICENSE 1st commit Dec 7, 2014
README.md update links Nov 2, 2016



A machine learning approach to classify music by mood based on song lyrics.

This project is about building a music recommendation system for users who want to listen to happy songs. Such a system can not only be used to brighten up one's mood on a rainy weekend; especially in hospitals, other medical clinics, or public locations such as restaurants, the MusicMood classifier could be used to spread positive mood among people.



Dataset Summary

back to top

  • A 10,000-song subset was downloaded from the Million Song Dataset.
  • Lyrics were automatically downloaded from LyricWikia and all songs for which lyrics have not been available were removed from the dataset.
  • An English language filter was applied to detect and remove all non-English songs.
  • The remaining songs were randomly subsampled into a 1000-song training dataset and 200-song validation dataset.

Exploratory Data Analysis

back to top


back to top