effect of soundproofing on perceived noise levels -凯发k8网页登录
in this example, you measure engine noise and use psychoacoustic metrics to model its perceived loudness, sharpness, fluctuation strength, roughness, and overall annoyance level. you then simulate the addition of soundproofing material and recompute the overall annoyance level. finally, you compare annoyance levels and show the perceptual improvements gained from applying soundproofing.
recording level calibration
psychoacoustic measurements produce the most accurate results with a calibrated microphone input level. to use to match your recording level to the reading of an spl meter, you can use a 1 khz tone source (such as an online tone generator or cell phone app) and a calibrated spl meter. the spl of the 1 khz calibration tone should be loud enough to dominate any background noise. for a calibration example using matlab as the 1 khz tone source, see .
simulate the tone recording and include some background noise. assume an spl meter reading of 83.1 db (c-weighted).
fs = 48e3;
t = (1:2*fs)/fs;
s = rng('default');
testtone = 0.46*sin(2*pi*t*1000).' .1*pinknoise(2*fs);
rng(s)
splmeterreading = 83.1;
to compute the calibration level of a recording chain, call and specify the test tone, the sample rate, the spl reading, and the frequency weighting of the spl meter. to compensate for possible background noise and produce a precise calibration level, match the frequency weighting setting of the spl meter.
calib = calibratemicrophone(testtone,fs,splmeterreading,"frequencyweighting","c-weighting");
sound pressure levels (spl)
once you have a calibration factor for your recording chain, you can make acoustic measurements. when using a physical meter, you are limited to the settings selected during measurement time. with the object, you can change your settings after the recording has been made. this makes it easy to experiment with different time and frequency weighting options.
load an engine recording and create the corresponding time vector.
[x,fs] = audioread('engine-16-44p1-stereo-20sec.wav'); x = x(1:8*fs,1); % use only channel 1 and keep only 8 seconds. t = (1:size(x,1))/fs;
create an object and select c-weighting, fast time weighting, and a 0.2 second interval for peak spl measurement.
spl = splmeter("calibrationfactor",calib, ... "frequencyweighting","c-weighting", ... "timeweighting","fast", ... "timeinterval",0.2, ... "samplerate",fs);
plot spl and peak spl.
[lcf,~,lcpeak] = spl(x); plot(t,lcpeak,t,lcf) legend('lcpeak','lcf','location',"southeast") title('spl measurement of engine noise') xlabel('time (seconds)') ylabel('spl (db)') ylim([70 95]) grid on
psychoacoustic metrics
loudness level
monitoring spl is important for occupational safety compliance. however, spl measurements do not reflect loudness as perceived by an actual listener. measures loudness levels as perceived by a human listener with normal hearing (no hearing impairments). the function also shows which frequency bands contribute the most to the perceptual sensation of loudness.
using the same calibration level as before, and assuming a free-field recording (the default), plot stationary loudness.
acousticloudness(x,fs,calib)
the loudness is 23.8 sones, and much of the noise is below 3.3 (bark scale). convert 3.3 bark to hz using
fprintf("loudness frequency of 3.3 bark: %d hz\n",round(bark2hz(3.3),-1));
loudness frequency of 3.3 bark: 330 hz
the function returns perceived loudness in sones. to understand the sone measurement, compare it to an spl (db) reading. a signal with a loudness of 60 phons is perceived to be as loud as a 1 khz tone measured at 60 db spl. converting 23.8 sones to phons using demonstrates the loudness perception of the engine noise is as loud as a 1 khz tone measured at 86 db spl.
fprintf("equivalent 1 khz spl: %d phons\n", round(sone2phon(23.8)));
equivalent 1 khz spl: 86 phons
make your own plot with units in phons and frequency in hz on a log scale.
[sone,spec] = acousticloudness(x,fs,calib); barks = 0.1:0.1:24; % bark scale for iso 532-1 loudness hz = bark2hz(barks); specphon = sone2phon(spec); semilogx(hz,specphon) title('specific loudness') subtitle(sprintf('loudness = %.1f phons',sone2phon(sone))) xlabel('frequency (hz)') ylabel('loudness (phons/bark)') xlim(hz([1,end])) grid on
you can also plot time-varying loudness and specific loudness to analyze the sound of the engine if it changes with time. this can be displayed with other relevant time-varying data, such as engine revolutions per minute (rpms). in this case, the noise is stationary, but you can observe the impulsive nature of the noise.
acousticloudness(x,fs,calib,'timevarying',true,'timeresolution','high')
plot specific loudness with the frequency in hz (log scale).
[tvsonehd,tvspechd,perc] = acousticloudness(x,fs,calib,'timevarying',true,'timeresolution','high'); tvspec = tvspechd(1:4:end,:,:); % for standard resolution measurements spectimehd = 0:5e-4:5e-4*(size(tvspechd,1)-1); % time axis for loudness output clf; % do not reuse the previous subplot surf(spectimehd,hz,sone2phon(tvspechd).','edgecolor','interp'); set(gca,'view',[0 90],'yscale','log','ylim',hz([1,end])); title('specific loudness (hd)') zlabel('specific loudness (phons/bark)') ylabel('frequency (hz)') xlabel('time (seconds)') colorbar
sharpness level
the perceived sharpness of a sound can significantly contribute to its overall annoyance level. estimate the perceived sharpness level of an acoustic signal using the function.
sharp = acousticsharpness(spec)
sharp = 1.1512
pink noise has a sharpness of 2 acums. this means the engine noise is biased towards low frequencies.
plot time-varying sharpness.
acousticsharpness(x,fs,calib,'timevarying',true);
fluctuation strength
in the case of engine noise, low-frequency modulations contribute to the perceived annoyance level.
first, look at what modulation frequencies are present in the signal.
n = 2^nextpow2(size(x,1)); xa = abs(x); % use the rectified signal pspectrum(xa-mean(xa),fs,'frequencylimits',[0 80],'frequencyresolution',1) title('modulation frequencies')
the modulation frequency peaks at 24.9 hz. below 30 hz, modulation is perceived dominantly as fluctuation. there is a second peak at 49.7 hz, which is in the range of roughness.
use to compute the perceived fluctuation strength. the engine noise is relatively constant in this recording, so we have the algorithm automatically detect the most audible fluctuation frequency (fmod
).
acousticfluctuation(x,fs,calib)
interpret the results in hertz instead of bark. to reduce computations, reuse the previously computed time-varying specific loudness. alternatively, you can also specify the modulation frequency that you are interested in.
[vacil,spec,fmod] = acousticfluctuation(tvspec,'modulationfrequency',24.9); clf; % do not reuse previous subplot fluchz = bark2hz(0.5:0.5:23.5); spectime = 0:2e-3:2e-3*(size(spec,1)-1); surf(spectime,fluchz,spec.','edgecolor','interp'); set(gca,'view',[0 90],'yscale','log','ylim',fluchz([1,end])); title('specific fluctuation strength') zlabel('specific fluctuation strength (vacils/bark)') ylabel('frequency (hz)') xlabel('time (seconds)') colorbar
roughness
use the function to compute the perceived roughness of the signal. let the algorithm automatically detect the most audible modulation frequency (fmod
).
acousticroughness(x,fs,calib)
interpret the results in hertz instead of bark. to reduce computations, reuse the previously computed time-varying specific loudness. specify the modulation frequency.
[asper,specr,fmodr] = acousticroughness(tvspechd,'modulationfrequency',49.7); clf; % do not reuse previous subplot roughz = bark2hz(0.5:0.5:23.5); surf(spectimehd,roughz,specr.','edgecolor','interp'); set(gca,'view',[0 90],'yscale','log','ylim',roughz([1,end])); title('specific roughness') zlabel('specific roughness (aspers/bark)') ylabel('frequency (hz)') xlabel('time (seconds)') colorbar
sound quality
for overall sound quality evaluation, combine the previous metrics to produce the psychoacoustic annoyance metric (defined by zwicker and fastl). the relation is as follows:
a quantitative description was developed using the results of psychoacoustic experiments:
with:
percentile loudness in sone (level that is exceeded only 5% of the time)
for , where is the sharpness in acum
, where is the fluctuation strength in vacil and is the roughness in asper
in this example, sharpness was less than 1.75, so it is not a contributing factor. therefore, you can set to zero.
percentile loudness, , is the second value returned by the third output of when "timevarying"
is set to true
.
n5 = perc(2);
compute the average fluctuation strength ignoring the first second of the signal.
f = mean(vacil(501:end,1));
compute the average roughness ignoring the first second of the signal.
r = mean(asper(2001:end,1));
compute the psychoacoustic annoyance metric.
pa = n5 * (1 abs(2.18/(n5^.4)*(.4*f .6*r)))
pa = 26.3402
effect of improved soundproofing
measure the impact of improved soundproofing on the measured spl and the perceived noise.
simulation using graphic eq filter bank
design a object to simulate the attenuation of the proposed soundproofing. low frequencies are harder to attenuate, so we create a model that is best above 200 hz.
geq = graphiceq("bandwidth","1 octave","samplerate",fs,"gains",[-0.5 -1.25 -3.4 -7 -8.25 -8.4 -8 -7 -6.4 -5.6]); cf = getcenterfrequencies(splmeter("bandwidth","1 octave"));
display the frequency response of the graphiceq
object.
[b,a] = coeffs(geq); sos = [b;a].'; [h,w] = freqz(sos,2^16,fs); semilogx(w,db(abs(h))) title('frequency response of soundproofing simulation filter') ylabel('relative spl (db)') xlabel('frequency (hz)') xlim(cf([1,end])) grid on
filter the engine recording using the graphic eq to simulate the soundproofing.
x2 = geq(x);
compare the spl with and without soundproofing. reuse the same spl meter settings, but use the filtered recording.
reset(spl) [lcfnew,~,lcpeaknew] = spl(x2); plot(t,lcpeak,t,lcf,t,lcpeaknew,t,lcfnew) legend('lcpeak (original)', 'lcf (original)', ... 'lcpeak (with soundproofing)', ... 'lcf (with soundproofing)', ... 'location','southeast') title('spl measurement of engine noise') xlabel('time (seconds)') ylabel('spl (db)') ylim([70 95]) grid on
compare the perceived loudness measurements before and after soundproofing.
acousticloudness(x2,fs,calib)
loudness decreased from 23.8 to 16.3 sones. however, it might be easier to interpret loudness in phons. convert the sone units to phons using .
fprintf("loudness without soundproofing: \t%.1f phons\n",sone2phon(23.8));
loudness without soundproofing: 85.7 phons
fprintf("loudness with added soundproofing:\t%.1f phons\n",sone2phon(16.3));
loudness with added soundproofing: 80.3 phons
fprintf("perceived noise reduction:\t\t%.1f phons (db spl at 1 khz)\n",sone2phon(23.8)-sone2phon(16.3));
perceived noise reduction: 5.5 phons (db spl at 1 khz)
after soundproofing, shows the perception of the engine noise is approximately 5.5 db quieter. human perception of sound is limited at very low frequencies, where most of the engine noise is. the soundproofing is more effective at higher frequencies.
calculate the reduction in the psychoacoustic annoyance factor. start by computing the mean of the acoustic sharpness.
[~,spec2hd,perc2] = acousticloudness(x2,fs,calib,"timevarying",true,"timeresolution","high"); spec2 = spec2hd(1:4:end,:,:); shp = acousticsharpness(spec2,'timevarying',true); new_sharp = mean(shp(501:end))
new_sharp = 1.0796
sharpness has decreased because the soundproofing is more effective at high frequency attenuation. it is below the threshold of 1.75, so it is ignored for the annoyance factor.
now, compute the mean of fluctuation strength and roughness.
vacil2 = acousticfluctuation(spec2); f2 = mean(vacil2(501:end,1)); asper2 = acousticroughness(spec2hd); r2 = mean(asper2(2001:end,1));
compute the new psychoacoustic annoyance factor. it has decreased, from 26.3 to 18.1.
n5hp = perc2(2); % n5 with soundproofing
pahp = n5hp * (1 abs(2.18/(n5hp^.4)*(.4*f2 .6*r2)))
pahp = 18.0626
references
[1] zwicker, eberhard, and hugo fastl. psychoacoustics: facts and models. vol. 22. springer science & business media, 2013.