Know the asset will fail before it takes the inventory with it.
Sensor history and a predictive model, built and run with full MLOps. About 20 days before a cooler or storage unit fails, the team already knows—accurately enough to act on it.
- Client
- An IoT company protecting pharmaceutical cold-chain inventory across a national retail footprint
- Status
- Live in production, and we still maintain it
- Stack
- Snowflake · dbt · logistic regression · LightGBM · FastAPI · Docker · Kubernetes · Jenkins · ArgoCD · Datadog
- Result
- ~89% of real failures caught ~20 days out, with a false-positive rate low enough to trust the alert
A spoiled shipment looked like bad luck. It wasn't.
The sensors were already there: temperature, compressor cycles, run-hours, on every cooler and storage unit guarding the inventory. What was missing was a model accurate enough to trust, and quiet enough that a dispatcher wouldn't start ignoring it after the fifth false alarm.
It also had to arrive as a production service across a large retail footprint, not as a one-off analysis. A notebook with a good score in it would not have survived contact with the estate it needed to cover.
A failure window the team could actually trust.
We built a predictive asset-failure model trained on the sensor history, tuned to flag a failing cooler or storage unit about 20 days before it fails—at roughly 89% accuracy and a high true-positive rate. Catching real failures mattered, but so did not crying wolf: the model is tuned to keep false positives low enough that a flagged unit means a truck roll worth making.
We also built the MLOps underneath it: automated retraining, versioned models, data-quality checks on every sensor feed, and alerts when an input goes stale—so the model keeps running without us in the loop.
- 01 Cooler and storage-unit sensor history in one model
- 02 A ~20-day failure window, ~89% accurate
- 03 A high true-positive rate, tuned against false-alarm truck rolls
A platform, not a model file.
The data layer is a Bronze / Silver / Gold medallion architecture in dbt on Snowflake, which is what the models read from. We run two model families side by side—logistic regression and LightGBM—so a simple, explainable baseline always sits next to the higher-capacity model, and a surprising result from one can be checked against the other.
Serving is a containerized FastAPI service deployed through Jenkins and ArgoCD onto Kubernetes. Models carry a MAJOR.MINOR.PATCH version, and we wrote a dbt backfill macro to populate that version on existing records—so a prediction made last quarter can still be traced to the model that made it.
Around that we built the things that decide whether a platform survives its first year: environment-aware dbt schema tests so checks run appropriately in dev versus production, and a QA testing suite built with a teammate. An ML pipeline visualizer for stakeholder demos is in progress.
The platform is live and we still maintain it. A failure that used to surface as a spoiled shipment now shows up as a work order with about three weeks of runway—and the team acts on the alert because it isn't crying wolf.
Two further pieces of this engagement have their own write-ups: the champion–challenger review council that governs how a retrained model gets promoted, and the observability and security work that makes the pipeline debuggable at 2am.
Same kind of problem?
Bring the asset and what it costs you when it goes down.