Study · 03 — Lab

Anomaly detection in production orders

A hybrid pipeline that flags quantity and price entry errors before they reach the factory floor.

System view · demo data

Price vs quantity · z-score per product86 flagged-5051015Quantity (z) →All● Errors◌ False alarms

Tap a filter to see only those alerts

Flagged orders
86
Real errors
57
False alarms
29

The system flagged 86 orders for their quantity or price. 57 were real errors: 66% of the alerts are worth a review.

The problem

A typo in an order is discovered once the item has already been made.

What I built

A per-product Z-score rule, Isolation Forest and content-based duplicate detection, evaluated on precision and recall.

What changed

The pipeline flags suspicious orders before manufacturing starts.

Tools

  • Python
  • Scikit-Learn
  • Isolation Forest