← Back to projects Shipped

Predictive Maintenance MLOps Platform

Industrial equipment rarely fails without warning; the warning is just buried in sensor data. This project turns that data into a failure-prediction service with the production loop around it: a cost-tuned alert threshold, per-prediction explanations, drift monitoring, and CI that retrains the model from scratch on every push.

Why this project

Before moving into data, I worked as a mechanical engineer, and I later spent nine years building failure-prediction models for engineering teams as a data analyst. Unplanned downtime is expensive and mostly preventable. Most ML portfolio projects stop at a notebook with a good F1 score; in industry the hard part starts after that, when the model has to run reliably as data shifts underneath it.

What it does

Architecture

FeaturesOne shared feature function for training and serving, so skew cannot happen; leaky per-mode failure flags dropped at load
TrainingBaseline vs XGBoost with stratified CV; cost-tuned threshold; artifacts + metrics + drift reference saved
Inference APIFastAPI /predict with SHAP drivers, /drift, /health; Dockerised with healthcheck
MonitoringPSI per feature vs training reference; a simulated heatwave scenario flags exactly the shifted features
CI/CDGitHub Actions: retrain -> test -> docker build -> live smoke test on every push

Results

Skills demonstrated