A pump bearing failed at 6000 hours—though scheduled replacement was due at 5500. The 500-hour gap cost $15,000 per hour of line downtime. Average emergency downtime cost on production lines: $800/hour. Machine learning for predictive maintenance shifts strategy from calendar-based to condition-based: it analyzes sensor data in real time and predicts failure days or weeks ahead. We deploy such systems for industrial plants, delivering 30–50% reduction in emergency downtime and 10–20% savings on spare parts. Our track record: 5+ years and 12+ projects in mechanical engineering, energy, and petrochemicals.
Why Predictive Maintenance Beats Reactive and Scheduled
Compare the three approaches:
| Approach |
Average Yearly Cost |
Emergency Stops |
Implementation Complexity |
| Reactive (fix after failure) |
High (penalties, overtime) |
10–20/year |
Low |
| Scheduled (planned maintenance) |
Moderate, but over-replacement |
3–6/year |
Medium |
| Predictive (ML forecast) |
20–35% lower than scheduled |
0–2/year |
High, but pays back in 6–9 months |
Why ML Predictive Maintenance Outperforms Calendar Schedules
Reactive is costly chaos: a sudden conveyor stop costs $800 per hour. Scheduled reduces failures but replaces healthy parts. Predictive maintenance attacks the root: it gives time to order parts and plan repairs without emergency shutdowns. It cuts emergency stops by 5x compared to reactive.
How an ML Model Predicts Failure Weeks in Advance
Bearing defect detection. Vibration in the 5–20 kHz range carries information about BPFO/BPFI—characteristic wear frequencies. Classic kurtosis >3 indicates an incipient defect, but one parameter is insufficient. We build multi-scale CNNs that capture patterns on 3, 7, and 15-sample windows—detecting defects 2–3 weeks before failure.
Remaining Useful Life (RUL) prediction. Regression with LSTM and attention mechanism is trained on public datasets (NASA CMAPSS, PRONOSTIA) and then fine-tuned to your data. Average RMSE error is under 20% of actual RUL after calibration.
Automated work orders. When health score drops below a threshold, the system creates a ticket in CMMS (SAP PM, Maximo) with intervention type, urgency, and recommended spare parts.
We use an LSTM architecture with attention; input is a sequence of features over the last 30 days. The model is trained on synthetic data with added noise for robustness. Output: remaining useful life in hours with a confidence interval.
Our Approach: Stack and Case Study
Typical PdM project stack:
- Data collection: OPC-UA client (optional OSIsoft PI), vibration sampling at 25.6 kHz for bearings.
- Feature pipeline: sliding window of 5 minutes → aggregation of 20+ features (RMS, crest factor, kurtosis, spectral centroids, envelope).
- Model: LightGBM ensemble for health state (4 classes) + CNN-LSTM for RUL.
- Deployment: Triton Inference Server on GPU, p99 latency <50 ms.
- Visualization: Grafana dashboard with health index and trends.
One client—a pump station at an oil refinery. After deployment, 70% of failures were predicted 5+ days in advance; false alarm rate was 8%. The customer cut emergency downtime by 42% in the first quarter.
Launch a PdM Pilot in 6 Weeks
-
Audit — Identify critical equipment, available sensors, CMMS history.
-
Quick model — Isolation Forest on aggregated features over 2 weeks.
-
Dashboard — Grafana with health score and Slack alerts.
-
Pilot — Test on 3–5 units, collect feedback.
-
Scale — Roll out to entire fleet.
Typical Full Project Phases
| Phase |
What We Do |
Timeline |
| 1. Audit & data collection |
Identify critical points, sensor types, CMMS history. Collect raw data. |
1–2 weeks |
| 2. Feature engineering |
Extract time and frequency features, bearing frequency metrics. Baseline model (Isolation Forest). |
1–2 weeks |
| 3. ML model development |
Classifier + RUL regression. Transfer learning from CMAPSS, fine-tune on your data. |
3–4 weeks |
| 4. Integration |
OPC-UA collector, real-time pipeline (Kafka + Flink), health score into CMMS. Grafana dashboard. |
2–3 weeks |
| 5. Test & deployment |
A/B test on pilot line. Roll out to full fleet. |
2 weeks |
| 6. Ongoing support |
Retrain models monthly with feedback. |
Ongoing |
What's Included
- Documentation: data model, feature specification, pipeline description.
- Access: Grafana dashboard, health score API endpoints, alerts in Slack/Telegram.
- Training: 2 days for reliability engineers on interpreting health score, setting thresholds, providing feedback.
- Support: 6 months of consultations, tuning, incident resolution.
Estimated Timelines
- Basic pipeline (OPC-UA, vibration features, Isolation Forest health, dashboard) — 5 to 6 weeks.
- Full project (CNN-LSTM RUL, multi-sensor fusion, auto work orders) — 4 to 5 months.
Pricing is determined individually after audit. To evaluate your project, send a description of your equipment fleet and available data—we'll prepare a proposal with ROI metrics. Average savings after deployment: $20,000 per year per critical asset.
Why We Guarantee Results
5+ years in industrial AI solutions. 12+ PdM deployments. Certified ML engineers (TensorFlow Developer, AWS ML Specialty). We guarantee at least 30% reduction in emergency downtime—if not achieved, we refine at no cost. Contact us for a consultation on your project. Order a pilot and see the effectiveness. Send your equipment fleet description—we'll calculate ROI in 2 days.
Learn more about the methodology at Predictive maintenance.
Anomaly Detection: Autoencoders, Isolation Forest, PyOD
Server monitoring shows CPU 85%, memory 91% — is this the start of an attack or normal peak load? A classifier won’t help: anomalies are by definition rare, diverse, and not pre-labeled. Supervised learning requires examples of anomalies in the training set — so it fails on what you haven’t seen yet. Without an unsupervised approach, detection turns into guesswork.
Why Does Anomaly Detection Require an Unsupervised Approach?
The main problem: no labels and extreme class imbalance. Fraud transactions account for 0.01–0.1% of total volume, production defects 0.5–3%. With such ratios, a naive “all normal” classifier gives 99.9% accuracy but recall for the anomalous class near zero. Supervised models are powerless.
Second: “normality” is always contextual. A login at 3 AM may be normal for a night‑shift user but suspicious for a day‑worker. Bearing vibration at 2.3 mm/s depends on operating mode and machine age. So we embed context via feature engineering and time windows.
Third: quality assessment without ground truth. No standard test set — AUC‑ROC is possible only if a few labeled examples exist. For fully unlabeled data, only domain expert validation and indirect metrics work.
How to Distinguish an Anomaly from Noise in Real Time?
With adaptive thresholds and continuous monitoring of model statistics. In the case section we show how.
| Method |
Data Type |
Training Speed |
Typical Application |
| Isolation Forest |
Tabular, categorical |
High |
Baseline for initial hypotheses |
| Autoencoder |
Images, time series, logs |
Medium |
Unstructured data |
| LSTM-AE |
Multivariate time series |
Low |
Industrial telemetry |
| PyOD (ensemble) |
Tabular |
High |
Quick comparison of 40+ methods |
Isolation Forest is the standard baseline for tabular data. Idea: anomalies are isolated faster by random partitioning of the feature space. Works well at contamination=0.01–0.1, robust to feature scale, no normalization required. Implementation in sklearn.ensemble.IsolationForest.
Typical mistake: setting contamination='auto' without understanding the data. Auto mode assumes a threshold of -0.5, which may not match the actual anomaly proportion. Better: estimate expected anomaly percentage through domain knowledge and set it explicitly. We guarantee contamination tuning for your case.
PyOD (Python Outlier Detection) is a library with 40+ algorithms under a unified API — OCSVM, LOF, COPOD, ECOD, DeepSVDD, AutoEncoder. Useful for quickly comparing methods on the same data.
Autoencoders are the main method for unstructured data (time series, images, logs). Train the network to reconstruct normal data; anomalies yield high reconstruction error. Anomaly threshold is the 95th or 99th percentile of error on a validation set of normal data.
Practical problem with autoencoders: overfitting on “normal” patterns that are still rare. If the training set contains even a few anomalies, the model may learn to reconstruct them well. Solution: thorough cleaning of training data or using a Variational Autoencoder (VAE), which generalizes better.
LSTM‑AE for time series captures temporal dependencies better than a regular AE. Especially effective for multivariate time series (10+ sensors simultaneously). Implementation via PyTorch, training with MSELoss on sliding windows.
In Detail: Anomaly Detection in Industrial Time Series
Problem: vibration sensors on 12 pumps at a chemical plant, 6 sensors per pump, frequency 100 Hz. Need to warn of impending failure 4–24 hours in advance.
Solution architecture: raw data → feature extraction (RMS, kurtosis, peak factor, FFT amplitudes at resonant frequencies) → normalization by 24‑hour sliding window → LSTM‑AE → reconstruction error → threshold logic + alerting.
LSTM window size: 60 seconds (6000 points at 100 Hz). Too small a window misses slow patterns, too large loses sensitivity to rapid changes.
Anomaly threshold: not fixed, but adaptive. threshold = mean(errors_last_7d) + 3 * std(errors_last_7d). As normal state drifts (planned wear), the threshold adapts, avoiding false positives.
Result over a 6‑month pilot: detected 4 out of 5 real pre‑failure conditions (recall 0.8), with 2 false alarms over 6 months (precision 0.67). Before implementation: 3 unplanned shutdowns. After implementation: cost savings verified in the pilot report.
What Specifics Does Fraud Detection Face?
Financial transactions have several features that complicate detection:
- Concept drift: fraud patterns change faster than normal behavior. A model trained six months ago becomes obsolete.
- Adversarial adaptation: advanced fraudsters adapt — making transactions resemble normal ones.
- Temporal dependency: a series of normal transactions followed by one unusual transfer is a sequence anomaly, not a single point.
Practical stack for fraud detection: LightGBM with SMOTE oversampling for the supervised part (known fraud cases) + Isolation Forest for unsupervised (new patterns). Both signals combined in an ensemble; final decision via thresholds tuned for acceptable FPR (0.1–1% of transactions sent to manual review).
How to Evaluate Quality Without Labels?
When ground truth is absent, we evaluate using:
- Synthetic anomaly injection: add artificial anomalies (spike, level shift, point outlier) and check if the model detects them.
- Expert validation: random sample of top‑K anomalies → expert review → precision.
- Business metric: did the number of missed incidents / false alarms decrease after deployment?
Technical detail: the adaptive threshold is computed as mean(errors) + k * std(errors) on a 7‑day sliding window. Coefficient k is tuned on a validation set with synthetic anomalies to achieve FPR < 0.1%. When features drift, the window automatically shifts.
Process
- Interview with domain experts — understand what “normality” means and what incidents have occurred.
- EDA and data preparation — cleaning, feature creation, time windows.
- Baseline (Isolation Forest) — fast validation on known incidents.
- Model selection and customization — Autoencoder / LSTM‑AE / ensemble.
- Training, validation with synthetic anomalies.
- Deployment to production — pipeline on Kafka + Flink / Airflow, alerting to Telegram/Slack, drift monitoring.
- Post‑deployment support — monitor model metrics, update thresholds.
What's Included
- Audit of current data and processes
- Development and training of models (Isolation Forest / Autoencoder / LSTM‑AE / ensemble)
- Configuration of adaptive thresholds and alerting
- Anomaly monitoring dashboard (Grafana / Streamlit)
- Model card and pipeline documentation
- Training for your team (2–3 sessions)
- 3‑month warranty support
Timeline: baseline system with one method — 2–4 weeks. Production system with adaptive thresholds, alerting, and monitoring — 2–5 months. Pricing is calculated individually for your case.
Our team has 8+ years of experience in industrial analytics and 15+ successful projects in anomaly detection for telemetry, finance, and IT monitoring. Get a consultation — we’ll tell you how to solve your problem. Contact us to discuss your data and receive a preliminary architecture proposal.