Feature Extraction of Insect Sounds First of all, forgive me if I sound stupid. I am still learning Audio Processing. 
So I am trying to make a machine learning model for detecting a specific insect through sound. 


Here is a sample raw audio waveplot using librosa library: 

After some preprocessing, applying High- pass filter and normalize it here is the output: 



My questions are:


The next step would be to extract features from this, do I have to frame the audio manually and extract the features from that specific frame? Like this?



How would I remove the silence where the sound of the insects is not present?
Or do I have to analyze it directly for the whole duration of the sound? I have tested Librosa's Library in generating Spectrogram, here is the output:






Any good resources you can recommend for beginners?


Thank you so much.
Typically, for analyses like this, you do overlapping windows with a hop size that is fixed fraction of the window size.  So, for example, you might start by doing analyses of 1024 frames per window, and move the window forward 256 samples per analysis.  Depending on how the data looks then, you may or may not want to apply a window function (like Hamming or the like) to each window.

But since you're basically trying to remove noise, it might be simpler to take an example of the noise itself, and then try to reduce that noise from the original sample.  Take the FFT of the noise, subtract the frequency bins of the noise from the frequency bins of the sample, and run an inverse FFT to produce the final filtered result.  If you take this approach, make sure to only do FFTs at half the sample rate.