Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.

Repository files navigation

Enviromental_Sound_Classification

Rasp Raspberry Pi with Webcam

dist

Dataset Class distribution

CNN with 8 layers. Data extracted are mfccs for 1/10 of a second of audio.

Mel Frequency Cepstral Coefficents

Mfcc is a feature widely used in speech recognition.It consists of a complex series of steps that have been established to help with sound classification.The thought process behind these steps is to mimic the way human hearing works.

Initially the audio is cut in 20-40ms frames where we assume that the frequency does not have huge changes. On those frames we apply the SFFT to transfer the signal to the frequency zone and to get the power magnitude. Afterwards we use the mel filterbank which is a series of low and high frequency filters that bring the signal into something closer to what the human ear hears(the human ear is better adjusted to hearing the differences between low frequency sounds).
With the mel filterbank the signal also passes to a logarithmic scale, meaning that lowder noises are now much lowder, something that is true in human hearing aswell.
The last step is to find the delta coefficients of the signal to show the trajectory of the sound over time ,which as shown in the past increases the accuracy of neural networks.

breath

Nice articles related

Code

To classify audio (wav),place it in the same directory with make_prediction.py
and model3.sav files and give as arguments filename and length in seconds.
ex. python make_prediction.py filename.wav 7

About

Enviromental_Sound_Classification project

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages