Detection poka-yoke catches errors by sensing that a step was missed, is incorrect or has produced a faulty condition. Instead of blocking the error physically, as a contact device does, it measures something, such as a weight, a current, a vision image or a count of operations, and compares the result with what it should be. A reading outside the expected range triggers a response: it stops the process, or alerts the operator. Counting checks (the right number of parts or screws) and sequence checks (steps done in the right order) are common forms of the same idea.
How detection works:
Why thresholds are never perfect. A sensor reading is noisy. Normal units scatter around one value and faulty units around another, and the two distributions overlap. A threshold separates the readings into "pass" and "alarm", and wherever it is set, two kinds of mistake are possible: a missed fault (the reading looked normal) and a false alarm (a good unit tripped the sensor). With noise standard deviation $\sigma$ and a fault that shifts the reading by $d$ noise units, the two error rates for a threshold $t$ (in noise units, measured from the normal mean) are:
Raising $t$ lowers the false-alarm rate and raises the miss rate, and vice versa. The best threshold depends on how costly each mistake is.
Worked example. A fault shifts a sensor reading by $d=4$ noise units. Faults occur on $0.5\%$ of units. A missed fault costs $500$ USD in downstream scrap and returns, and an unnecessary stop costs $2$ USD. The expected cost per unit is $0.005\cdot500\cdot P(\text{miss})+0.995\cdot2\cdot P(\text{false alarm})$:
| Threshold | Faults missed | Normal units stopped | Escapes per million | Alarms that are real | Cost per 1,000 units |
|---|---|---|---|---|---|
| $1.5$ | $0.62\%$ | $6.68\%$ | $31$ | $7.0\%$ | $148.5$ USD |
| $2.0$ | $2.28\%$ | $2.28\%$ | $114$ | $17.8\%$ | $102.1$ USD |
| $2.5$ | $6.68\%$ | $0.62\%$ | $334$ | $43.0\%$ | $179.4$ USD |
| $3.0$ | $15.87\%$ | $0.13\%$ | $793$ | $75.8\%$ | $399.3$ USD |
| $3.5$ | $30.85\%$ | $0.02\%$ | $1{,}543$ | $93.7\%$ | $771.8$ USD |
With no sensor at all, the cost would be $2{,}500$ USD per $1{,}000$ units, so the sensor is worth having wherever it is set. The cheapest threshold is around $1.94$, giving $101.4$ USD per $1{,}000$ units.
The optimal threshold. The total cost is lowest where the two cost terms balance. Under equal-variance normal readings, this happens where the likelihood ratio of the two readings equals the cost-weighted odds, which gives a closed form:
Here $\pi=0.005$ is the fault rate. With $d=4$ the cost ratio gives $t^*=2+0.25\ln(0.796)=1.943$, matching a numerical search. The first term puts the threshold midway between the two readings, and the second moves it down when missed faults cost much more than stops, or up when faults are rare and stops are expensive.
The base-rate trap. At a threshold of $1.5$, only $7\%$ of the alarms are genuine faults. When faults are rare, even a small false-alarm rate produces more false alarms than real ones, because there are about $200$ good units for every faulty one. Operators learn to ignore a device that is wrong $93$ times out of $100$, which turns a detection device into noise. Rare faults need a strict threshold, a cleaner signal or a second confirming check.
Making detection work.
- Improve the signal first: a larger separation $d$ is worth more than any threshold choice. At $d=3$ the best cost is $297.5$ USD per $1{,}000$ units, at $d=4$ it is $101.4$ and at $d=5$ it is $27.7$.
- Detect early and close to the cause: a sensor at the step where the error occurs stops value being added to a bad unit.
- Pair detection with a strong response: a sensor that only logs a fault does not prevent an escape. Use an automatic stop for high-risk faults and a warning for low-risk ones.
- Monitor the false-alarm rate: high nuisance alarms lead operators to bypass the device. Track alarms and review the threshold as conditions change.
- Calibrate and challenge it: check that the sensor trips on a known-bad unit at a set interval, and that its drift does not move the effective threshold.
- Use the costs you really face: the optimal threshold depends on the cost ratio. Revisit it when scrap, rework or customer-return costs change.
Read detection poka-yoke as a watchman with a noisy gauge: the threshold decides how many faults slip through against how many false alarms are raised, the faulty fraction decides how trustworthy an alarm is, and the best threshold falls where the cost of one balances the cost of the other.