Spectra

See the spectrum, envelope and bearing frequencies in your vibration record; nothing is uploaded.

Spectra in half a minute

From waveform to bearing frequencies, in one short tour.

Read the transcript

Every rotating machine has a vibration signature. Hidden in it are the early signs of a failing bearing. Spectra turns the waveform into a spectrum. Each peak is a frequency at which the machine vibrates. Bearing defects ring the structure with tiny impacts. The envelope spectrum shows how often they repeat. Spectra overlays the bearing fault frequencies and tells you what a peak could mean. A hint, never a verdict. Paste a recording with its sampling rate, or try the built-in examples. Nothing leaves your browser.

Narration: synthetic voice (Piper, voice “Joe”, CC0 public domain). Captions are burned into the video.

In three steps.

Read the record
Split it into frequencies
Match bearing frequencies
1

Data

Pick a record. All are mathematically generated examples, not real plant data.

My own vibration record

Drop a CSV, TSV or TXT file here

Pick one numeric column; if there is a time column, the sampling rate can be inferred from it.

Record details
2

Settings

The shaft’s revolutions per minute. Harmonics and bearing frequencies are calculated from it.

Advanced settings

The window and FFT length they change.

1000 Hz

Example bearing (deep-groove, illustrative): check your bearing’s data sheet and enter your own values.

(mm/s RMS)

illustrative boundaries: replace them with the limits for your machine class from ISO 20816

RMS
Effective size of the signal; relates to energy.
Peak
Largest absolute value.
Impulsiveness: about 1.41 for a pure sine.
About 3 for Gaussian noise; impacts raise it.
Envelope kurtosis
Impulsiveness of the envelope; rises with a defect.

Waveform

First 0.25 seconds, mean and trend removed. Drag to zoom.

Amplitude spectrum

Height is amplitude. Dashed: speed harmonics. Coloured: bearing frequencies.

Spectrogram

Time left to right, frequency bottom to top; brighter means stronger.

Colour intensity shows the SK value. The outlined cell, the highest SK above level 1, is the band the envelope analysis uses.

Envelope spectrum

Impact repetition rates. A defect shows a peak at BPFO, BPFI, BSF or FTF.

Overall velocity RMS, 10–1000 Hz. The needle shows your zone.

    What this suggests

    These are hints, not a diagnosis.

      The decision is the engineer’s. For the limits, see the reading note.

      Strongest 8 peaks

      f/fr: ratio to running speed. Match: near a harmonic or bearing line.

      #HzAmplitudeMatch

      Nominal values. Enter your catalogue data.

      ComponentHz

      Export

      How do I read the result?

      1. Line: frequency component
      2. Dashed: running-speed harmonics
      3. Coloured: BPFO, BPFI, BSF, FTF
      4. Outlined cell: chosen band
      Spectra gives hints, not a diagnosis; bearing frequencies are nominal and slip can shift peaks by a percent or two.

      How it computes

      Seven steps: prepare the record, take the windowed FFT spectrum, find the overall velocity and zone, compute the time indicators, derive the bearing frequencies, find the impulsive band with the envelope, and match peaks to frequencies.

      1. Preparing the record

        Schematic: an artificial record. Thick: raw record; dashed: least-squares line. What remains after subtraction is the vibration itself.

        At most 16,384 rows are taken. If there is a time column, the sampling rate is the reciprocal of the median of the positive time steps. Gaps are filled by linear interpolation. The record’s mean and linear trend are then removed, so a constant offset or a slow drift does not distort the spectrum.

        Technical detail
        Δf=fsN\Delta f = \frac{f_s}{N}Δt=1fs\Delta t = \frac{1}{f_s}

        f_s: sampling rate (Hz); N: FFT length (samples); Δt: time between two samples.

        xi←xi−(a+bi)x_i \leftarrow x_i - (a + b\,i)

        a and b: intercept and slope of the least-squares line through the record; both are removed.

        b=N∑iixi−∑ii∑ixiN∑ii2−(∑ii)2b = \frac{N \sum_i i\,x_i - \sum_i i \sum_i x_i}{N \sum_i i^2 - \left( \sum_i i \right)^2}
        a=1N(∑ixi−b∑ii)a = \frac{1}{N}\left( \sum_i x_i - b \sum_i i \right)
        fsf_s
        sampling rate
        NN
        FFT length; 16,384 for the synthetic records
        Δt\Delta t
        time between consecutive samples
        SettingValueNote
        Row limit16,384the first rows are taken; the table import reads at most 20,000 rows
        Synthetic record12,000 Hz · N = 16,384Δf = 0.732 Hz
        Time columnfs=1med⁡(Δt)f_s = \frac{1}{\operatorname{med}(\Delta t)}seconds: unit × 1; milliseconds: unit × 0.001
        Missing valuelinear interpolationleading and trailing gaps take the nearest valid value

        Source spectra/spectra.js · wasm/kutupml.js · forge/import.js

      2. Window and FFT amplitude spectrum

        00.51016324863no windowHann
        Periodic Hann window, N = 64. Dashed: no window.

        The record is multiplied by a window that tapers its ends, which reduces the artificial break the FFT would otherwise see. The FFT then gives the amplitude at each frequency. A sine that falls exactly on a frequency bin reads its true amplitude there.

        Technical detail
        wn=0.5−0.5cos(2πnN)w_n = 0.5 - 0.5 \cos\left( \frac{2\pi n}{N} \right)

        n = 0 … N − 1. Periodic Hann: the denominator is N, not N − 1. Hamming, Blackman, flat-top and rectangular windows can also be chosen.

        Xk=∑n=0N−1wnxne−2πikn/NX_k = \sum_{n=0}^{N-1} w_n\, x_n\, e^{-2\pi i kn/N}
        Ak=2|Xk|∑nwnA_k = \frac{2\,\lvert X_k \rvert}{\sum_n w_n}

        For 0 < k < N/2. For A_0 and A_{N/2} there is no factor 2: |X| ÷ Σw.

        ∑nwn=N2\sum_n w_n = \frac{N}{2}
        ENBW=N∑nwn2(∑nwn)2=1.5\mathrm{ENBW} = \frac{N \sum_n w_n^2}{\left( \sum_n w_n \right)^2} = 1.5

        For Hann. Rectangular window: ENBW = 1; used in step 3.

        wnw_n
        window weight of sample n
        XkX_k
        FFT at frequency bin k
        AkA_k
        amplitude of bin k; the peak value for a sine
        ENBW\mathrm{ENBW}
        equivalent noise bandwidth of the window (bins) Hann: 1.5
        SettingValueNote
        WindowHanndefault; Hamming, Blackman, flat-top and rectangular can be chosen
        FFT lengthpower of tworange 1,024 – 16,384; default: the largest power of two not above the record length
        Welch (optional)2,048 · 50%segment length and overlap; amplitudes are the root of the mean of squares; off means one FFT
        Spectrogram512 / 256512 if the record has at least 8,192 samples, else 256; hop half the window; with the selected window type

        Source dev/native/kutupml.c · wasm/kutupml.js · spectra/spectra.js

      3. Overall velocity and severity zone

        ABCD1.42.84.5mm/s
        Default boundaries (1.4 · 2.8 · 4.5 mm/s). Illustrative; not ISO 20816 limits.

        Acceleration is turned into velocity: each frequency component is divided by 2πf. The components between 10 and 1,000 Hz are combined into one RMS value, which falls into zone A, B, C or D according to the three boundaries you enter.

        Technical detail
        vk=Akg2πfk·1000v_k = \frac{A_k \, g}{2\pi f_k} \cdot 1000

        in mm/s. g = 9.80665 m/s² (unit g). For m/s² use 1 instead of g; for mm/s, v_k = A_k.

        vRMS=12∑10≤fk≤fmaxvk2ENBWv_{\mathrm{RMS}} = \sqrt{ \frac{ \frac{1}{2} \sum_{10 \le f_k \le f_{\max}} v_k^2 }{ \mathrm{ENBW} } }

        f_max = min(1,000 Hz; f_s/2). A window spreads a sine over several bins and inflates the sum by ENBW, so the sum is divided by ENBW.

        Zone / settingRuleNote
        Frequency band10–1,000 Hzlimited by f_s/2: bins below 10 Hz, above min(1,000 Hz; f_s/2), and 0 Hz (DC) are left out
        Unitg=9.80665m/s2g = 9.80665\,\mathrm{m/s}^2for m/s², 1 replaces g
        AAvRMS<z1v_{\mathrm{RMS}} < z_1z_1 = 1.4 mm/s (default)
        BBz1≤vRMS<z2z_1 \le v_{\mathrm{RMS}} < z_2z_2 = 2.8 mm/s (default)
        CCz2≤vRMS<z3z_2 \le v_{\mathrm{RMS}} < z_3z_3 = 4.5 mm/s (default)
        DDvRMS≥z3v_{\mathrm{RMS}} \ge z_3illustrative; not ISO 20816, enter your own limits

        Source spectra/spectra.js

      4. Time-domain indicators

        sine · crest 1.41 · kurtosis 1.50impacts · crest 4.70 · kurtosis 11.90
        Schematic: two artificial signals; values computed for these examples. Crest and kurtosis do not depend on scale.

        Four numbers come from the waveform. RMS is the effective size of the signal; peak is the largest absolute value. Crest factor (peak/RMS) and kurtosis show whether the signal is impulsive: a sine gives about 1.41 and 1.5; impacts raise both.

        Technical detail
        m2=1N∑i(xi−x¯)2m_2 = \frac{1}{N} \sum_i (x_i - \bar{x})^2

        x̄: record mean after pre-processing (≈ 0). The divisor is N, not N − 1.

        RMS=m2\mathrm{RMS} = \sqrt{m_2}
        Peak=maxi|xi−x¯|\mathrm{Peak} = \max_i \lvert x_i - \bar{x} \rvert
        Crest=PeakRMS\mathrm{Crest} = \frac{\mathrm{Peak}}{\mathrm{RMS}}
        m4=1N∑i(xi−x¯)4m_4 = \frac{1}{N} \sum_i (x_i - \bar{x})^4
        Kurtosis=m4m22\mathrm{Kurtosis} = \frac{m_4}{m_2^2}

        Kurtosis is not excess kurtosis: about 3 for Gaussian noise and 1.5 for a sine.

        xix_i
        sample i of the pre-processed record
        NN
        number of analysed samples
        SettingValueNote
        Samples≤ 16,384all analysed samples; independent of the FFT length
        Sine values1.41 · 1.5crest = √2 and kurtosis = 1.5 for a pure sine
        Envelope kurtosissame formulaon the envelope curve; the envelope of step 6

        Source dev/native/kutupml.c · wasm/kutupml.js · spectra/spectra.js

      5. Bearing defect frequencies

        050100150 HzFTF1×BSFBPFOBPFI
        Lines computed for the default bearing (Nb = 9, d = 7.94 mm, D = 39.04 mm, φ = 0°) at 1,770 rpm.

        Four fault frequencies follow from the bearing geometry and shaft speed: outer race (BPFO), inner race (BPFI), rolling element (BSF) and cage (FTF). Each is the rate at which a defect in that part produces impacts. They are nominal values.

        Technical detail
        fr=rpm60f_r = \frac{\mathrm{rpm}}{60}
        c=dDcosφc = \frac{d}{D} \cos \varphi
        BPFO=Nb2fr(1−c)\mathrm{BPFO} = \frac{N_b}{2} f_r (1 - c)
        BPFI=Nb2fr(1+c)\mathrm{BPFI} = \frac{N_b}{2} f_r (1 + c)
        BSF=D2dfr(1−c2)\mathrm{BSF} = \frac{D}{2d} f_r (1 - c^2)
        FTF=fr2(1−c)\mathrm{FTF} = \frac{f_r}{2} (1 - c)

        BSF uses c², that is (d/D)² cos² φ.

        NbN_b
        number of rolling elements 9
        dd
        rolling-element (ball) diameter 7.94 mm
        DD
        pitch diameter 39.04 mm
        φ\varphi
        contact angle 0°
        frf_r
        shaft rotation frequency 29.5 Hz
        cc
        (d/D) cos φ 0.2034
        ComponentValueRatio
        1× shaft29.50 Hz1
        BPFO105.75 Hz3.585 × f_r
        BPFI159.75 Hz5.415 × f_r
        BSF69.52 Hz2.357 × f_r
        FTF11.75 Hz0.398 × f_r
        SettingValueNote
        ChecksNb≥2N_b \ge 2d > 0, D > d, 0 ≤ φ < 90°; if a condition fails, no calculation is made and a message is shown

        Source spectra/spectra.js

      6. Kurtogram and envelope

        050100 ms
        Schematic: a 1 kHz carrier with a decaying impact every 10 ms. Thick: amplitude |z| of the analytic signal; thin: the signal itself.

        The kurtogram searches for the frequency band where the signal is most impulsive. Each band is turned into its envelope (amplitude curve) and its impulsiveness is measured. In the envelope spectrum of the chosen band, the repetition rate of the impacts, such as BPFO, shows as a peak.

        Technical detail
        z(t)=xb(t)+iℋxb(t)z(t) = x_b(t) + i\,\mathcal{H}\, x_b(t)

        x_b: the record limited to the selected band. The code doubles the positive-frequency bins in the band and takes the inverse FFT, which gives the analytic signal.

        e(t)=|z(t)|e(t) = \lvert z(t) \rvert
        P1=1N∑tptP_1 = \frac{1}{N} \sum_t p_t

        p_t = |z_t|²: power. P_1 and P_2 are the first and second means of p.

        P2=1N∑tpt2P_2 = \frac{1}{N} \sum_t p_t^2
        SK=P2P12−2\mathrm{SK} = \frac{P_2}{P_1^2} - 2

        Spectral kurtosis. Computed for every level and band; the highest SK, excluding level 1, is chosen.

        bwl=fs2l+1\mathrm{bw}_l = \frac{f_s}{2^{l+1}}
        fc=(b+12)bwlf_c = \left( b + \frac{1}{2} \right) \mathrm{bw}_l

        2l2^l bands, l = 2…5. Example: at 12,000 Hz the level-5 bands are 187.5 Hz wide.

        flo=max(1,fc−bw2)f_{\mathrm{lo}} = \max\left( 1,\; f_c - \frac{\mathrm{bw}}{2} \right)
        fhi=min(fs2−1,fc+bw2)f_{\mathrm{hi}} = \min\left( \frac{f_s}{2} - 1,\; f_c + \frac{\mathrm{bw}}{2} \right)

        Auto band. With a manual band, 0 < low < high < f_s/2 is required.

        Ak(e)=2|∑twt(et−e¯)e−2πikt/N|∑twtA^{(e)}_k = \frac{2 \lvert \sum_t w_t\,(e_t - \bar{e})\, e^{-2\pi i kt/N} \rvert}{\sum_t w_t}

        Envelope spectrum: the envelope’s mean is removed, a Hann window is applied and the amplitude spectrum is taken.

        xbx_b
        the record in the selected band
        ete_t
        envelope: the amplitude curve
        bb
        band index within the level (from 0)
        bwl\mathrm{bw}_l
        bandwidth at level l
        fcf_c
        centre frequency of the band
        SettingValueNote
        Kurtogram levels2 – 5level 1 is never chosen; this simplified version computes every band over the whole record
        Envelope bandauto / manualauto: the kurtogram band; manual: default 2,500–3,900 Hz
        Analysis lengthpower of twonot above the record length; the envelope and the kurtogram use the same length
        Displayed upper limitf_s/2at most min(f_s/2; max(500 Hz; 5·BPFI)); the envelope chart and the peak search stop here

        Source dev/native/kutupml.c · spectra/spectra.js · wasm/kutupml.js

      7. Peaks and matching

        68101214true 10.3estimate 10.25
        Computed: N = 64, Hann, a sine at bin 10.3. The parabola passes through the peak bin and its two neighbours; its vertex gives the position (k + δ).

        The strongest peaks are chosen among bins that stand clearly above their surroundings. The true frequency of each peak is estimated with a parabola through three neighbouring bins. Peaks near a multiple of running speed or a bearing frequency are matched, and the findings are summarised by fixed rules.

        Technical detail
        ak>6med(A)a_k > 6\,\mathrm{med}(A)

        Peak: a bin above both neighbours and above six times the median. Bins 2 to kS − 2 are tested; the median uses the amplitudes up to fmax. On the envelope the factor is 3.

        ak>ak−1a_k > a_{k-1}ak≥ak+1a_k \ge a_{k+1}
        δ0=0.5(ak−1−ak+1)ak−1−2ak+ak+1\delta_0 = \frac{0.5\,(a_{k-1} - a_{k+1})}{a_{k-1} - 2a_k + a_{k+1}}

        Parabolic estimate: the three bins are taken as three points of a parabola, and its vertex is used.

        δ=min(0.5,max(−0.5,δ0))\delta = \min\left( 0.5,\; \max\left( -0.5,\; \delta_0 \right) \right)

        δ: peak offset in bins, clamped to between −0.5 and 0.5.

        f=(k+δ)Δff = (k + \delta)\,\Delta f
        A=ak−14(ak−1−ak+1)δA = a_k - \frac{1}{4} (a_{k-1} - a_{k+1})\,\delta

        f: estimated peak frequency; A: estimated peak amplitude.

        t=max(2Δf,0.02f0)t = \max\left( 2\,\Delta f,\; 0.02\, f_0 \right)
        |f−f0|≤t\lvert f - f_0 \rvert \le t

        f_0: candidate frequency (running-speed multiple or bearing frequency). If several fit, the one with the smallest |f − f_0| ÷ t is chosen.

        SNR=akRMSE\mathrm{SNR} = \frac{a_k}{\mathrm{RMS}_E}
        RMSE=1K−1∑k=1K−1ak2\mathrm{RMS}_E = \sqrt{ \frac{1}{K - 1} \sum_{k=1}^{K-1} a_k^2 }

        Envelope: K is the number of bins up to fE. SNR ≥ 5 is a candidate; SNR ≥ 10 counts as “Attention”.

        SettingValueNote
        Strongest peaks8 · 12spectrum: 8; envelope: 12, kept when SNR ≥ 5
        Candidate frequencies1×–10×shaft harmonics; bearing 1×–3× (spectrum), 1×–2× (envelope); only 1×–3× are marked on the spectrum
        Unbalance
        a1≥6med,a1≥2a2a_1 \ge 6\,\mathrm{med}, \;\; a_1 \ge 2a_2
        vRMS≥z1v_{\mathrm{RMS}} \ge z_1 needed; the strongest peak must be at 1×. med: median of the whole spectrum; a_1, a_2: largest amplitude near 1× and 2×.
        Misalignment
        max(a2,a3)≥0.6a1\max(a_2, a_3) \ge 0.6\,a_1
        vRMS≥z1v_{\mathrm{RMS}} \ge z_1 needed; also max(a_2, a_3) ≥ 6 × med. a_3: largest amplitude near 3×.
        Bearing candidate
        SNR≥5\mathrm{SNR} \ge 5
        an envelope peak near BPFO, BPFI, BSF or FTF. SNR ≥ 10: Attention, else Watch; the 2nd harmonic counts too.
        Sidebands
        BPFI±fr\mathrm{BPFI} \pm f_r
        an envelope peak here is added to the BPFI note.
        Zone
        vRMS≥z3v_{\mathrm{RMS}} \ge z_3
        Zone D: Attention. Zone C (z2≤vRMS<z3z_2 \le v_{\mathrm{RMS}} < z_3): Watch. A zone is not a diagnosis.
        Overall state
        Attention > Watch > Normal
        the highest finding sets it

        Source dev/native/kutupml.c · spectra/spectra.js

      Terms used on this page

      FFT
      Fast Fourier transform: splits a time record into frequencies. It gives the amplitude at each frequency; the result is the spectrum.
      Window
      An FFT treats the record as if it repeats forever. A window tapers the record ends, which reduces that artificial break. Hann is the general-purpose default.
      Leakage
      When the record does not hold a whole number of periods, the energy of a peak spreads into neighbouring frequencies. The window and FFT length affect it.
      Envelope
      The amplitude curve of a high-frequency vibration. It shows how often impacts repeat; the envelope spectrum is the frequency content of that curve.
      Kurtogram
      A map showing which frequency band is the most impulsive. More intense cells have a higher spectral kurtosis; the band of the highest cell, above level 1, is used for the envelope analysis.
      BPFO, BPFI, BSF, FTF
      Bearing fault frequencies as multiples of shaft speed. BPFO is the outer race, BPFI the inner race, BSF the rolling element, FTF the cage. They are nominal; compute them from your bearing data.
      Order (f/fr)
      The ratio of a frequency to running speed. 2 means twice running speed; 0.5 means half.
      Crest factor
      The ratio of peak value to RMS. It rises for impulsive signals; a pure sine gives about 1.41.
      Kurtosis
      The weight of the tails of a distribution. Gaussian noise gives about 3; sudden impacts raise the value.
      Velocity (mm/s)
      The rate of vibration. It is acceleration with each frequency component divided by 2πf; overall severity scales use it because it relates to the energy linked to wear and heating.
      Severity zone
      The range the overall velocity RMS falls in: A, B, C or D. You set the boundaries; a zone is not a diagnosis.

      Frequently asked

      What files and units does Spectra accept?

      A CSV, TSV or TXT file, or a table pasted as text. You choose one numeric column as the signal. Enter the sampling rate in Hz, or let it be inferred from a time column in seconds or milliseconds. The unit can be g, m/s² or mm/s. The table is read up to 20,000 rows and at most 16,384 samples are analysed. The FFT spectrum, envelope and kurtogram work on a power-of-two number of samples: by default the largest power of two not above the record length (8,192 for 12,000 samples).

      Why an envelope spectrum?

      A rolling-element defect makes a short impact at each contact. The impacts excite a high-frequency structural resonance. The envelope extracts how that resonance’s amplitude changes, so the repetition rate of the impacts, such as BPFO or BPFI, shows directly in the envelope spectrum. It is a way to separate the defect frequency from high-frequency noise.

      Why velocity for overall severity and acceleration for bearings?

      Overall severity scales use the RMS of vibration velocity, which relates to the energy that causes wear and heating. Bearing defects appear as short impacts at high frequency, which an accelerometer captures better. Spectra derives velocity from acceleration by dividing each component by 2πf.

      Is a zone A–D a diagnosis?

      No. The zones only place the overall velocity value relative to the boundaries you enter. The default boundaries are illustrative and do not represent ISO 20816; enter the limits for your machine class from the standard yourself. A zone does not say what the cause is.

      Is my data uploaded?

      No. The record is processed in your browser by a WebAssembly module written in C. Nothing is sent anywhere, and the record is gone when you close the page. The CSV, JSON and PNG files you export stay with you.

      Go deeper.

      Full library
      Instrumentation

      Nyquist and aliasing: how fast to sample sensor data

      After reading, you can set a sampling rate from your analysis band, recognise a false low-frequency peak caused by aliasing, and see why slow PLC or SCADA logs fall short for spectra.

      October 7, 20265 min

      Related questions

      All questions
      ASP Dijital

      Start with a production problem.

      Let’s review your data source, your existing system and the decision you want to improve.

      Discuss your project ↗