Coder Social home page Coder Social logo

audiorecognition's Introduction

Audio Recognition

This is a audio classification neural network projet. Speech Command dataset is provided by Google and AIY.

A BUG IS FOUND IN DATASET, file 'bird/3e7124ba_nohash_0.wav' has no sound, which cause 'Invalid value encountered in true_divide' Exception when training

The accuracy achieves 0.7539 on validation dataset and categorical_crossentropy achieves 0.81352 with network architecture below,

Layer (type)                 Output Shape              Param #   
=================================================================
input_2 (InputLayer)         (None, 16000, 1)          0         
_________________________________________________________________
conv1d_3 (Conv1D)            (None, 320, 64)           3264      
_________________________________________________________________
conv1d_4 (Conv1D)            (None, 6, 64)             204864    
_________________________________________________________________
batch_normalization_2 (Batch (None, 6, 64)             256       
_________________________________________________________________
lstm_2 (LSTM)                (None, 32)                12416     
_________________________________________________________________
dropout_2 (Dropout)          (None, 32)                0         
_________________________________________________________________
dense_2 (Dense)              (None, 30)                990       
=================================================================
Total params: 221,790
Trainable params: 221,662
Non-trainable params: 128
_________________________________________________________________

Trials and Expreience

  • Single and double Conv Network is not enough for time series situation, like audio in this project. Only RNN(LSTM) is hard to train, since there are 16000 audio frames in one second. A combination of CNN & RNN works better.(单纯的CNN效果一般,RNN难以训练,因为有16000个ts;结合是更好的选择)
  • Data augumentation(But make little difference, which is unexpected)
    • Add noise
    • Drop silence part of audio (做了添加噪音和移除空白音的数据增强,但是效果变差)
  • dropout and recurrent_dropout make training slow and performance worse.(dropoout和recurrent_dropout参数让训练变得缓慢而差劲)
  • GRU perform worse than LSTM in this dataset.
  • double LSTM(firse return_sequences=True, second false) works worse.(双层LSTM让效果很差)
  • Combination of forward & backword LSTM makes little difference.(正反LSTM然后concatenate并没有让结果更好)

audiorecognition's People

Contributors

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