Skip to main content
2 min readUpdated 19 Oct 20269 weeks

Music Recommendation System based on Listening Behavior

EasyBTech CSEBCAMCABSc IT+5 moreAI & Machine LearningData Science
Share:
100% Free

Get Free Synopsis PDF

We will prepare a detailed synopsis for your college submission. Includes problem statement, objectives, DFD, ER diagram, and more.

This project builds a music recommendation system that suggests songs based on a user's listening history, skip behavior, and audio feature similarity. Implicit-feedback collaborative filtering using alternating least squares is trained on play-count and skip data, complemented by audio-feature-based similarity using tempo, energy, and danceability attributes to recommend songs with similar sonic characteristics. A React-based player interface displays personalized playlists generated from the recommendation engine.

Problem Statement

Music streaming users with access to millions of tracks often struggle to discover new songs aligned with their taste, and relying solely on manual search leads to limited catalog exploration. A behavior-driven recommendation engine combining listening patterns and audio characteristics can surface relevant new music more effectively.

Plays and skips, not star ratings

Nobody rates songs out of five. What you have is behaviour: how many times a song was played, whether it was skipped in the first 30 seconds, whether it was replayed. That is called implicit feedback, and the main idea of this project is turning those signals into a confidence score. A song played 40 times is a strong yes. A song skipped every time is a soft no. A song never played tells you almost nothing.

Check your audio feature source early

Many older tutorials pull tempo, energy and danceability from Spotify's Web API. In November 2024 Spotify announced that new apps can no longer use its audio features and recommendations endpoints, so don't plan your project around them. Use a public dataset that already includes these features (several Spotify track datasets on Kaggle do), or extract your own features such as tempo and MFCCs from audio previews with the librosa library.

Suggested build order

  • Listening data: a public Last.fm listening history dataset, or logs from your own React player used by friends for a few weeks.
  • Build a user-song matrix where each cell is a confidence value from plays, replays and skips. Write the formula down; examiners will ask about it.
  • Train ALS for implicit feedback (the Python implicit library is a common choice) to get user and song vectors.
  • Compute audio similarity between songs with cosine similarity on normalised features.
  • Final playlist score: mostly ALS, plus a share of audio similarity to the songs the user played this week. Audio similarity also helps new songs that nobody has played yet.

Evaluating without real users

Hide each user's most recent listening sessions, recommend 20 songs, and measure how many hidden songs appear (precision@20 and MAP). Compare three versions: most popular songs, ALS only, and ALS plus audio. Also check diversity, for example how many different artists appear in a playlist, because a playlist with one artist ten times will score well and still feel bad.

Objectives

1

Prepare implicit listening behavior data including play counts and skip rates

2

Train an alternating least squares model for implicit-feedback collaborative filtering

3

Incorporate audio feature similarity for sonic-characteristic based recommendations

4

Build a playlist interface displaying personalized song recommendations

5

Evaluate recommendation quality using implicit-feedback ranking metrics

Modules

M1

Behavior Data Preparation Module

Processes implicit listening signals such as play counts, skip rates, and replay frequency per user-song pair.

M2

Implicit Collaborative Filtering Module

Trains an alternating least squares model to learn user and song latent factors from implicit feedback.

M3

Audio Similarity Module

Computes similarity between songs based on audio features like tempo, energy, and danceability.

M4

Playlist Generation Module

Combines collaborative and audio-similarity scores to generate personalized playlists.

M5

Evaluation Module

Assesses recommendation quality using ranking metrics such as mean average precision on held-out listening sessions.

Expected Output

The system generates personalized music playlists by combining implicit listening-behavior patterns with audio-feature similarity, achieving solid ranking metrics on held-out listening data. It demonstrates how implicit feedback can be leveraged effectively when explicit ratings are unavailable.

Future Scope

Future work includes incorporating contextual signals like time of day and activity type, and experimenting with sequence-aware models that account for the order of songs within a listening session.

Similar Project Ideas

Frequently Asked Questions

Feedback you infer from behaviour, such as plays, skips, clicks or watch time, instead of ratings the user gives directly. It is noisier but there is far more of it.
You can use it for basic things like searching tracks if your app has access, but the audio features and recommendations endpoints were restricted for new apps in November 2024. Plan around a dataset with features or your own feature extraction.
Treat an early skip as weak negative evidence by lowering that song's confidence for the user, and keep skips separate from songs never played. Explain your weights in the report and test one or two alternatives.
Click the "Get Free Synopsis PDF" button on this page. Fill in your details and we will send a detailed synopsis to your WhatsApp within 24 hours at no cost.
Yes, this project includes a detailed problem statement, objectives, and module breakdown that you can use for your college submission. The synopsis PDF we provide is formatted for academic submission.
This project uses: Pandas, Scikit-learn, Flask, React, Python. Basic knowledge of these technologies is recommended before starting.