Lesson objective
Read a vendor or study accuracy claim alongside the recall it conceals, and work out what a stated metric means for a plant where defects and failures are rare.
Plain-language explanation
Why this matters now
Every vendor demonstration ends with a percentage. It is almost always accuracy, and accuracy is almost always the wrong headline when the thing you care about is rare. That is not a criticism of any vendor. It is arithmetic, and once you have seen it you cannot unsee it.
Two peer-reviewed studies in this course show the gap precisely, and both are honest about their own limits.
Predictive maintenance. A Physics-Informed Benchmarking Framework for Machine Learning and Tree-Based Ensembles in IIoT-Enabled Predictive Maintenance, in Sensors volume 26, first published 7 August 2026 (DOI 10.3390/s26165026), compared Logistic Regression, Isolation Forest, Random Forest and XGBoost under identical features, splits, preprocessing and imbalance handling. "Random Forest achieved an accuracy of 0.986, an F1-score of 0.722, and a ROC-AUC of 0.983, providing the best balance between failure detection and false-alarm control." On the same data, "XGBoost achieved an accuracy of 0.978, a recall of 0.853, and the lowest inference latency of 0.35 ms."
Stop at the pair: 0.986 accuracy and an F1 of 0.722, from the same model, on the same run. If you were shown only the first number you would think the problem was solved. The second tells you it is not.
There is a second, larger caveat. The study uses the AI4I 2020 Predictive Maintenance Dataset, which its donors describe as "a synthetic dataset that reflects real predictive maintenance data encountered in industry," created because "real predictive maintenance datasets are generally difficult to obtain and in particular difficult to publish." It holds 10 000 rows with 14 features, and its five failure modes are built in by rule: tool wear failure (a tool is replaced or fails at a randomly selected tool wear time between 200 and 240 minutes; 120 cases, of which 69 replacements and 51 failures), heat dissipation failure (115 data points), power failure (95), overstrain failure (98) and random failure (0.1% chance, 5 data points). A model doing well here has recovered hand-written rules. It has not predicted a real machine failure.
Visual inspection. Fabric defect detection using fine-tuned Yolo-12, in PLOS ONE, first published 22 July 2026 (DOI 10.1371/journal.pone.0353550), used "a local dataset collected from Chenab Textiles" validated against three public datasets, aiming for a single model working on both plain and printed textiles. On the mill's own dataset the reported results are "mean Average Precision (mAP) is 85.1%, precision is 84.5%, and recall is 81.7% over seven separate fabric defect categories."
Recall of 81.7% means roughly one defect in five was missed on the authors' own images, in seven categories, at one mill. That is an honest result, published by the authors themselves, and it is a far better anchor for your expectations than any demonstration you will be shown.
A question to sit with
A vendor tells you their system is 98% accurate on your kind of part. What single follow-up question would tell you whether that number means anything?
What goes wrong
Accuracy quoted alone when the event is rare. If 3% of parts are defective, a system that passes everything is 97% accurate and catches nothing.
Recall and precision collapsed into one word. "Accuracy", in a sales conversation, can mean any of three different things, and nobody is obliged to tell you which.
A synthetic result read as a field result. A number from a rule-generated dataset measures rule recovery. It is not evidence about your machine.
A single-site result generalised. Seven defect categories at one mill, on one kind of product, under that mill's lighting and cameras.
A metric with no confusion matrix behind it. Without the four counts, no percentage can be interpreted.
Latency and false alarms ignored. A system that flags constantly gets switched off within a fortnight, and then its recall is zero.
The practical answer
Learn four counts and three ratios. This is the whole of it.
| Count | Plant meaning |
|---|---|
| True positive (TP) | A defective part the system flagged |
| False negative (FN) | A defective part the system passed — the escape |
| False positive (FP) | A good part the system flagged — the false alarm |
| True negative (TN) | A good part the system passed |
- Accuracy = (TP + TN) ÷ all parts. How often it was right about anything.
- Recall = TP ÷ (TP + FN). Of the defects that existed, how many it caught. This is your escape rate, inverted.
- Precision = TP ÷ (TP + FP). Of the parts it flagged, how many really were defective. This is your false-alarm burden.
- F1 combines precision and recall into one number, which is why an F1 far below the accuracy is a signal that one of the two is poor.
Work it through once and it stays with you. A fictional cell inspects 10 000 parts a month, of which 300 are genuinely defective — 3%.
| Actually defective | Actually good | Total | |
|---|---|---|---|
| System flagged | TP 240 | FP 60 | 300 |
| System passed | FN 60 | TN 9 640 | 9 700 |
| Total | 300 | 9 700 | 10 000 |
Now compute. Accuracy = (240 + 9 640) ÷ 10 000 = 0.988, or 98.8%. Recall = 240 ÷ 300 = 0.80. Precision = 240 ÷ 300 flagged = 0.80. And the number that matters on your dock: 60 defective parts shipped every month, at 98.8% accuracy.
Compare it with a system that does nothing at all and passes every part. TP 0, FP 0, FN 300, TN 9 700. Accuracy = 9 700 ÷ 10 000 = 97.0%. Recall = 0. A system with no capability whatsoever scores 97% accuracy on this line, only 1.8 points below the working one. That is why accuracy alone tells you nothing when defects are rare.
The five questions to ask any vendor, study or internal pilot.
- What is the recall, and what is the precision? Not just accuracy.
- What was the base rate — what proportion of the evaluation data was actually defective or failed?
- What was it measured on: a public benchmark, a synthetic dataset, or images or signals from a real line?
- Whose line, which products, which revisions, which lighting or sensors, and over what period?
- What happens to the numbers on a part, material or revision the system has not seen?
What this means for your pilot. Any internal evaluation you run needs the same four counts, on parts you have independently judged, including parts the system has never seen. Record the base rate. Record the period. Record who did the independent judging, because it must not be the system. And treat the result as a description of that period on that line, not a property of the product. Module 12 goes further into inspection and maintenance evidence; this lesson is about reading the number at all.
Remember this
- Accuracy alone is meaningless when the event is rare: on a 3% defect line, passing everything scores 97%.
- Recall is your escape rate inverted; precision is your false-alarm burden. Ask for both.
- A published example: 0.986 accuracy with an F1 of 0.722 on the same model, on a rule-generated synthetic dataset of 10 000 rows.
- A published example from real images: mAP 85.1% with recall 81.7% — about one defect in five missed, seven categories, one mill.
- Ask what the number was measured on, and what happens on a part the system has never seen.
Manufacturing example
Marlin Gear & Spline, a fictional 110-person gear shop, is shown a vision system for its final visual cell. The vendor's slide says 98% accuracy on gear surface defects. Quality manager Bethan Croll asks one question: what is the recall? The sales engineer does not have it, and returns a week later with an evaluation from another customer's line. Bethan reconstructs the four counts from it and builds her own table for a fictional month at Marlin: 10 000 parts, of which 300 are genuinely defective, a base rate of 3%. On the vendor's reported behaviour the system flags 300 parts, of which 240 are truly defective and 60 are good parts wrongly flagged, and it passes 60 defective parts. She computes accuracy as (240 + 9 640) divided by 10 000, which is 0.988, or 98.8%, slightly better than the slide claimed. Then she computes recall as 240 divided by 300, which is 0.80, and precision as 240 divided by the 300 flagged, also 0.80. The line that goes into her memo is the one nobody had said aloud: at 98.8% accuracy this system would pass 60 defective gears a month. She then computes the null case for comparison. A system that simply passes every part gets 9 700 out of 10 000 right, or 97.0% accuracy, and catches nothing at all. The vendor's headline is 1.8 points above doing nothing. Bethan does not reject the system. She recommends a pilot with three conditions. First, the evaluation set must include the two gear revisions released this year, which the vendor's training data cannot contain. Second, an inspector independently judges every part in the evaluation set, and the counts are built from her judgement rather than from the system. Third, the false-alarm rate is tracked weekly, because a cell that flags 60 good parts a month will be trusted and a cell that flags 600 will be switched off. In the plant's quality system she records that the vision output is an aid, that the inspection result is entered separately by the named inspector, and that no metric from the pilot changes who accepts a part.
Responsible-use warning
Do not let an accuracy percentage stand in for a decision. On a line where 3% of parts are defective, a system that passes every part is 97% accurate and catches nothing, so accuracy is only 1.8 points away from useless. Ask for recall and precision, ask what the base rate was, and ask whether the number came from a public benchmark, a synthetic dataset or somebody's real line. A result from a rule-generated synthetic dataset measures how well a model recovers hand-written rules; it is not evidence that your machine's failures can be predicted at that rate.
Human-review requirement
The person the quality system names owns the acceptance decision and confirms that no metric, from a vendor or from an internal pilot, has been allowed to replace it. That person checks that the evaluation set included parts, revisions and conditions the system had not seen, that an independent human judgement produced the counts rather than the system itself, and that the base rate and the period are recorded alongside the recall and precision. Where the product is a finished medical device, the manufacturer subject to the FDA quality management system regulation owns the decision. The reviewer confirms the record shows the AI output and the qualified person's result as separate entries.
Practical exercise
Build and read a confusion matrix for one inspection or monitoring decision. Use the fictional figures below or invent your own; use no customer data.
- Choose one pass or fail decision in your plant and state the population per month and the proportion genuinely defective.
- Assume 10 000 parts and a 3% defect rate. Build the four counts for a system that flags 300 parts, of which 240 are truly defective.
- Compute accuracy, recall and precision, showing your working to three decimal places.
- Compute accuracy for a system that passes every part, and write down the difference between the two accuracy figures.
- Write one sentence stating how many defective parts leave the plant each month under the first system.
- Now halve the defect rate to 1.5% and rebuild the table, keeping recall at 0.80. Recompute accuracy and write one sentence on what happened to it.
- Take one vendor claim you have actually been shown and write the five questions from this lesson against it, marking which you can answer today.
- Write the three conditions you would attach to a pilot: unseen revisions in the evaluation set, independent human judgement producing the counts, and weekly tracking of false alarms.
- Record who owns the acceptance decision in your plant, by name and role, and confirm that no metric changes that.
Knowledge check
-
On a line where 3% of parts are defective, what accuracy does a system that passes every part achieve, and what is its recall?
Answer guidance: 9 700 of 10 000 parts are good, so it scores 97.0% accuracy with a recall of zero. That is why accuracy alone is meaningless when the event you care about is rare.
-
What do the Sensors benchmark figures 0.986 accuracy and F1 0.722 tell you together, and what limits them?
Answer guidance: They are the same Random Forest model on the same run: a very high accuracy alongside a much lower F1, because failures are rare. Both come from the AI4I 2020 dataset, which is synthetic and rule-generated, so the result measures rule recovery rather than prediction of a real machine failure.
-
What does a recall of 81.7% mean in practice, and where does that figure come from?
Answer guidance: Roughly one defect in five was missed. It is reported with an mAP of 85.1% and precision of 84.5% over seven fabric defect categories on one mill's own dataset, in a PLOS ONE paper of 22 July 2026, and should not be generalised to other fabrics, mills or industries.
-
Why must the counts in an internal pilot come from an independent human judgement?
Answer guidance: Because if the system supplies both the flags and the ground truth, you are measuring it against itself. An inspector must judge each part independently, and the evaluation set must include revisions and conditions the system has never seen.
Sources and further reading
- Sensors (MDPI, peer-reviewed journal) — A Physics-Informed Benchmarking Framework for Machine Learning and Tree-Based Ensembles in IIoT-Enabled Predictive Maintenance (2026-08-07). Accessed 2026-09-15.
- University of California, Irvine, Machine Learning Repository (dataset donated by the authors) — AI4I 2020 Predictive Maintenance Dataset. Accessed 2026-09-15.
- PLOS ONE (peer-reviewed journal) — Fabric defect detection using fine-tuned Yolo-12 (2026-07-22). Accessed 2026-09-15.
- AI Coalition Network — Certification Educational Standard: Human Review of AI-Assisted Professional Work. Accessed 2026-09-15.