Coder Social home page Coder Social logo

music-genre-classification's Introduction

Music-Genre-Classification in action

Classification based on kernel SVM

Description

  • Database Used: http://opihi.cs.uvic.ca/sound/genres.tar.gz [1.2GB]
  • We are using kernel SVM not 'Linear' because our dataset will not be linearly saperable if we visualize.So Here I am using pyAudioAnanlysis [Reference: https://github.com/tyiannak/pyAudioAnalysis ] library to extract all 34 feature from music file.
  • When our features are extracted in a vector format we will feed these data to SVM model,but as mentioned before it is not possible to saperate linearly.So we are using kernel SVM.
  • Features extracted using pyaudioanalysis library.

Feature Details:

Feature Name Description
Zero-Crossing Rate The rate of sign changes of the signal during the duration of a particular frame.
Energy The sum of squares of the signal values, normalized by the respective frame length.
Entropy of Energy The entropy of sub-frames normalized energies. It can be interpreted as a measure of abrupt changes.
Spectral Centroid The center of gravity of the spectrum.
Spectral Spread The second central moment of the spectrum.
Spectral Entropy The entropy of the normalized spectral energies for a set of sub-frames.
Spectral Flux The squared difference between the normalized magnitudes of the spectra of the two successive frames.
Spectral Rolloff The frequency below which 90% of the magnitude distribution of the spectrum is concentrated.
MFCCs (9-21) Mel Frequency Cepstral Coefficients form a cepstral representation where the frequency bands are not linear but distributed according to the mel-scale.
Chroma Vector (22-33) A 12-element representation of the spectral energy where the bins represent the 12 equal-tempered pitch classes of western-type music (semitone spacing).
Chroma Deviation The standard deviation of the 12 chroma coefficients.

Some information about kernel SVM:

So after training our SVM classifier we will test on any file.

  • I have selected 'isSignificant' level which is minimum probability to classify our test file.[In my code : 0.6]

Screens

  • Base-view

Base-View

  • Upload file format enforcing

Upload-filtering-to-wav

  • Prediction of uploaded file

Test-Prediction-screen

  • Output when it fails to predict based on significance set

Failed-to-classify

Note: This is a utilisation of library to perform classification to get understanding of Kernel SVM.

music-genre-classification's People

Contributors

kishanmistri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

annahung31

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.