Coder Social home page Coder Social logo

aml's Introduction

Music Hit Prediction Project

Overview

This study focuses on the analysis of Spotify’s “Top 200” playlist and the development of predictive models on the song attributes to determine if a song would become a hit and remain in the top rank 70 in time based on a dataset from 2017 to 2023. Four supervised learning algorithms were tested: Logistic Regression, Random Forest, Naive Bayes, and Neural Networks. The Random Forest model achieved the highest predictive F1-score at 0.823, while the Naive Bayes model reached 0.615 as its F1-score. Both significantly outperformed Neural Network and Logistic Regression at 0.38 and 0.120 F1-score respectively. Further unsupervised learning via K-means clustering identified 5 distinct groups of songs based on song features. This clustering allows new songs to be categorized with similar existing hit songs. The results demonstrate the feasibility of applying machine learning techniques to predict musical success and understand similarities between hit songs. This hit prediction system could assist music producers and companies in planning promotional strategies.

The key steps include:

  1. Exploratory Data Analysis
    • Analyze song attribute trends over time
    • Identify top artists and nationalities
    • Check for outliers
    • Apply PCA for dimensionality reduction
  2. Define "hit" songs based on rank threshold and stability
  3. Train Logistic Regression, Random Forest, Naive Bayes and Neural Network models
  4. Evaluate models using accuracy, f1-score, ROC AUC etc.
  5. Cluster songs using KMeans and analyze clusters

Files

main.ipynb

  • Main Python file containing all code for analysis and modeling

requirements.txt

  • Contains Python package dependencies

Setup

  • The development of this project was done on python 3.8.5 version
  • for further environment setup execute the below command to install required libraries
   pip install -r requirements.txt

Post the setup execute the cells in Jupyter notebook to visualize Dataset and implement the above-mentioned models.

As an alternative executing main.py will also yield the same analysis results.

    python main.py

aml's People

Contributors

vaikunth-coder27 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.