Code Monkey home page Code Monkey logo

vib_audio_classification's Introduction

VIB audio classification

Audio classification with variational information bottleneck (VIB)

Dependencies

-python 3.7.4 -torch 1.7.1

Feature set information

For this task, we use 3 datsets: emontiontoronto, urbansound8k, audioMNIST.

  1. The emontiontoronto dataset is built using 5252 samples from:

The classes the model wants to predict are the following: (0 = neutral, 1 = calm, 2 = happy, 3 = sad, 4 = angry, 5 = fearful, 6 = disgust, 7 = surprised). This dataset is skewed as there is not a calm class in TESS, hence there are less data for that particular class and this is evident when observing the classification report.

  1. urbansound8k : around 8000 samples of sounds from natural environment
  2. audioMNIST : 3000 samples from 6 speaker prounce 0-9 in English, wiht 50 samples per speaker

Usage

With Pytorch>=1.7.0 environment, you can either run the Notebook (VIB_audio_classifier) or enter he following lines in terminal directly

  1. train over Emotion Toronto dataset: python main.py --mode train --beta 1e-3 --data emotiontoronto --epoch 50 --lr 1.e-3 --K=64 --batch_size=32

(with default values all parameters unless specified)

  1. test over Emotion Toronto dataset: python main.py --mode test --beta 1e-3 --data emotiontoronto --epoch 50 --lr 1.e-3 --K=64 --batch_size=32 --load_ckpt best_acc.tar

References

If you find this repository helpful, please cite our paper: Variational Information Bottleneck for Effective Low-resource Audio Classification, Shijing Si, et al. 2021, https://www.isca-speech.org/archive/pdfs/interspeech_2021/si21_interspeech.pdf

vib_audio_classification's People

Contributors

huacha2021 avatar shijing001 avatar

Stargazers

Hiiragi Utena avatar David Hockaday avatar  avatar aidenfaustine avatar  avatar  avatar

Watchers

 avatar

Forkers

huaxingxu

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.