필터 지우기
필터 지우기

Audio data collection scaling

조회 수: 5 (최근 30일)
Ivan Arkhipov
Ivan Arkhipov 2021년 8월 25일
댓글: Ivan Arkhipov 2021년 8월 27일
I collected some experimental data using an industrial IEPE microphone. When I called audiowrite to write the data to a file, I received a warning message about clipping the data. I found a solution to scale the data by dividing by the maximum of the absolute value.
Looking at the data now, I did not realize the maximum would vary by so much since the measurements were taken at similar conditions. Since I do not have the original maximums I cannot properly scale the data to be on the same scale. Two audio files recorded at identical conditions should have roughly the same amplitude, but one of the files has a significant amplitude shift.
I was wondering if there are any techniques to scale the data properly. It seems that outliers are causing one of the signals to be shifted more than the other.
The regions from 0 seconds to 1000 seconds in the first signal and 200 seconds to 1000 seconds should have roughly the same amplitudes.
Do I need to recollect data?

채택된 답변

Walter Roberson
Walter Roberson 2021년 8월 26일
Unfortunately when you normalize according to maximum absolute magnitude, then you can end up normalizing according to the maximum "pop" (or spurious noise), which can throw everything off.
If you have burst noise, then sometimes what you should do is a low-pass filter set to reject high frequencies (pops are fast, so high frequency); or sometimes use a median filter (which also tends to be a low-pass filter.) . And then, having done so, re-normalize each segment.
I see that those kinds of microphones are typically used to measure force or acceleration or pressure. I have to wonder whether using relative values between the measurements is meaningful, or if your work should really be using absolute measurements?
I could see relative being useful to study the distribution of vibration modes, where the interesting information might be in the locations rather than in the magnitude... but force and acceleration especially, absolute measurements are more often needed.
  댓글 수: 3
Walter Roberson
Walter Roberson 2021년 8월 26일
How wide of a window did you end up using on the median filter?
Ivan Arkhipov
Ivan Arkhipov 2021년 8월 27일
I used a window of length 10, but I am trying out different sizes. It seems that the median filtering and renormalizing works well depending on how much spurious noise there is in the segment I chose. For the files shown above, I applied the median filter to the entire file, and then chose 200 to 400 seconds as the region of interest to renormalize. I think I have to find the optimal region in each file for this method to be effective.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Measurements and Spatial Audio에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by