Jesús R. L. GonzálezSource code on GitHub

Which semiconductor lots should be held for inspection?

590 sensors per lot, a weak signal and a process that changes month to month. The system ranks lots by risk, sets the threshold by cost and reports the saving with its uncertainty.

Not proveneconomic saving: 95 % interval −22k to +20k MXNChronological holdout, 313 lots, reported as is

What the result means

Ranking
PR-AUC 0.089 against a 0.054 failure rate; lift 2.4× in the top 10 %
Leakage found
A random split inflated PR-AUC from 0.09 to 0.154
Drift
142 of 273 sensors shift between training and holdout; /drift raises the alert
Delivery
FastAPI, Streamlit, prediction log and Docker

The main chart

Holdout cost against the decision threshold
Holdout cost against the threshold. The pre-chosen threshold sits close to, but not at, the best possible one.

How the decision was made

  1. Chronological split; expanding-window validation inside training.
  2. Sensor cleaning fitted only on each fold's past.
  3. Threshold by expected cost, not by F1.
  4. One holdout evaluation, stress tests and drift monitoring.

What it does not claim

  • The saving is not statistically demonstrated.
  • Sensor names are anonymous; SHAP rankings are leads, not causes.
  • Costs are assumptions in the configuration.

Model Card and full evidence in the repository.

Try it

See each lot's risk, the recommended action and the observed failure rate of similar lots.

Open the live demo