← Back to the chapter · Next detail →

Technical detail · Feature Engineering for ML

Compare frequency features reproducibly

When two sensors observe the same motion through different mechanisms, compare more than their raw traces. Welch power spectral density (PSD) estimation divides a window into overlapping segments, windows each segment, estimates a periodogram, and averages the results. The averaging makes the estimate less erratic than one periodogram, at the cost of frequency resolution and added latency. The feature contract must record sample rate, synchronization, segment length, overlap, window function, detrending, filtering, normalization, and the frequency band used for the decision; otherwise two curves can differ because the pipelines differ rather than because the sensors disagree.

For example, an event camera and a balance board may both observe postural sway while measuring different physical quantities. Agreement of band power, dominant-frequency region, or spectral shape within a predeclared sway band supports the claim that both preserve relevant dynamics. It does not prove that their amplitudes are interchangeable or that either is clinically valid. Check coherence only when synchronization and signal definitions support it, preserve participant and stance context, and investigate spectral disagreement as possible timing, geometry, calibration, filtering, noise-floor, or measurand evidence. This turns a PSD plot into a reproducible validation feature rather than a visual similarity claim.

← Back to the chapter · Next detail →