Audio pre-processing for Machine Learning: Getting things right
1–9 of 9 posts
Re: Audio pre-processing for Machine Learning: Getting things right
#2Re: Audio pre-processing for Machine Learning: Getting things right
#3Finally, if you pre-process the audio using an FFT try different FFT sizes.
Re: Audio pre-processing for Machine Learning: Getting things right
#4Re: Audio pre-processing for Machine Learning: Getting things right
#5Some good basic info, but at the same time there are some inaccuracies. WAV is not a lossless format, it's a container, it can contain any compressed audio format, even mp3. You can have PCM inside WAV, which is indeed lossless, but you're not going to see that in the wild too often. Going with 16k is also questionable, since most readily available pre-existing datasets, were recorded in 8k (which is what telephony c…
Re: Audio pre-processing for Machine Learning: Getting things right
#6This is a good starting point but it ends just when things get interesting. If you are going to process audio for ML make sure you experiment with normalizing the input volume, this can make a huge difference and try if your inputs are in stereo to process both mono, single channel and stereo inputs to see which one performs better. Finally, if you pre-process the audio using an FFT try different FFT sizes.
The trade off for window size is frequency resolution and time resolution. A bigger window gives you narrower bands, so more frequency resolution while giving you less temporal resolution where an onset of transient is significant in the analysis. Similarly, hop size will determine how 'leaky' the process is and how fine grained the windows will be. This can effect detecting quick peaks or changes while possibly smearing them across a few windows.
Re: Audio pre-processing for Machine Learning: Getting things right
#7I believe I based my code of this matlab code: https://github.com/ebrevdo/synchrosqueezing/tree/master/sync...
The above matlab code is ridiculously slow, I rewrote it using sse intrinsics, and got it several orders of magnitude faster.
I hope this helps out someone. I never really produced anything with it, but I still feel it is promising.
Re: Audio pre-processing for Machine Learning: Getting things right
#8This is a good starting point but it ends just when things get interesting. If you are going to process audio for ML make sure you experiment with normalizing the input volume, this can make a huge difference and try if your inputs are in stereo to process both mono, single channel and stereo inputs to see which one performs better. Finally, if you pre-process the audio using an FFT try different FFT sizes.