Sub topic 14
Using poka-yoke with FMEA and the Lean Six Sigma improve phase
This chapter assumes you know the DMAIC cycle (Define, Measure, Analyze, Improve, Control) at a basic level. It also assumes you have met the earlier chapters on error types, prevention versus detection, and the effectiveness ladder. Here you will place poka-yoke inside the wider Lean Six Sigma workflow. You will use Failure Mode and Effects Analysis (FMEA) to decide which errors deserve a device, and you will use the improve phase to build, test, and lock in that device.
Where poka-yoke sits in DMAIC
Poka-yoke is a family of countermeasures, not a phase. It mainly appears in the Improve phase, but it depends on work done earlier and it creates work for the phase after.
| Phase | Contribution to mistake-proofing |
|---|---|
| Define | Names the problem, such as "wrong-environment deletions" or "mislabeled parts". |
| Measure | Gives a baseline defect rate and shows where in the process defects are found. |
| Analyze | Traces defects to error root causes (see the earlier chapter on root causes). |
| Improve | Selects, designs, and pilots the poka-yoke device. |
| Control | Keeps the device working: audits, maintenance, and updated procedures. |
A common mistake is to jump to a device in the Improve phase without the Analyze work. The result is a clever fix for an error that was not the main cause of the defect.
FMEA in brief
FMEA is a structured method for listing the ways a process step can fail, what each failure would cause, and how risky each one is. For every step you record:
- Failure mode: how the step can go wrong, for example "operator selects the wrong product code".
- Effect: what happens downstream if it does, for example "customer receives the wrong item".
- Cause: why the failure mode occurs. Use the root cause from your analysis.
- Current controls: what already prevents or detects it.
- Severity (S): how bad the effect is, usually on a 1 to 10 scale.
- Occurrence (O): how often the cause is likely to happen, 1 to 10.
- Detection (D): how likely the current controls are to catch it before it reaches the customer, 1 to 10. A high number means detection is poor.
The Risk Priority Number (RPN) is S × O × D. A higher RPN means higher priority.
Many organizations now use Action Priority (AP) tables, as in the AIAG-VDA FMEA handbook, instead of a pure RPN. The reason is that RPN can hide a severe risk. A failure with S = 10, O = 2, D = 2 has an RPN of 40, which looks small. An RPN of 40 might also come from a trivial failure. If your organization uses AP, apply the same logic below, but let severity drive the ranking.
Using FMEA to choose where to apply poka-yoke
FMEA tells you which failure modes are worth the cost of a device. Poka-yoke then acts on specific scores.
- Rank the failure modes by RPN or AP, and always review high-severity items regardless of RPN.
- Select the failure modes whose cause is a human error (slip, lapse, or mistake). Machine wear or material variation needs other countermeasures.
- Choose a device from the effectiveness ladder. Prefer elimination or replacement, then facilitation, then detection.
- Predict the new scores and record them as the expected result.
Each type of device moves different scores:
| Device type | Mainly lowers | Why |
|---|---|---|
| Prevention (the error cannot happen) | Occurrence | The cause is removed or blocked. |
| Control (shutdown) detection | Detection score (D) | The error is caught at the source and stops the process. |
| Warning device | Detection score, weakly | The signal depends on a human reacting to it. |
| Mitigation | Severity | The error still happens, but its effect is smaller. |
Severity rarely changes with mistake-proofing, apart from mitigation or redesign of the product itself. A device that prevents a wrong-part assembly lowers occurrence. A sensor that stops the machine when the part is wrong lowers the detection score, because the defect never leaves the station.
Worked example: order-status errors
Suppose a software team ships an order system. The FMEA has this line.
| Item | Value |
|---|---|
| Step | Update order status |
| Failure mode | Status moved backward, from SHIPPED to DRAFT |
| Effect | Order is re-billed and re-shipped |
| Cause | Free-text status field; staff mistype or pick the wrong value |
| Current control | Weekly report that flags duplicate shipments |
| S / O / D | 8 / 5 / 7 |
| RPN | 280 |
The current control only detects the error after the customer has been affected, so D is high. The team chooses a prevention device: an enumerated status with a transition table, as shown in the software chapter.
from enum import Enum
class OrderStatus(Enum):
DRAFT = "draft"
PAID = "paid"
SHIPPED = "shipped"
ALLOWED_TRANSITIONS = {
OrderStatus.DRAFT: {OrderStatus.PAID},
OrderStatus.PAID: {OrderStatus.SHIPPED},
OrderStatus.SHIPPED: set(),
}
def change_status(current: OrderStatus, new: OrderStatus) -> OrderStatus:
if new not in ALLOWED_TRANSITIONS[current]:
raise ValueError(f"Cannot move from {current.value} to {new.value}")
return new
status = OrderStatus.DRAFT
status = change_status(status, OrderStatus.PAID) # allowed
print(status)The team re-scores the line after the pilot. Occurrence drops from 5 to 1, because the invalid transition cannot be made through the application. Detection drops from 7 to 2, because the error is stopped at the moment of entry. Severity stays at 8 because the effect would be the same if the error did occur. The new RPN is 8 × 1 × 2 = 16, down from 280.
The new scores are only a prediction until you verify them. A transition table in the application does not stop someone who edits the database directly. Record that as a residual risk, and check it in the verification step below.
Designing and piloting in the Improve phase
The Improve phase is where candidate countermeasures become tested solutions. For a poka-yoke device, a workable sequence is:
- State the target error. Write one sentence naming the error, the step, and the root cause. "Operators select the wrong environment because the delete command accepts any name" is specific. "Reduce deployment errors" is not.
- Generate options across the effectiveness ladder, not just one idea.
- Score options against effect on risk, cost, ease of use, and how easily the device can be bypassed. A device that slows work by a large amount will be bypassed.
- Pilot on one line, one team, or one service. Keep the old process available so you can compare.
- Measure the same metric you used in the Measure phase. If you measured defects per thousand orders, measure that again.
- Standardize only after the pilot shows a real change.
Piloting a confirmation device
The next code sample is a motion-step device that makes the operator retype the target's name before deletion. During the pilot, you can also count how often the check fires, because each firing is a caught error.
caught_errors = 0
def delete_environment(name: str, confirm_name: str) -> str:
global caught_errors
if confirm_name != name:
caught_errors += 1
raise ValueError("Confirmation does not match the environment name; nothing was deleted")
return f"Deleted {name}"
print(delete_environment("staging", "staging"))
try:
delete_environment("production", "staging")
except ValueError as exc:
print(exc)
print(f"Caught errors so far: {caught_errors}")The counter gives you pilot data. A count of zero over a long period could mean the error never happens, or it could mean people have found a way around the check. You need the verification steps below to tell which.
Verifying the result
Verification asks two separate questions.
- Does the device work? Seed a known error and check that the device stops it. For a physical fixture, insert the wrong part. For software, write a test that attempts the invalid action and expects a refusal.
- Can the device be skipped? Look for alternative paths: direct database edits, a manual override, a second tool, or a switch that disables the sensor. If a path exists, either close it or add a control to it.
A short test for the first order-status device could look like this.
import pytest
from orders import OrderStatus, change_status
def test_backward_move_is_refused():
with pytest.raises(ValueError):
change_status(OrderStatus.SHIPPED, OrderStatus.DRAFT)
def test_skipped_step_is_refused():
with pytest.raises(ValueError):
change_status(OrderStatus.DRAFT, OrderStatus.SHIPPED)
def test_valid_move_is_allowed():
assert change_status(OrderStatus.DRAFT, OrderStatus.PAID) is OrderStatus.PAIDThis sample assumes the earlier code is saved as orders.py. Tests like these also protect the device in the Control phase, because a future change that weakens the transition table will fail the test.
Handing over to the Control phase
A device that works at the end of the pilot can still fail six months later. The Control phase should record the following.
- Owner: the person responsible for the device and its checks.
- Control plan entry: what is checked, how often, and the reaction when a check fails.
- Audit of bypasses: periodic review of overrides, disabled sensors, and manual edits.
- Revisit trigger: when a process, product, or tool changes, return to the FMEA line and review it.
- Metric tracking: a control chart or run chart of the defect rate, so a return to the old level is visible.
The FMEA is a living document. When a new defect appears, add it as a new failure mode or revise the scores for an existing one. If a device has been bypassed repeatedly, treat that as new information about the root cause. People bypass devices when the device makes the real work harder, so the fix is usually a redesign of the device.
Common errors in applying this method
- Scoring the device, not the failure mode. The FMEA line describes how the step fails. The device is the control.
- Ranking only by RPN. High-severity items with low RPN still need review.
- Reducing D with a warning. An alarm that depends on someone noticing it deserves a modest detection improvement at most.
- Skipping the baseline. Without Measure-phase data you cannot show that the device helped.
- Treating the pilot as the end. The Control phase is where bypass and drift appear.
Exercise
An FMEA line for "operator enters wrong customer ID" scores S = 6, O = 6, D = 8 (RPN 288). The team adds a pop-up that says "Check the customer ID" before saving, and re-scores the line as O = 2, D = 3. What is wrong with this re-scoring, and what device would justify a lower score?
Show answer
A pop-up is a warning device that depends on the operator reading and acting on it. It does not stop the error, so it cannot justify cutting occurrence from 6 to 2, and a pop-up shown on every save quickly gets dismissed without being read. The scores should stay close to the original until a pilot shows otherwise. A stronger device would be a control or prevention one, such as a lookup that fills the customer ID from a selected customer name, or a check digit that rejects an ID that does not validate. After a pilot or seeded-error test shows the invalid entry is refused, a lower O and D can be justified.
Exercise
A team's pilot of a typed-name confirmation for deleting environments shows zero caught errors in three months, where the baseline had two wrong deletions per month. Give two explanations and one check for each.
Show answer
First, the device may be working and operators have learned to read the target name before typing, so errors are no longer attempted. Check this by looking at the audit log for deletion attempts and confirming the rate of wrong-target attempts, including ones that were corrected before the confirmation. Second, people may be bypassing the device, for example through an API call, a script, or a console that does not require confirmation. Check this by reviewing all deletion paths and comparing the deletion count in infrastructure logs with the number of confirmations passed through the checked path.