https://github.com/yash509/music-recommendation-based-on-facial-expressions
https://github.com/yash509/music-recommendation-based-on-facial-expressions
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yash509/music-recommendation-based-on-facial-expressions
- Owner: yash509
- License: mpl-2.0
- Created: 2024-04-01T03:03:53.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-01T03:05:37.000Z (about 1 year ago)
- Last Synced: 2024-04-01T04:22:37.773Z (about 1 year ago)
- Language: Jupyter Notebook
- Size: 23.9 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
Music Recommendation based on Facial Emotion Recognition
========================================================**Mood Detection** model can detect face from any image and then it can predict the emotion from that face.
We can do it from both still images and videos.
After predicting the emotion from face our recommender system take the predicted emotion as input and generate recommendation by processing a Spotify dataset from a kaggle contest. We predicted the music mood from a model trained with **data_moods.csv**. The recommender system will generate top 40 songs to recommend for a spotify playlist.Mood Detection
--------------
**Mood Detection** model will predict one of the emotion among 7 emotions listed below-
* Happy
* Sad
* Angry
* Disgust
* Surprise
* Neutral
* FearMusic Mood Prediction
---------------------Every songs in the main dataset in the **Datasets.7z** folder predicted to one of the mood among 4 moods listed below-
* Happy
* Sad
* Energetic
* CalmBy using a music mood classifier model we predicted each songs mood in our intermediate dataset **kaggleSpotifyMusicMood** in the Dataset.7z folder.
Music Recommendation
--------------------
Our main project file is **music_recommender.ipynb** file. This recommendation system is using content based filtering. We follow these steps to recommend music-
* Dataset Pre-processing
* Feature Engineering
* Connect to Spotify API
* Create Playlist Vector
* Generate Recommendation using cosine similaritySo according to this project, we will take an image of an user and predict emotion using **Emotion Detection** model. By prioritizing the songs from our main dataset **kaggleSpotifyMoodFinal.csv** with music mood comparing with different face emotion, this system will generate top 40 songs to recommend for a particular spotify playlist.
Spotify Dataset link: https://www.kaggle.com/yamaerenay/spotify-dataset-19212020-160k-tracks **(Spotify Dataset 1922-2021, ~600k Tracks)**
Dataset for mood Classifier link: https://github.com/cristobalvch/Spotify-Machine-Learning/tree/master/data **(data_moods.csv)**