Archi-Civilarchi-civil.com
Structural Health Monitoring · SHM-02  |  Confidence: A (closed-loop verified)
Figures are produced by engine/dsp.js and pinned in tests/dsp.test.js.

Home / Articles / Structural Health Monitoring SHM-02

FFT, Windowing and Damping: Where "Always Use Hann" Is Wrong

The software half of the measurement chain: resolution, leakage, window choice, peak picking and half-power damping. Synthetic verification shows that on a free-decay record a Hann window nearly halves the measured damping — the opposite of the usual advice.

Confidence: A Engine: engine/dsp.js Tests: tests/dsp.test.js — 26/26 Prerequisite: SHM-01 Reading: ~18 min Last verified: 2026-09-10 Türkçe: bu yazının Türkçesi

1. The closed loop: how verification is set up

The usual way to demonstrate that a calculation tool is correct is to compare it with the output of third-party software. In signal processing this is unnecessary, because we can produce the input ourselves.

x(t) = Σ Ai · e−ζiωit · sin(ωdit) A free-decay response with known frequency, amplitude and damping. It is passed through the chain, and we measure whether the engine recovers those known values.

On top of that, the mathematical properties of the transform itself are tested. The cleanest is Parseval's identity — the energy in the time and frequency domains must be equal:

Σ |x[n]|² = (1/N) · Σ |X[k]|² In our engine the relative error is of order —, i.e. it holds to machine precision. This is evidence, independent of any input data, that the transform is implemented correctly.

2. Resolution is 1/T and nothing else

In SHM-01 we saw that the sampling rate sets the upper limit. What sets the frequency resolution is the record length:

Δf = 1 / T T: record duration. A 40-second record has a resolution of 0.025 Hz. Sampling faster does not change that number.

The practical consequence is sharp: two modes closer together than 1/T cannot be separated. Closely spaced modes, coupled translational–torsional pairs and near-frequency pairs in symmetric structures all run into this limit. There is only one remedy — a longer record.

3. Zero padding is not resolution

An FFT wants a length that is a power of two, and the shortfall is filled with zeros. Because this increases the number of points in the spectrum, it is often read as "the resolution improved". It did not.

The distinction Zero padding samples an already determined spectrum at more points — that is, it interpolates. It adds no information. The ability to separate two close modes is still limited by 1/T. When our engine pads, it says so explicitly in the result and reports the true resolution as a separate field.

The real benefit of zero padding is that it samples the position and width of a single peak more finely. That is useful in the half-power measurement of section 9.

4. Leakage and the case for windowing

The FFT assumes the record repeats forever. If the start and the end of the record do not match, that assumption produces a discontinuity, and the discontinuity spreads through the spectrum as leakage: the energy of a component does not stay in its own bin but spills into neighbouring bins.

The most visible consequence is that the amplitude reads low. In the table below, the amplitude of a pure sinusoid that does not sit on a bin centre has been measured — the true amplitude is 1.0000.

WindowAmplitude readDeviation
computing…
On a stationary signal a tapering window suppresses leakage and brings the amplitude closer to the truth. For a component sitting exactly on a bin centre, a rectangular window gives the amplitude exactly — no leakage occurs at all.

Up to this point the table confirms the textbook advice, "window your data to reduce leakage". The next section shows where that advice breaks down.

5. Finding: on a transient, Hann halves the damping

Now apply the same chain to a free-decay record. Because we generated the signal ourselves, we know the true damping ratio: ζ = 2.00%. We then try to read it back with the half-power method.

WindowMeasured ζTrueDeviation
computing…
Same signal, same chain, only the window differs. The rectangular window returns the truth; the Hann window nearly halves the damping.
Findingcomputing…

This is not a negligible bias. Reporting damping as 1% instead of 2% means understating the structure's energy dissipation capacity by half — and damping enters base shear directly in seismic response calculations.

6. Why? Where the energy sits

The cause lies jointly in the shape of the window and the shape of the signal.

All of the energy of a free-decay response is at the beginning of the record. The signal is largest at t = 0 and decays exponentially. The Hann window, on the other hand, goes to exactly zero at both ends and rises to one in the middle. So when the two curves are multiplied, the window suppresses precisely the most informative part of the signal.

What is left is no longer an exponentially decaying signal: it is something that first rises and then falls, artificially symmetrised. Its spectral peak therefore differs from the true Lorentzian shape and its bandwidth narrows — hence a small ζ.

Why is Hamming less harmful? The Hamming window does not go to zero at the ends; its end value is —. Because it does not completely suppress the energy at the start of the record, its bias stays markedly smaller. This is evidence that the source of the difference between the two windows is exactly the end behaviour.

7. The right rule: look at the signal type

Transient record — free decay, hammer impact, earthquake record → rectangular window
Stationary record — continuous wind- or traffic-induced vibration, ambient vibration → Hann There is no single "correct window". The window is chosen according to how the signal is distributed in time. Our engine takes the signal type as an input and flags an incompatible choice.

Ambient vibration records are stationary, so Hann is the right choice in operational modal analysis. That is why "always Hann" looks harmless in most SHM contexts — until someone tries to extract damping from a free-decay record.

8. Peak picking and parabolic interpolation

Modal frequencies are local maxima in the spectrum. But there is no reason for the true frequency to fall exactly on a bin centre; it usually falls between two. Fitting the peak together with its neighbours to a parabola locates it below bin resolution.

Two things not to confuse Parabolic interpolation estimates the position of a single peak better. It does not improve resolution. Two modes closer than 1/T will not separate no matter how much interpolation you apply — because there are not two visible peaks there to separate in the first place.

9. Half-power bandwidth damping

The width of a damped peak is directly related to the damping ratio. The band between the two frequencies where the amplitude falls to 1/√2 of the peak value:

Δf = f₂ − f₁ ≈ 2 ζ f₀   ⇒   ζ ≈ (f₂ − f₁) / (2 f₀) The transform of an exponentially damped sinusoid behaves like 1/√(σ² + (ω−ωd)²) around the peak; since σ = ζω₀, the drop to 1/√2 occurs exactly at Δω = 2σ.

The method has two conditions, and both must travel with the result:

The second condition has an unexpected consequence: the record length needed to measure damping is inversely related to the damping itself. Small ζ means a narrow peak, a narrow peak needs fine resolution, and fine resolution needs a long record. Measuring damping in a lightly damped structure takes a longer record than in a heavily damped one.

Record lengthResolutionBins in bandMeasured ζStatus
computing…
Same signal, same window (rectangular), only the record length differs. In the short record the bandwidth spans too few bins to measure, and the engine reports this as a warning.

10. End-to-end verification

The whole chain is tested with a two-mode synthetic signal: known frequencies 1.25 and 3.75 Hz.

True frequencyRecoveredError
computing…
Closed loop: we read back the truth we generated. This is separately pinned in the test suite.

11. Common mistakes

  1. Choosing the window without looking at the signal type. The whole subject of this article. On a transient record, Hann halves the damping.
  2. Reading zero padding as improved resolution. The number of points grows; the ability to discriminate does not.
  3. Expecting better resolution from a higher sampling rate. fs sets the upper limit, T sets the resolution.
  4. Reporting a half-power result without checking the bin count. If the bandwidth spans 2–3 bins, the result is noise.
  5. Confusing parabolic interpolation with mode separation. Two peaks that are not visible do not become visible through interpolation.
  6. Skipping the amplitude correction. A tapering window lowers the amplitude; read without dividing by the coherent gain, it is systematically low.

12. Test yourself

  1. What is the frequency resolution of a 60-second record? Can two modes 0.01 Hz apart be separated with it?
  2. You are extracting damping from the free-decay record of a hammer-excited beam. Which window do you choose, and why?
  3. You recorded the same beam vibrating continuously in wind. Does your window choice change?
  4. What is the bandwidth of a mode with ζ = 0.5% at f₀ = 2 Hz? What is the minimum record length needed to sample it with 8 bins?
  5. Does satisfying Parseval's identity also show that the spectrum is being interpreted correctly? Justify your answer.

References

  1. Discrete Fourier transform and Parseval's identity — standard signal processing results, independent of any national code.
  2. Window functions and coherent gain definitions: Hann 0.50; Hamming 0.54; rectangular 1.00.
  3. Half-power bandwidth relation Δf ≈ 2ζf₀ — derived directly from the transform of an exponentially damped response.

All figures in this article are produced by engine/dsp.js and separately pinned in tests/dsp.test.js. The window finding is protected by three distinct test cases: that the rectangular window returns the truth, that Hann produces most of the bias, and that Hamming falls in between.

A note on language. This is the first article on the site available in English. The SHM and FEM series are now fully available in English, and every calculation tool is bilingual. Both gaps are being closed gradually; the figures, engines and tests are shared across languages, so a translated article can never disagree with its original.

Open the analysis tool → Türkçe okuyun → All articles →
archi-civil.com — FFT, Windowing and Damping · SHM-02 · Confidence A · Printed:
The window is chosen by signal type. On a transient record a tapering window reads damping low.