Code Monkey home page Code Monkey logo

genre_classification's Introduction

Music Genre Classification Project

This notebook will use various Python libraries to perform build a machine learning model using audio file metadata.

1. Problem definition

Given features extracted from an audio file, can we predict the genre that the audio belongs to

2. Data

The data came from the Free Music Archive developed by several people at École Polytechnique Fédérale de Lausann (EPFL) and Nanyang Technological University (NTU). The research paper can be found here and the GitHub repository containing the project files can be found here.

3. Evaluation

If we can reach accuracy that is above the highest benchmark recorded in the research paper, the project is complete.

Here is the benchmarks taken from the FMA research paper:

Feature set LR kNN SVM MLP
1 Chroma 44 44 48 49
2 Tonnetz 40 37 42 41
3 MFCC 58 55 61 53
4 Spec. centroid 42 45 46 48
5 Spec. bandwidth 41 45 44 45
6 Spec. contrast 51 50 54 53
7 Spec. rolloff 42 46 48 48
8 RMS energy 37 39 39 39
9 Zero-crossing rate 42 45 45 46
3 + 6 60 55 63 54
3 + 6 + 4 60 55 63 53
1 to 9 61 52 63 58

The values in the table represent the accuracy % of a feature set and a given model.

The models are defined as:

  • LR = Linear Regression with an L2 penalty
  • kNN = k-nearest neighbours with k = 200
  • SVM = support vector machines (SVM) with a radial basis function (RBF)
  • MLP = multilayer perceptron (MLP) with 100 hidden neurons

4. Features

Here are the features that come with each audio file:

genre_classification's People

Contributors

frescoflacko avatar

Stargazers

Michael Stoll avatar

Watchers

James Cloos avatar  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.