Coder Social home page Coder Social logo

music-genre-classification's Introduction

Music Genre Classification

Research in Deep learning and machine learning, Boston University

Introducation

My work classifies ten classes music genre of a sound sample and uses Pytorch and scikit-learn to recognize the music genre.

GTZAN -- Datasets

The dataset consists of 1000 audio tracks each 30 seconds long. It contains 10 genres, each represented by 100 tracks. The tracks are all 22050Hz Mono 16-bit audio files in .wav format.
Classes: blues, classical, country, disco, hiphop, jazz, metal, pop, reggae, rock
Training Set: 80%
Testing Set: 10%
Validing Set: 10%

Preprocessing Data

Mel-frequency cepstral coefficients (MFCC)
Spectral Centroid
Zero Crossing Rate
Chroma Frequencies
Spectral Roll-off
Spectrogram images

Models

Scikit-learn: SVM, MLP lbfgs(quasi-Newton method), MLP Adam(gradient-based optimizer), Decision Tree
Pytorch: CNN, DCNN, DCNN-RNN

Results

Scikit-learn with MFCC(20), Spectral Centroid, Zero Crossing Rate, Chroma Frequencies, Spectral Roll-off:
SVM: 65.5%
MLP adam: 66%
MLP lbfgs: 65%
Decision Tree: 44%

Pytorch:
DCNN-RNN with MFCC(50): 63%
DCNN with MFCC(50): 60%
CNN with spectrogram images: 43%

Discussion

The results of CNN, DCNN, DCNN-RNN are not the most optimized results. During analyzing the training loss and valid loss, the NN performance can increase by adjusting the learning rate, changing the parameters in the NN model, choosing the different features, and inputting the more substantial data size.
The performance of my NN will surpass the scikit-learn results after optimization.

music-genre-classification's People

Contributors

qirensun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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