Coder Social home page Coder Social logo

sabaudian / music_genre_classification_project Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 1.36 GB

Audio Pattern Recognition project - Music Genre Classification

License: MIT License

Python 100.00%
audio-analysis audio-classification audio-processing genre-classification genres-classification k-nearest-neighbours k-nn music-genre-classification music-information-retrieval neural-network

music_genre_classification_project's Introduction

Music Genre Classification Project

This repository is based on the recognition of musical genres through supervised and unsupervised learning.

apr_project_architecture

Plugins:

$ pip install -r requirements.txt

Information:

the dataset used for built this project is the notorious GTZAN dataset, recovered from kaggle (link to database: https://www.kaggle.com/datasets/andradaolteanu/gtzan-dataset-music-genre-classification).

In the utils directory, there are all that classes used for preprocessing the dataset and performing data augmentation (I did not use the csv file available at the previous link, I built my own).

  • features_computation: computation of the various features to extract from audio files.
  • features_extractions: extraction of the computed features to a csv file in a proper directory.
  • features_visualizations: visualization of the single audio signals and the visualization of the various extracted features with a confrontation of the different genres.
  • prepare_dataset: check the duration of audio files and perform data augmentation (30s long file -> ten 3s long chunk).

Then we have the core classes of the project:

  • main: main class of the project that calls all the other.
  • genres_ul_functions: performs k-means clustering and then performs its evaluation.
  • genres_sl_functions: performs various classification algorithms (Neural Network, Random Forest, K-Nearest Neighbors, Support Vector Machine) and evaluate their performances with confusion matrix, roc curve and metrics (accuracy, F1-score,...).
  • plot_functions: used for defining all the plot functions.
  • constants: contains all the constants used in the project.

Performace Summary:

MULTILAYER PERCEPTRON RANDOM FOREST K-NEAREST NEIGHBORS SUPPORT VECTOR MACHINE
ACCURACY 84.80 79.33 89.80 89.40
F1-SCORE 0.85 0.79 0.90 0.89
EXECUTION TIME (sec) 63.72 52.76 7.73 21.40

music_genre_classification_project's People

Contributors

sabaudian avatar

Stargazers

 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.