Article sections
1. Why is a pilot study a separate stage?2. Success criteria must be written before testing3. Performance cannot be measured without ground truth4. How should test samples be selected?5. If 100 defects were detected, is that really 100%?6. Defining the false reject rate correctly7. Line speed, time window, and capacity testing8. Shifts, environment, and long-term stability9. Deciding whether to enter production based on pilot results10. An example results table for production acceptance11. How do we preregister the pilot's statistical design?12. Why does precision change when defect prevalence changes?13. The difference between product-based and frame-based sampling14. Reporting natural production flow and controlled stress testing separately15. Calculating false rejects and the manual review queue16. Testing the measurement system's own uncertainty17. Accurately stating the scope of a "no errors" result18. How should data be separated if changes are made during the pilot?19. Making operator acceptance measurable20. Demonstrating the pilot's economic value21. An example acceptance-rate calculation in pilot design22. A stopping rule for critical defects23. Should the acceptance report show only the final percentage?24. What acceptance approach can be used when very few defect samples are available?25. Test sequences and product order can affect performanceFrequently asked questionsA high score on a test set does not prove that a system reliably inspects every product variant and shift. The pilot study conducted before entering production has a greater purpose than showing that the software can stay running for a day. The pilot must reveal the entire chain's limits under actual production conditions from the image acquisition setup to the operator's decision.
1. Why is a pilot study a separate stage?
Laboratory data usually consists of well-lit, correctly positioned, selectively collected samples. On an actual line, products vibrate, oil stains appear on surfaces, shift operators act differently, and the camera heats up over time. The best way to understand how these variables affect the model is to conduct a controlled pilot in the actual production flow.
The pilot's scope must be bounded from the outset. Results from one machine, one product family, and a single shift do not automatically apply to other machines, materials, or facilities. The pilot report must therefore clearly state which conditions are represented and which have not yet been tested.
A pilot is as much a rehearsal for operational handover as it is evidence of performance. Processes can be tested in parallel: which operator intervenes through which screen when the vision software fails, when manual quality control takes over, and what status is handed over at a shift change.
2. Success criteria must be written before testing
If targets are defined after examining test results, failed conditions can easily become acceptable. For example, simply saying "let's detect 99% of defects" is incomplete: which defect class, what sample size, what confidence level, within which limits, and using which verification method? These details must be clear in the pilot specification.
A good set of targets has four dimensions: quality, capacity, reliability, and operability. Quality is measured by critical defect detection and the false reject rate. Capacity is measured by latency at line speed, lost frames, and timely operation of the reject mechanism. Reliability is assessed through restarts, disconnections, and extended operation. Operability means that an operator can understand an alarm and intervene correctly.
A target may not satisfy everyone at once. A lower threshold may achieve a higher defect detection rate but reject more good products. This business trade-off should be discussed with quality, production, and management teams at the start of the project; the threshold should not be chosen solely from a software engineer's habit.
3. Performance cannot be measured without ground truth
Who decides whether a part is good or defective during the pilot? If the same operator assigns a label after seeing the model's result, measurement independence is weakened. Parts close to tolerance limits, in particular, may require expert assessment, reference measurements, or an agreed decision procedure.
The image model's performance cannot be evaluated separately from errors in the reference labels. For a system measuring scratch length, comparison with a microscope or another calibrated instrument may be useful; however, the reference instrument's uncertainty must also be considered. Samples with disputed labels should be investigated in separate records rather than resolved through an arbitrary majority vote.
If differences between operators matter, it is appropriate to have several people inspect the same part, without showing the model's result whenever possible. This reveals both the limitations of the gold-standard creation process and the possibility that some cases later marked as model "errors" actually involve reference uncertainty.
4. How should test samples be selected?
Pilot samples should not be selected only from easy good parts. Product types, material batches, machine numbers, shifts, surface treatments, defect severities, and borderline acceptable samples must be represented. In addition to random selection, a separate stress sample targeting known difficult cases can be used. However, because the two samples serve different purposes, merging their results into a single aggregate accuracy rate is misleading.
If critical defects are rare, relying solely on natural production flow may require a very long pilot. Safely prepared, verified defective specimens can be used to examine whether a defect is detectable. Even so, the proportion of these deliberately introduced samples must not be interpreted as actual defect prevalence.
Consecutive frames in video-based systems are not independent samples. If the same part appears in hundreds of frames, counting them as hundreds of distinct products artificially narrows the confidence interval. Clustering by product, batch, shift, or time window must be considered in sample-size calculations.
5. If 100 defects were detected, is that really 100%?
No. Even when the observed success is 100/100, uncertainty remains about the true detection probability in the population. Assuming independent Bernoulli trials with the same probability of success, the one-sided 95% Clopper–Pearson lower confidence bound for 100 successes and zero failures is 0,05^(1/100) or approximately %97,05. In this example, an observed score of 100% does not demonstrate with 95% confidence that true performance is at least 99%.
When no errors are observed, the one-sided 95% upper bound on the error probability is given by the expression 1−0.05^(1/n) and is often estimated using the 3/n approximation, which works well when n is sufficiently large. However, all these calculations assume independent and identically distributed observations. This assumption becomes weaker for highly similar samples from the same defective batch.
When planning a pilot, the answer to "how many samples are enough?" depends on the target confidence level and the minimum performance to be accepted. For example, demonstrating a detection probability of at least 99%, with no misses and a one-sided 95% confidence bound, requires approximately 299 independent defective samples, as shown by the relationship 0,05^(1/299) ≈ 0,9900 for this zero-failure case. This plan does not allow for observing failures, and its feasibility for actual field samples must be assessed separately.
Defect detection confidence bound calculator
For independent trials on defective parts, the one-sided 95% Clopper–Pearson lower confidence bound. This assumption may not hold for mixed classes, repeated images of the same part, or clustered data.
6. Defining the false reject rate correctly
In production, "false rejects" are reported in very different ways. What percentage of good products were rejected? What percentage of rejected products were actually good? These are not the same rate. The first concerns the false alarm rate among good products, while the second relates to the positive predictive value of a reject decision; they yield particularly different results when defect prevalence is low.
For example, if only 100 of 10,000 products are defective and the model detects 99 defects while incorrectly rejecting 198 good products, the defect detection rate is 99%, yet only one-third of the 297 parts marked for rejection are actually defective. Reinspection of those 198 good parts can affect line capacity. The statement "99% successful" alone does not reveal this operational burden.
Looking only at a part's scrap value is also insufficient when calculating the cost of false rejects. The operator's manual reinspection time, an offline inspection station, production losses from stop-start operation, and logistical separation may add to the cost. Conversely, a missed critical defect can also affect customer returns, safety, and reputation.
7. Line speed, time window, and capacity testing
A decision arriving in time for the mechanical system matters as much as correct classification. If the reject mechanism is a known distance from the camera and the conveyor speed is known, a rough decision window can be calculated. However, the distance between sensor and reject point, the product's physical length, PLC cycle, actuator delay, and speed fluctuations must be considered together.
The test report should include the distribution of end-to-end latency rather than average inference time. Percentiles such as p95 and p99 are useful for understanding rare slow events, but do not by themselves guarantee the worst possible latency. The latency sampling duration, load profile, and point at which the system is considered "ready" should also be recorded.
Pilot load testing should include congested flows as well as normal production. Even when the model performs well, camera buffers filling up or blocking MES writes may limit line capacity. The vision processing workload, logging, and human review queue should be tracked separately.
8. Shifts, environment, and long-term stability
The same machine may produce different results on morning and night shifts. Examples include sunlight entering when a nearby door opens, a metal surface changing after cleaning, or the camera angle shifting slightly during maintenance. If environmental variables are present, the pilot must not be reduced to a single fixed condition.
Long-term stability testing monitors temperature, lighting level, focus sharpness, frame loss, system memory, and decision times. Even if no errors appear, questions must be answered: did error-log collection work, are alarms recorded, and does the same configuration load after a restart? A silent alarm system does not mean a sound production system.
Operator acceptance must be evaluated separately. Can a shift supervisor understand an alarm and take the correct action? Can an unauthorized user change a sensitive threshold? Are the steps for switching to manual quality control clear? These elements are as necessary for production as purely technical performance.
9. Deciding whether to enter production based on pilot results
At the end of the pilot, prepare a condition-specific evidence package rather than present a single percentage. Critical defects, false rejects, line latency, failure scenarios, and operator actions are shown under separate headings. If a criterion is not met, the report should include its impact, an interim measure, and a retest plan.
"Conditional production" is reasonable in some applications. For example, if a particular defect family has not yet been tested sufficiently, manual inspection can continue for that product type. If the risk is high, however, the system may need to be corrected and undergo acceptance again rather than be commissioned conditionally. This decision belongs not only to the technical team but also to the relevant quality and production leads.
One of the most valuable outputs of a successful pilot is the daily operating plan: who is responsible for alarms, where will data be recorded, how often will maintenance be performed, and which tests will be repeated if the model changes? If these questions remain unresolved, the pilot's short-term success may not translate into sustained performance.
10. An example results table for production acceptance
| Requirement | Example target | Evidence type | Note |
|---|---|---|---|
| Critical crack detection | Defined according to project risk | Verified defective part test | Confidence bound reported |
| False rejects of good parts | Defined according to production cost | Pilot flow at actual prevalence | Broken down by batch |
| End-to-end decision latency | Within the physical reject window | Timestamp + actuator trace | Model time alone is not used |
| Stability during extended operation | Approved shift/load scenario | Logs, frame loss, temperature | A defined test duration is required |
| Operator usability | Adequacy of training and procedures | Observation, scenario execution | Permissions and alarm clarity are tested |
11. How do we preregister the pilot's statistical design?
The samples to be tested, target error rate, confidence level, and decision criteria for a pilot study must be documented before results are seen. Otherwise, the team may be tempted to stop testing and declare success after good results on the first hundred samples, or to improve the report by adding more samples after a poor period. Such repeated looks and outcome-driven stopping can change the interpretation of the conventional confidence interval used. The pilot protocol must specify the sample size, data collection schedule, early stopping conditions, and analysis method.
If a "zero misses" target is chosen for critical defects, its operational rationale and the confidence bound achievable with the available sample count must be calculated. For n independent samples with no observed errors, the one-sided 95% lower bound on success probability is given by 0.05^(1/n) and the required n rises rapidly for a very high target such as 99.5%. In that case, more comprehensive stress testing and monitoring after production launch may be needed in addition to collecting more samples. Statistics alone do not eliminate the critical risk associated with a small sample.
12. Why does precision change when defect prevalence changes?
If the actual defect rate in production changes while recall and the false alarm rate among good products remain constant, the proportion of correct reject decisions changes. For example, with 1% prevalence, 99% recall, and a 2% false alarm rate among good products, approximately 99 TP, 198 FP, and 1 FN are expected in 10,000 products; precision is 99/297 ≈ 33.3%. If prevalence rises to 10%, the same rates yield approximately 990 TP and 180 FP; precision rises to 84.6%. The model algorithm remains unchanged, but the reliability of a reject decision in the workflow is different.
The pilot report must therefore do more than state "precision X%." Under which product mix, defect prevalence, and test sampling policy was this value calculated? If the pilot deliberately increases the number of defective parts, measured precision may not represent actual production prevalence. The prevalence estimate should be used separately in production cost analysis, and its uncertainty should be stated.
13. The difference between product-based and frame-based sampling
If a single metal part on a conveyor appears in five camera frames, it is incorrect to count all five images as independent defective products. Because the defect's shape and lighting behavior are highly similar, the model may make five correct or incorrect decisions for the same reason. The effective sample size is smaller than the number of recorded frames. Assuming that one hundred parts from the same batch are one hundred independent events may also be overly optimistic because they share material and process conditions.
Sampling should be designed around product identity. A single system decision and reference result are created for each product; if multiple cameras or frames are used, how they are combined into the product decision is explained. If batch clustering is important, confidence intervals may require methods other than the independent Bernoulli formula. This distinction is particularly vital for performance claims of 99% or more; artificially narrowed confidence intervals can lead to premature acceptance.
14. Reporting natural production flow and controlled stress testing separately
Most parts in a pilot's normal production flow may be good. This flow is realistic for measuring false alarms and operational workload, but may be insufficient to demonstrate detection performance for rare critical defects. Alongside it, targeted stress testing can use verified scratch, crack, or missing-component samples. The stress set should include different severities of the same defect and different lighting and positioning conditions, but must not be described as representing natural prevalence.
Preparing two results tables is more transparent. The first includes automatic rejects, manual review, cycle time, and verified outcomes in natural production; the second includes detection rates by critical defect severity. A third, smaller table shows cases that are unknown or cannot yet be reliably labeled. This allows the reader to see production costs and the model's physical limitations separately.
15. Calculating false rejects and the manual review queue
For example, suppose a line processes 120 parts per minute and the false reject rate among good products is 2%. If almost all parts are good, approximately 2.4 false alarms per minute are expected. If each false alarm requires 20 seconds of manual review, false alarms alone generate 48 seconds of work per minute. This calculation excludes inspection of genuinely defective parts, product separation, and the operator's other duties. One operator's spare capacity cannot simply be assumed.
If review capacity cannot keep pace with production, the queue may grow over time. Even when average arrival and service times are equal, fluctuations in arrivals can cause waiting. Manual review should therefore be designed as a second station requiring capacity, not as a basket at the equipment output. The pilot is an appropriate time to measure this queue on site under realistic shift conditions.
16. Testing the measurement system's own uncertainty
Suppose a dimensional quality check has a product acceptance limit of 20.00 ±0.10 mm. An image-based measurement system may repeatedly read 20.03 mm for the same part, but that does not prove the measurement is correct. Instrument bias, reference measurement uncertainty, and changes in part position must be examined together. Conventional Gage R&R principles help separate the effects of repeated measurements and, where appropriate, operators or setups.
If a substantial portion of uncertainty comes from the mechanical fixture, more model training may not resolve measurement precision. As perspective, focus, and working distance change, the pixel-to-millimeter relationship may change too. The pilot's purpose should be to observe these variables in practice and demonstrate suitability for tolerance decisions. Accepting parts very close to tolerance limits may require a separate decision policy.
17. Accurately stating the scope of a "no errors" result
The pilot must state which defects were never encountered, as well as how many defective products were not missed. For example, a system tested only on wide cracks cannot be claimed to detect 0.1 mm hairline cracks with the same probability. Likewise, visual detection that succeeds on clean surfaces is not thereby verified for oily or oxidized surfaces. A coverage table should be prepared for every critical defect family.
Rather than "Defective 100/100," a success report is more informative if it says "100 successes on 100 independent parts of product A with reference-verified wide cracks, using camera profile B." This wording may seem longer, but it describes the actual evidence. It also makes clear which result must be retested when production conditions change.
18. How should data be separated if changes are made during the pilot?
If the lens angle, model threshold, or lighting profile changes midway through the pilot, results before and after the change must not be combined as though they came from a single experiment. Every change is recorded as a configuration event, and analysis windows are separated accordingly. For example, if the threshold was 0.60 for the first three shifts and 0.45 for the next two, the resulting false reject rate cannot be reported as a single "system performance" value.
This discipline is needed not to slow change management, but to preserve cause and effect. Adjustments are normal during the pilot's exploratory stage; however, when the final acceptance run begins, the configuration must be frozen and the approved test protocol followed. At the end of the acceptance trial, there must be a single unambiguous answer to which system version was measured.
19. Making operator acceptance measurable
A note saying "the operator liked it" is weak evidence of operational readiness. A more meaningful evaluation can define a few realistic tasks: finding an alarm's cause on screen, correctly recording a part flagged as a false reject, preventing an unauthorized threshold change, and following the procedure for switching to manual quality control. Correct completion, elapsed time, and any critical errors can be recorded for each task.
User interface evaluation should be conducted alongside supervised training. It cannot be assumed that another shift team that will use the application later will achieve the same result without attending training. When the pilot ends, training notes, an alarm glossary, and a responsibility matrix should be handed over to the production team. This stage is not a minor software detail; it is the final link in the quality decision chain.
20. Demonstrating the pilot's economic value
Acceptance of a machine vision project depends on business impact as well as technical success. Items such as reduced manual review time, rework cost, scrap, false rejects, customer returns, and production downtime can be calculated in understandable terms. However, it is not appropriate to show only the items that improved while ignoring new maintenance and software support costs. All calculations should use the same production volume and comparable operating periods.
For example, if the automated system requires a new review station because of false rejects, some of the time savings may be consumed there. Conversely, detecting a critical defect earlier can avoid expensive downstream processes. Benefits cannot be calculated from a single accuracy metric; they require a model that recognizes that different error types carry different business costs.
21. An example acceptance-rate calculation in pilot design
Suppose a pilot detects 497 of 500 independent defective parts and misses three. The observed recall has the value 497/500 = %99,4 in this example. This does not mean the true recall is exactly 99.4%; there is sampling uncertainty. A one-sided 95% lower confidence bound must be calculated, and the method used and independence assumption must be explicitly stated in the report. If the corporate target is a true recall of at least 99%, declaring a "pass" based only on the observed percentage may be misleading.
If 160 of 10,000 good parts in the same pilot were incorrectly rejected, the false alarm rate among good parts is 1.6%. This rate is assessed together with production cost and manual review capacity. However, if the supplier changed during testing, the data should be separated into product groups and the effects of the different conditions reported. Presenting one aggregate percentage is easy; explaining the conditions under which the system is reliable is more valuable.
22. A stopping rule for critical defects
Before the pilot begins, the question "under what circumstances will the trial be stopped immediately?" must be answered. For example, missing a specific defect that directly threatens product safety may require a review of the production line or inspection policy. Not every false reject requires the same level of intervention. Procedures for immediate assessment, retesting, and reference verification of critical defects must be clearly documented.
Defining a stopping rule in advance prevents later data from being cherry-picked to create a favorable impression. However, if the pilot was stopped early, statistical selection effects may change the standard confidence-interval interpretation of aggregate metrics. The final report must clearly explain how many samples were planned, how many had been tested when it stopped, and which condition was triggered.
23. Should the acceptance report show only the final percentage?
A comprehensive pilot report should show breakdowns such as product variant, station, shift, defect severity, and reference label source. For example, if critical class A has 300 samples and critical class B has 12, it is wrong to present the two classes' observed 100% success as though they had the same confidence level. Uncertainty for class B is much greater, and additional controlled testing or monitoring after production launch may be needed for that class.
The report must not hide failed samples either. Images of missed defects, physical conditions, operator comments, and the model version used can be examined. If errors systematically cluster around a material or position, a single overall recall value does not reflect the project's actual risk. Acceptance decisions should be made with limitations visible.
24. What acceptance approach can be used when very few defect samples are available?
On some production lines, a critical crack may not appear for months. In that case, expecting hundreds of defective parts from natural flow within a few weeks is unrealistic. Alternatives include retaining previously verified defective products, safely preparing controlled defect samples, obtaining data from other lines with appropriate permissions, and performing a separate reference inspection on the product. However, each has a different degree of similarity to the actual natural production population; they must be clearly distinguished in the report.
An insufficient sample cannot be remedied by writing "100 percent success." In some projects, it may be reasonable to grant conditional pilot acceptance within a narrow product or defect scope and reassess quality performance as new samples arrive. For applications with critical safety risks, however, this approach is not acceptable; approval from the relevant safety and quality authorities is required. The goal is not to conceal statistical uncertainty, but to make a production decision consistent with it.
25. Test sequences and product order can affect performance
Passing defective products consecutively in blocks may not represent the actual frequency of defects or system resource usage in production. Similarly, if all test parts come from the same metal batch, the model may only be suited to that batch's surface texture. The pilot plan should keep product order consistent with actual flow where possible and identify difficult conditions as a separate stress test.
In a system with multiple cameras and reject mechanisms, consecutive products may cause queues to build up. Repeatedly passing a single part through at long intervals will not reveal this problem. The pilot must therefore test not just the model's classification decision, but also product identity matching, resource usage, and physical reject timing at peak line speed. Until these conditions are met, high accuracy does not show that the production system is ready.
Frequently asked questions
Why is a pilot needed if the model's test accuracy is high?
Because the camera, lens, lighting, triggering, network, PLC, and operators introduce additional error sources beyond the model. The test set alone does not cover this integrated system behavior.
Can a pilot be completed with thousands of good products and only a few defective ones?
The false alarm rate among good products can be measured, but uncertainty about defect detection performance remains high. Rare defect classes may require verified targeted samples and a longer monitoring plan.
Does missing no defects guarantee 100% detection?
No. Zero errors in a finite sample do not prove that the true error rate is zero. The confidence bound depends on sample size and independence assumptions.
Who should decide whether to enter production?
The technical lead should present the system's limitations and evidence; quality, production, safety, and business owner stakeholders should decide against the approved acceptance criteria.
Sources and technical references
Sources link to official institutional and project documentation. The diagrams and calculation examples were created for this article; they are not presented as measured results from a particular plant.
Publication note: No test or example value replaces the contract-specific acceptance specification or the plant's risk analysis. No code examples are included.