Learn how to detect machine faults early with vibration data, physics-based features and unsupervised anomaly detection, plus the pitfalls that cause false alarms on real production lines.
Why vibration is the first place to look
Rotating equipment such as motors, pumps, fans, gearboxes and spindles accounts for a large share of unplanned stops in a factory. Most mechanical faults in these machines (unbalance, misalignment, looseness, bearing wear) change the vibration signature well before the machine stops.
Traditional condition monitoring compares an overall vibration level against fixed limits. ISO 20816-3, for example, evaluates broadband RMS velocity (typically 10–1000 Hz) on the bearing housings of industrial machines and sorts it into zones: A for newly commissioned machines, B for unrestricted long-term operation, C for limited operation until remedial action, and D for vibration severe enough to cause damage. These zones are an essential safety net, but by the time a machine moves from B to C, the fault is often well developed.
Anomaly detection adds an earlier layer. Instead of asking “is the level above a limit?”, it asks “is this machine behaving differently from its own healthy baseline?”
A typical architecture
A practical vibration anomaly-detection system has five layers:
- Sensing: IEPE accelerometers on bearing housings, mounted by stud or a flat magnetic base on a prepared surface, plus a speed reference (tachometer or the drive’s speed signal).
- Acquisition: a DAQ with anti-aliasing filters and simultaneous sampling, typically at 10–51.2 kS/s per channel for bearing work, controlled from LabVIEW or Python.
- Feature extraction: short windows of raw data (for example, 1 s every minute) turned into a compact feature vector.
- Model and scoring: a model trained on healthy data produces an anomaly score for each new window.
- Storage and visualisation: features, scores and context (speed, load, product, timestamps) go to a database and a web dashboard, with alarms pushed to maintenance staff.
Keeping raw waveforms for flagged events (and a small sample of normal ones) is worth the storage. When the model raises an alert, a vibration analyst will want to look at the spectrum, not just a score.

Caption: From sensor to maintenance decision: the five layers of a vibration anomaly-detection pipeline, with operating context and a maintenance feedback loop.
Alt text: Flow diagram of five boxes — Sensing, Acquisition, Features, Anomaly model, Dashboard & alerts — with operating context feeding features and model, and maintenance findings feeding back into the model.
Features that engineers can explain
Deep learning on raw waveforms is possible, but a well-chosen set of physics-based features is easier to validate and debug:
- RMS velocity (10–1000 Hz): overall severity, directly comparable with ISO 20816 zones; sensitive to unbalance, misalignment and looseness.
- Peak and crest factor (peak/RMS): rise when short impacts appear on top of the normal signal.
- Kurtosis: measures impulsiveness; a healthy machine is close to Gaussian (kurtosis ≈ 3), while early bearing damage produces sharp, repetitive impacts that push it higher.
- Spectral band energies: energy at 1×, 2× and 3× running speed, and in gear-mesh or blade-pass bands.
- Envelope spectrum energy at bearing defect frequencies: bearing faults amplitude-modulate high-frequency resonances. Band-pass filtering, demodulating and taking the spectrum reveals peaks at BPFO (outer race), BPFI (inner race), BSF (rolling element) and FTF (cage), calculated from the bearing geometry and shaft speed. A spectral kurtosis (kurtogram) can help select the best demodulation band.
Because BPFO and BPFI scale with shaft speed, these features must be computed with the actual speed for each window, not the nameplate value.
Choosing an anomaly-detection model
In most factories, labelled failure data is scarce: machines do not fail often enough to build a balanced training set. That is why unsupervised or semi-supervised methods dominate:
- Statistical baselines: z-scores or Mahalanobis distance on the feature vector. Simple, fast and transparent; a strong first step.
- Isolation Forest: isolates unusual points with random splits; works well on tabular feature vectors and needs little tuning.
- One-Class SVM: learns a boundary around healthy data; effective on small, clean feature sets.
- Autoencoders: neural networks trained to reconstruct healthy data; reconstruction error becomes the anomaly score. Useful for many channels or spectra, but harder to explain.
Whichever model you choose, trend the anomaly score over time and apply persistence logic (for example, alarm only if the score stays above threshold for several consecutive windows). A single noisy window should never page an engineer at 3 a.m.
Common pitfalls
- Ignoring operating condition. A pump at 80% load vibrates differently from one at 40%. Train per operating state, or include speed and load as model inputs.
- Poor sensor mounting. A loose magnetic base or painted surface reduces high-frequency response and can hide exactly the bearing impacts you need.
- A “healthy” baseline that isn’t. If the machine already had a fault during training, the model learns that fault as normal. Check the baseline against ISO zones and a spectrum review first.
- No feedback loop. Record what maintenance found for each alert. That data turns an unsupervised system into a diagnostic one over time.
- Score without context. An alert that says “anomaly 0.93” is not actionable. Show which features moved and link to the spectrum.
How SPEX Technology can help
SPEX Technology designs end-to-end systems that take vibration data from sensor to decision. We integrate accelerometers and DAQ hardware, develop data acquisition software in LabVIEW and Python, store features and waveforms in databases or the cloud, and build web-based dashboards for maintenance and production teams. Our AI for Machine Failure Analysis work covers feature engineering, model selection and deployment on real lines. We also run training on industrial data and ML/AI for engineering teams who want to build in-house capability.
Start listening to your machines
If you are planning a condition-monitoring pilot, or you already collect vibration data but are not getting value from it, we would be glad to review your setup.
Building, refining, or integrating test systems and industrial data & AI — let’s talk.
SPEX Technology, Bangkok, Thailand | Email: suparat@spexth.com | Phone: +66-917265566
