Predictive maintenance · AutoML PoC
machine failure · 10,000 cycles · 3.4% failures · runs in your browser

Failure before it happens.

Unplanned downtime costs the world's 500 largest companies $1.4 trillion a year — 11% of revenue — at about 25 incidents a month per plant. The model on the right was chosen by AutoML from — candidates, then compiled to plain JavaScript. Move the sensors. Nothing leaves this page.

Downtime figures: Siemens / Senseye, The True Cost of Downtime 2024, p. 3. Data: UCI AI4I 2020 (CC BY 4.0), a synthetic-but-physically-modelled milling dataset — the standard public benchmark for this problem.

failure probability
—
alarm threshold — · tuned for ≥80% of failures caught
—
self-test: …
holdout: — cycles never seen in training · — real failures

What AutoML found, and what shipped

#modelvalidation AUCtrain time

precision–recall on holdout · ● operating point · dashed = base rate
ROC on holdout · AUC
what the shipped model looks at (gain share)
explanations generated by mljar-supervised for the top individual learner: — (the winning ensemble stacks it)

Why it decides what it decides

method

Honest about what this is

This is a proof of concept on a public benchmark, run end-to-end on a $48/month cloud box in about fifteen minutes. The point is the pipeline: AutoML picks the algorithm and the trade-offs, a compact model is compiled to a dependency-free JavaScript function, and the exact same numbers are reproduced in the browser to six decimals. Swap in your plant's sensor log and the pipeline is unchanged.

What it is not: a deployed system. There is no drift monitoring, no retraining schedule, no integration with a CMMS — those are the actual engagement.

  1. Data. UCI AI4I 2020: 10,000 cycles, six inputs (product quality tier, air and process temperature, rotational speed, torque, tool wear), binary target Machine failure. The five failure-mode columns are excluded from the inputs — they leak the answer.
  2. Split. Stratified 80/20, seed 42. All reported metrics are on the 20% the models never saw.
  3. AutoML. mljar-supervised in Compete mode, 15-minute budget, AUC objective: decision trees, linear, random forest, extra trees, k-NN, LightGBM, XGBoost, CatBoost, neural network, then hyper-parameter search, feature engineering and stacking. Every model in the leaderboard is reproducible from poc/train.py.
  4. Shipped model. A LightGBM classifier with scale_pos_weight for the 28:1 imbalance, exported with m2cgen to a single JavaScript function. The page runs eight holdout rows through it on load and compares against Python's predict_proba.
  5. Operating point. The alarm threshold is the highest-precision point that still catches ≥80% of failures — because on a plant floor a missed failure costs more than an unnecessary inspection.
about this work

Built by Vincent L. Anderson

Consulting AutoML/DL Engineer and Data Scientist at Mighty House Inc. (Wheatland, Wyoming) — an economist and statistician by training who moved into machine-learning systems and the infrastructure under them.

If you have a maintenance log and a downtime number, the pipeline above already fits. The conversation starts with the log.