MSA 7A: Attribute study for automatic gages and vision systems
- MSA 7A assesses automatic gages with a pass/fail decision, such as vision systems or leak testers.
- At least 50 reference parts with many borderline parts, several runs instead of several appraisers.
- Kappa above 0.75 counts as good, but a high kappa does not rule out misses.
Contents
What this is about
More and more inspections are done by machines: a camera looks for scratches, a leak tester decides between tight and leaking, an end-of-line test switches to green or red. You might think a machine always judges the same way. That is only true far from the limit. Close to the limit, small things decide: how the part lies on the conveyor, a speck of dust on the lens, a touch more light.
MSA 7A checks how reliably such an automatic gage decides. It is the same idea as in MSA 6, except that the machine replaces the appraisers, and instead of several appraisers there are several runs. So each part goes through the inspection several times, and you look at whether the machine decides the same way and correctly every time.
The terms in plain words
- Automatic gage
- A system that decides OK or not OK on its own, without a person judging.
- Run
- A complete pass of all parts through the machine. Several runs replace the several appraisers of MSA 6.
- Threshold
- The value in the program above which the machine decides not OK, here a scratch length.
- Reference rating
- The correct rating per part, fixed independently of the machine, here by measuring the scratch and comparing it with the boundary sample.
- Kappa κ
- Agreement adjusted for the chance share. Explained in MSA 6.
- Miss and false alarm
- Bad part passed as good, or good part rejected.
Purpose
MSA 7A assesses attribute automatic gages: vision systems, leak testers, end-of-line tests with a pass/fail decision. There is no appraiser whose judgement varies, but part position, lighting, contamination and thresholds in the program decide how reliably the machine decides at the limit.
This is especially important if the machine is the last inspection before the customer. Then there is nobody left to catch a miss.
How it works
- Choose at least 50 parts with an independently fixed reference rating, with every defect type and many borderline parts just inside and outside the limit. Every machine recognizes parts far from the limit; the limit is what matters.
- Several runs, for example 6, under production conditions: cycle time, feeding, lighting and program version as in production, order reshuffled every time. Do not clean the lens beforehand if that does not happen daily in production either.
- Calculate: kappa of the runs with each other (repeatability) and against the reference, plus effectiveness, miss rate and false alarm rate.
- Assess as in MSA 6 according to AIAG: kappa above 0.75 good, effectiveness from 90 %, miss rate up to 2 %, false alarm rate up to 5 %. With machines watch the miss rate in particular.
Worked example, step by step
A camera checks covers for scratches. According to the boundary sample, a scratch up to 0.50 mm is acceptable; longer scratches are not OK. The 50 parts include 19 bad parts and 12 parts close to the limit and run through 6 times, giving 300 ratings. The ratings are artificial (camera spread 0.03 mm) and available below as CSV.
Step 1: where does the machine waver?
First it is worth looking at the parts for which the machine did not decide the same way every time. There are 3:
| Scratch length in mm | Reference | Ratings OK |
|---|---|---|
| 0.47 | OK | 5 / 6 |
| 0.49 | OK | 3 / 6 |
| 0.51 | not OK | 2 / 6 |
All three lie within 0.03 mm of the threshold of 0.50 mm, exactly as expected with a camera spread of 0.03 mm. For all other parts the machine decided the same way six times.
Step 2: kappa of the runs with each other
The calculation is as in MSA 6. Each part has 6 ratings, i.e. 6 · 5 = 30 ordered pairs. For each part, count the share of agreeing pairs:
| OK / not OK | Number of parts | Agreement per part | Number · agreement |
|---|---|---|---|
| 6 / 0 | 29 | 1.000 | 29.000 |
| 5 / 1 | 1 | 0.667 | 0.667 |
| 3 / 3 | 1 | 0.400 | 0.400 |
| 2 / 4 | 1 | 0.467 | 0.467 |
| 0 / 6 | 18 | 1.000 | 18.000 |
| Sum | 50 | 48.533 |
Each run against the reference gives κ = 0.958 on average.
Step 3: miss rate, false alarm rate and effectiveness
Here you simply count. The 19 bad parts were each inspected 6 times, that is 114 inspections. 2 of them passed as OK. The 31 good parts give 186 inspections, 4 of which were rejected.
What the result means
All indices lie in the AIAG ranges for “acceptable”. Still, the camera passes 1.8 % of the inspections of bad parts, for a scratch of 0.51 mm, that is just above the limit. This is a typical picture for a machine: it is very consistent, but exactly at the threshold chance decides.
If no misses are allowed for the characteristic, the threshold in the program has to become slightly stricter, for example 0.45 mm. Then some good parts with scratches just under 0.50 mm are rejected too, and the false alarm rate rises. That is a deliberate trade-off: what does a false alarm cost, what does a miss at the customer cost? The slider above shows this trade-off.
Common mistakes
- Only clear-cut parts. Then every machine passes with 100 %, but you learn nothing about the limit.
- Only one run. Without repetition you do not see that the machine wavers at the limit.
- Reference from the machine itself. The reference rating must be independent, otherwise the machine checks itself.
- Ideal conditions. Freshly cleaned optics, slow cycle and carefully placed parts give a better result than production.
- Program version not recorded. After every change of the threshold or the program, the study no longer applies.
In STATlum
Create an “MSA 7A” study on the characteristic, choose the rating scale, parts and runs and enter the automatic gage from the equipment catalogue. The evaluation shows all indices of this example.


Download the free versionExample data as CSVFree MSA software: what STATlum Free does
Frequently asked questions
How many runs does an automatic gage need?
The AIAG manual gives no fixed number. More runs reveal variation at borderline parts more easily; the chart above shows how much. Some company guidelines set a number, Bosch Booklet 10 for example 6.
Is a high kappa enough?
Not on its own. A very consistent machine can miss the same defect type again and again. The miss rate and the false alarm rate always belong in the assessment.
When must the study be repeated?
After changes to camera, lighting, software, thresholds or the boundary samples catalogue, after maintenance involving the system and when the defect rate of production changes noticeably.
What are typical acceptance criteria?
As in MSA 6 according to AIAG: kappa above 0.75, effectiveness from 90 %, miss rate up to 2 %, false alarm rate up to 5 %. Requirements of your customer or plant take precedence.
What is the difference to MSA 6?
The idea is the same, only the machine replaces the appraisers: instead of several appraisers there are several runs of the same parts. With an automatic gage the miss rate deserves special attention.
Sources
- AIAG: Measurement Systems Analysis, Reference Manual, 4th edition, attribute measurement systems
- iFactory: Attribute Agreement Analysis for Vision Systems
- Keyence: MSA and GR&R for optical measurement systems
- fabrico: Attribute Agreement Analysis
This article explains the method. It does not replace the guideline that applies to your part or the professional assessment of an actual study.