I have been recording sound sample from mouse vocalisations and noticed that a background noise appeared in the recording room. the noise is clearly visible in the spectrograms of the recordings as horizontal lines at frequencies 20, 40, 60, 80, and 100 kHz (ultrasonic range). I have tried to record in an acoustically isolated box, lined with sound absorbing material, and it helps, however, the box retains unwanted odours which effect the behaviour of the mice, rendering it unusable.

My question is if there is a method to isolate and remove the noise without affecting the rest of the sounds. I want to study the vocalisations, with an emphasis on the frequency in which the mice communicate under different social encounters, and having that constant noise in the background may affect the results of the study.

Vocal communications were recorded using a 1/4 inch microphone, connected to a preamplifier and an amplifier (Bruel & Kjaer) from mice. Vocalisations were sampled at 250 kHz with a CED Micro 1401-3 (Cambridge Electronic Design Limited, Sunnyvale, CA).

The samples were recorded using spike2, a "DC removal" filter was added to the recording. the files were then transferred to Matlab for splicing further analyses.

I know that there is a strict policy here against attaching files to questions, therefor I'm adding a link to the audio sample and the spectrogram

link to an audio sample and a spectrogram via google drive.


I disagree somewhat with Hilmar.

Technically, what you are calling noise is really an interfering source. Since the fundamental and harmonics are so clear in your spectrum, I think that the hypothesis that you have a steady tone interfering is a good bet.

Yes, it would be better to remove it from the source, but if it is a steady tone it is not that difficult to remove. All you have to do is get a good estimate of it and subtract it from your signal. If it is a steady hum, and you can get a good estimate (at least across several DFT frames), when you remove it, your signal's values in the affected bins should remain. You want to make sure that your DFT frames have a width of a whole number of cycles of your lowest harmonic. Your higher harmonics will also then be whole cylcles in your frame and have leakless bins.

This problem is very similar to removing unwanted powerline noise out of regular audio recordings. Do a search on "remove power main hum from audio recording" for more ideas, and possible hardware solutions for the hum removal.

| improve this answer | |
  • $\begingroup$ agree for the harmonic interference, technically the line spectra, but there is also the wideband non-harmonic content as @Hilmar referred to spurs and that's the real headache you can hardly remove it without affecting the true signal. $\endgroup$ – Fat32 Jan 14 '19 at 23:51
  • $\begingroup$ @Fat32, I didn't analyze his signal, but if that is true, I agree completely. The DFT has already "removed" the harmonic interference from most of his data by concentrating it in narrow zones. Talk "ground loops" with knowledgeable musicians and it can be fun. I am also suspicious that his spectra interference seems to coincide with the Nyquist frequency of CD sound. It could be something in the software path as well. $\endgroup$ – Cedron Dawg Jan 15 '19 at 1:06

I took a look at your noise spectrum and it's pretty bad enter image description here

You have strong lines at 20kHz and harmonics thereof. But also some spurs around 15 kHz, 18 kHz, 25 kHz and 44 kHz. The stuff at 20 you could potentially reduce with a comb filter, but your best bet (by far) is to clean up your measurement/recording setup.

There is no reason for this noise to be there, and you should try to identify the culprit(s) and eliminate them. Look at interconnects, other devices in the room especially lights or communication equipment, electric interference, power supplies, grounding issues etc.

This will be very hard to clean up, so having a good recording in the first place would be much preferable.

| improve this answer | |
  • $\begingroup$ I agree that removing the source is best, but we were unable to identify the source and even if we were able to identify it, it is not certain that removing it was possible. I'm not recording in a room that was specially built for recording and has plenty of equipment for other uses $\endgroup$ – gutzcha Jan 16 '19 at 14:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.