Proof of concept: AutoML for machine-failure prediction, with the winning-family model compiled to a dependency-free JavaScript function so the demo runs entirely in the browser on GitHub Pages.
Live page: https://ludoplex.github.io/automl-predictive-maintenance/
Unplanned downtime costs the world's 500 largest companies about $1.4 trillion a year — 11% of revenue — at roughly 25 incidents a month per plant (Siemens / Senseye, The True Cost of Downtime 2024, p. 3, https://assets.new.siemens.com/siemens/assets/api/uuid:1b43afb5-2d07-47f7-9eb7-893fe7d0bc59/TCOD-2024_original.pdf). Predicting a failure from routine sensor readings before it happens is the canonical industrial ML use case, and it has the shape AutoML is built for: tabular data, heavy class imbalance (3.4% failures here), asymmetric error costs, and a real need to explain the decision to an engineer.
UCI AI4I 2020 Predictive Maintenance Dataset (id 601, CC BY 4.0):
https://archive.ics.uci.edu/dataset/601/ai4i+2020+predictive+maintenance+dataset — 10,000 milling
cycles, six inputs (product quality tier, air/process temperature, rotational speed, torque, tool
wear), binary target Machine failure. It is synthetic but physically modelled; the five failure-mode
columns (TWF HDF PWF OSF RNF) are excluded from the inputs because they encode the answer.
- Stratified 80/20 split, seed 42; every metric below is on the held-out 20%.
- mljar-supervised
Competemode, 15-minute budget, AUC objective — writes the leaderboard and its own SHAP/importance explanations. - A LightGBM classifier (
scale_pos_weightfor the ~28:1 imbalance) on the same split, exported with m2cgen todocs/model.js. Eight holdout rows and their Pythonpredict_probavalues are embedded in the page as a self-test. - Operating point: the highest-precision threshold that still catches ≥ 80% of failures.
docs/build.py injects poc/out/* into docs/template.html → docs/index.html.
python -m venv .venv && . .venv/bin/activate
pip install mljar-supervised lightgbm m2cgen ucimlrepo pandas scikit-learn matplotlib shap
python poc/train.py --out poc/out --mode Compete --time 900
python docs/build.pyResults in this repo were produced 2026-09-16 on a 4 vCPU / 8 GB cloud VM.
A deployed system. No drift monitoring, no retraining schedule, no CMMS integration — those are the engagement, not the demo. License: MIT.