How to modify spectrograms so that there is no effect of amplitude on their classification?

Hello
Is there any way to bring different classes of spectrograms to comparable amplitude levels so that when they are used for classification, the deep learning algorithm focuses on other aspects (like the presence or absence of harmonics)?
Thanks in advance.

 Accepted Answer

If you want, you can try rescale

2 Comments

I was following this example:
Here they log-transformed the stfts and then normalized the amplitude to [0,1]. Does that mean the algorithm is already using information other than amplitude to classify?
Yes, it looks more at the shape of the signal (spectrogram image) than the amplitude.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!