Skip to content

About

AutoML predictive maintenance PoC: mljar-supervised leaderboard + LightGBM compiled to JavaScript. Machine-failure prediction that runs live in your browser (UCI AI4I 2020).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

automl-predictive-maintenance

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/

The problem

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.

Data

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.

Pipeline (poc/train.py)

  1. Stratified 80/20 split, seed 42; every metric below is on the held-out 20%.
  2. mljar-supervised Compete mode, 15-minute budget, AUC objective — writes the leaderboard and its own SHAP/importance explanations.
  3. A LightGBM classifier (scale_pos_weight for the ~28:1 imbalance) on the same split, exported with m2cgen to docs/model.js. Eight holdout rows and their Python predict_proba values are embedded in the page as a self-test.
  4. 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.

Reproduce

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.py

Results in this repo were produced 2026-09-16 on a 4 vCPU / 8 GB cloud VM.

What this is not

A deployed system. No drift monitoring, no retraining schedule, no CMMS integration — those are the engagement, not the demo. License: MIT.

About

AutoML predictive maintenance PoC: mljar-supervised leaderboard + LightGBM compiled to JavaScript. Machine-failure prediction that runs live in your browser (UCI AI4I 2020).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages