audio-classifier-keras-cnn | Audio Classifier in Keras using Convolutional Neural Network | Machine Learning library
kandi X-RAY | audio-classifier-keras-cnn Summary
kandi X-RAY | audio-classifier-keras-cnn Summary
Audio Classifier in Keras using Convolutional Neural Network
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- This function augments the data
- Return random bits on or off
- Build the train dataset
- Summarize all preproc files
- Shuffle X and Y
- Encode a class to a 1 - hot vector
- Get the dimensions of the melgrams
- Get list of class names in preproc directory
- Builds a model
- Generate a class from a vector
audio-classifier-keras-cnn Key Features
audio-classifier-keras-cnn Examples and Code Snippets
Community Discussions
Trending Discussions on audio-classifier-keras-cnn
QUESTION
I'd like to create an audio classification system with Keras that simply determines whether a given sample contains human voice or not. Nothing else. This would be my first machine learning attempt.
This audio preprocessor exists. It claims not to be done, but it's been forked a few times:
https://github.com/drscotthawley/audio-classifier-keras-cnn
I don't understand how this one would work, but I'm ready to give it a try:
https://github.com/keunwoochoi/kapre
But let's say I got one of those to work, would the rest of the process be similar to image classification? Basically, I've never fully understood when to use Softmax and when to use ReLu. Would this be similar with sound as it would with images once I've got the data mapped as a tensor?
...ANSWER
Answered 2017-Sep-21 at 23:16Sounds can be seen as a 1D image and be worked with with 1D convolutions. Often, dilated convolutions may do a good work, see Wave Nets
Sounds can also be seen as sequences and be worked with RNN layers (but maybe they're too bulky in amount of data for that)
For your case, you need only one output with a 'sigmoid'
activation at the end and a 'binary_crossentropy'
loss.
- Result = 0 -> no voice
- Result = 1 -> there's voice
When to use 'softmax'?
The softmax function is good for multiclass problems (not your case) where you want only one class as a result. All the results of a softmax function will sum 1. It's intended to be like a probability of each class.
It's mainly used at the final layer, because you only get classes as the final result.
It's good for cases when only one class is correct. And in this case, it goes well with the loss categorical_crossentropy
.
Relu and other activations in the middle of the model
These are not very ruled. There are lots of possibilities. I often see relu in image convolutional models.
Important things to know are they "ranges". What are the limits of their outputs?
- Sigmoid: from 0 to 1 -- at the end of the model this will be the best option for your presence/abscence classification. Also good for models that want many possible classes together.
- Tanh: from -1 to 1
- Relu: from 0 to limitless (it simply cuts negative values)
- Softmax: from 0 to 1, but making sure the sum of all values is 1. Good at the end of models that want only 1 class among many classes.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install audio-classifier-keras-cnn
You can use audio-classifier-keras-cnn like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page