A sound exposure level is defined as the integral of squared pressures, over a defined time-period and frequency range, and it is reported with units of dB re: 1 µPa^2s (for water-borne acoustics). My understanding is that a sound exposure level is supposed to be an integral, not a sum, with the major difference being that an integral incorporates the distance between each value (e.g. the "dt"), which is dependent on the sample rate.

In my discussions with a few scientists on this topic, I’m finding inconsistent methods in the way that sample rates are (or are not) included in the calculation of sound exposure levels. This is particularly concerning because sound exposure levels are often used in management contexts, like the US National Marine Fisheries Marine Mammal Acoustic Technical Guidance and Southall et al 2019 Marine Mammal Noise Exposure Criteria.

Here's a snippet of R-code which demonstrates how I think the SEL should be calculated

#Calculate a SEL over 100 ms window, from 20 Hz - 1000 Hz 


WavClip<-clip@left - mean(clip@left) #Account for DC offset

cal=177 #full system calibration  
cal = 10^(cal/20) #convert from dB to linear
Nbit <- clip@bit
WavBit <- WavClip/(2^(Nbit-1))

#Limit frequence range with bandpass filter
WavFilt<- bwfilter(WavCal, f = fs, n =4, from = 20, to=1000, output = "Sample",bandpass = TRUE)

#Limit time range 

#Integrate squared pressures, divide by sample rate, convert to dB
  • To further illustrate the problem: For simplicity, let's consider a signal with a duration of 1-second. For a 5 kHz sample rate, we will integrate 5,000 discrete points; a 48 kHz sample rate will integrate 48,000 points. Even if we use an appropriate low-pass filter on each file, the number of discrete points that are integrated will have a significant influence on the resulting SEL, i.e. the sum of 5,000 points is less than the sum of 48,000 points.
    – ASimonis
    Sep 13 at 21:41
  • 1
    you don't directly integrate over the number of points, you integrate over time (e.g. in second), so globally, integrating 48k points at fs=48kHz will be the same as 5k points as fs=5kHz, i.e. the same duration for the integral. Does this answer the point you've raised?
    – Noil
    Sep 14 at 9:50
  • Yes, I agree that as long as the SEL is calculated as an integral, and the Nyquist-Shannon theorem is respected, then the choice of sample rate doesn't matter. The SEL should be the same.
    – ASimonis
    Sep 14 at 15:40

3 Answers 3


My understanding is that a sound exposure level is supposed to be an integral, not a sum, with the major difference being that an integral incorporates the distance between each value (e.g. the "dt"), which is dependent on the sample rate.

Generally speaking An integral (over a continuous variable t) can be approximated as a sum (over a discrete variable k=t/∆t) (see the exact mathematical relashionship) if the infinitesimal variable dt is approximated by a small quantity ∆t:

enter image description here

In your case f(k) = Wav100ms^2 (calibrated squared pressure), t1 = 0, t2 = 0.1 sec and the shortest time step ∆t available is the sample period 1/fs. So the factor 1/fs is necessary, otherwise the integral estimate is definitely wrong. Then the SEL estimation 10*log10(sum(Wav100ms^2)/fs) in your R code is correct.

NB: From "SEL = 10*log10(sum(Wav100ms^2)/fs)", it looks like that changing fs will change SEL. Strictly speaking this is right (the approximation of an integral to a sum of a finite number of elements is dependent of the step length, here the sample period 1/fs). However, if your sample rate fs is standard (i.e. high enough to record the frequencies you are dealing with; Nyquist-Shannon theorem), then the effect of changing fs on the sound exposure level is negligible compared to the variance of the sound exposure level over time and other uncertainties.

  • Noil –if an increase in the number of summed elements must be compensated by multiplying the ‘fs’ in the denominator, then ‘fs’ needs to be in the denominator. If there is no ‘fs’ in the denominator, then the numerator just increases independently. Therefore, including the sample rate in the denominator is in fact critical. Do you agree?
    – ASimonis
    Sep 13 at 21:39
  • @ASimonis fs appears in the denominator because the time step ∆t is 1/fs (see new equation in my response). This ∆t is needed to approximate the integral to a sum. Is this clearer?
    – Noil
    Sep 14 at 10:27
  • Yes - I agree with you 100%. Thank you. I have found that some authors calculate SELs as a sum instead of an integral, and it's possible that "the weak dependence of fs on the integral estimate" that you describe may be incorrectly interpreted as a justification for why sample rate is not relevant to sound exposure level.
    – ASimonis
    Sep 14 at 15:46
  • 3
    In the context of SEL that is used for risk mitigation and permitting purposes, the data are always assumed to be proper sampled. So, the Nyquist aspect is not an issue. As far as I interpret the question the "sample rates are (or are not) included in the calculation of sound exposure levels" would mean sum() or sum()*dt or sum()/fs. Obviously sum() alone is wrong and sum()*dt and sum()/fs are equivalent.
    – WMXZ
    Sep 14 at 17:23
  • I had misunderstood the question actually @ASimonis. Edited now! It is fondamentally the same as the WMXZ's response now, but I've tried to give more details. I was confused by the interchanged uses of intergral/sum in the question as WMXZ pointed and I incorrectly thought that you was asking whether the sample rate should be reported when measuring SEL because it would change the SEL value. Sorry for the confusion, you may have wondered why I was explaining such things haha.
    – Noil
    Sep 15 at 11:27

It is correct that the sound exposure level (SEL) is an integral and it value is typically increasing with time. The classical approximation is

SEL=10*log10(sum(wav^2) * dt)


dt = 1/fs

you snippet is correct

SEL=10*log10(sum(wav^2) /fs)

However, the text is misleading and should read

#Integrate squared pressure and convert to dB


#sum squared pressures, divide by sample rate, convert to dB


A common way to calculate the exposure level (LE, also known as sound exposure level, https://www.iso.org/obp/ui/#iso:std:iso:18405:ed-1:v1:en paragraph would be using the "trapz" method (available as in-build function in MatLab/Octave etc.). Indeed this is a common integration method for solving integrals numerically.

Note that in the two examples below the time step is used, and the LE is therefore sample-rate independent.

Something like this in MatLab:

sig_length = 1000; # 1000 samples
sig = rand(sig_length,1); # noise assumed to be in Pascal
fs = 500; # sample rate
PaReference = 1e-6; # reference pressure
time = (0:sig_length-1)/fs; # time in seconds
dT = 1/fs; # time step
LE = 10*log10(trapz(dT,sig.^2)/PaReference^2)
# trapz can also take a vector instead of "dT" if timestep is not constant

# or manually
cumEnergy = zeros(sig_length,1); # preallocate memory
sig_sqr = sig.^2; # squared values for energy calcs
cumEnergy(1) = sig_sqr(1); #  set first sample
for i = 2:sig_length
    # if timestep is not constant use dT = time(i)-time(i-1);
    dPasqr = sig_sqr(i)-sig_sqr(i-1);
    rect = sig_sqr(i-1)*dT; # area of square from last sample to current sample
    tri = (dPasqr*dT)/2; # area of triangle given by dT and dPasqr
    cumEnergy(i) = cumEnergy(i-1) + rect + tri; 
# above loop can probably be done with vectors only (no loop needed) if you're good

LE_manual = 10*log10(cumEnergy(end)/Parefence^2) 

In the above we could also have "cumEnergy" be a single value that we update, but with this approach we can the the LE over time, with LE=10.*log10(cumEnergy./PaReference^2)

  • Can you please define "LE"?
    – ASimonis
    Sep 15 at 19:33
  • "LE" is the ISO standard name for exposure level in underwater acoustics. SEL is often still used, but I'm happier sticking to well defined standards as makes less room for confusion
    – Rasmus
    Sep 16 at 21:11

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.