Some original image labels are retained; figure captions and explanations are provided in English.

PART IX · ENGINEERING DECISIONS

How Do You Choose the Right Image Processing Solution? An Engineering Decision Framework

The required production decision defines the problem before physical and timing constraints eliminate infeasible options. Optical changes, classical processing and learned models are compared with scoring matrices, Pareto trade-offs and controlled feasibility trials. Missing-screw and fill-level examples separate measured evidence from estimates, documenting risks, maintainability and conditions for revisiting the decision.

Article sections1. First define what the decision concerns2. Link success criteria to business outcomes before technical metrics3. Eliminate infeasible options first4. Broaden the solution space to generate alternatives5. How should a scoring matrix be constructed?6. The Pareto approach: do not expect one winner on every criterion7. Do not leave technical risks out of the assessment8. Distinguish measured values from predicted values9. How do you design a feasibility experiment?10. A decision record is a learning tool, not an administrative burden11. Prepare a decision memo rather than a single score12. Different approaches stand out in different scenarios13. The role of communication in senior engineering14. A short, practical checklist15. Example field decision: missing-screw inspection16. Example field decision: bottle fill level17. Distinguish measurement uncertainty from model uncertainty18. Decision logic works differently for high-risk products19. Calculate data collection costs at the outset of the decision20. Maintainability is a property of the method21. How do you run a repeatable decision meeting?22. Check whether the accuracy difference in a comparison is genuinely meaningful23. Establish end-to-end requirements traceability24. Reconciling decisions among multiple stakeholders25. A counterfactual check on technical decisions26. Define the triggers for reopening the decision at the outset27. What documentation is essential at handover?Frequently asked questionsSources and further reading
Standalone reading · 4,571 words · Interactive technical example

The fact that a scratch can be detected does not mean that the method detecting it is the right choice for the production line. A good solution works under real conditions, allows incorrect decisions to be managed, and can be sustained for years.

When a production manager requests a system to inspect scratches on the surfaces of machined metal parts, similar questions usually arise in the first meeting: Which camera should we buy? Will YOLO be enough? Can a model be trained with a few hundred examples? Yet the technical selection process should proceed in the opposite order. First, we need to understand the consequences of a missed defect, which surface variations are acceptable, the production speed, and how the inspection will be validated. Only then should the camera, lighting, algorithm, and computer enter the discussion.

Decision-making in vision system design is not about finding the highest accuracy score; it is about comparing multiple realistic solutions against measurable needs. Using a concrete quality control scenario, this guide discusses how to frame the decision, eliminate alternatives, manage uncertainties, and defend a technical recommendation.

1. First define what the decision concerns

What the decision concerns: the end-to-end system, not the model01Physical defect02Image acquisition03Algorithm04Product matching05Decision & rejectionExample systematic workflow • Must be adapted to actual project conditions
Figure 1. What the decision concerns: the end-to-end system, not the model. Explanatory diagram; not an actual experiment or facility measurement.

The engineering decision should concern not the "model" but the inspection system. A system consists of interdependent subprocesses: the product arriving at the station, the correct image being matched to the correct product, the defect being made visible, the decision being made, the rejection mechanism operating on time, and the result being stored traceably. If one link in this chain is unreliable, even the most successful model will not deliver the expected benefit.

For example, suppose the defect to be inspected is a fine scratch 0.15 mm wide. The sensor resolution may appear sufficient on paper. But if the scratch produces contrast only at certain lighting angles, the first investment may need to be an appropriate lighting arrangement rather than a larger GPU. At another station, if camera vibration blurs the image, mechanical stabilization rather than more training data will provide the solution. The scope of the technical decision must extend from visibility to the actuator.

The first decision record is a one-page problem statement: a description of the part to be inspected, unacceptable defects, acceptable surface variation, the physical dimensions of defects, product volume, working distance, production diversity, and the cost of false acceptance. Alongside these, a defect reference catalog agreed upon with the quality team should be prepared. The word "scratch" alone is not sufficiently clear; tolerances must be defined for characteristics such as length, width, depth, location, and functional impact.

2. Link success criteria to business outcomes before technical metrics

The success of a defect detection system may be determined by recall, the false rejection rate, or the rework burden. For a minor cosmetic scratch, the cost of false rejection may matter more, whereas a missed defect on a sealing surface can have severe consequences. Before comparing algorithms, error types therefore need to be mapped to their economic and operational consequences.

For example, suppose five out of every thousand products in a total of one hundred thousand are defective. If the model detects 98% of actual defects and falsely rejects 1% of good products, it will catch approximately 490 defects while also routing 995 good products for inspection. This workload may be acceptable for one business but bring a shift to a standstill at another. Recall alone does not explain this difference. Alongside the defect detection rate, the requirements document should specify how false alarms affect line capacity and what volume of manual review is manageable.

The same principle applies to timing. Saying "it runs at 30 FPS" does not prove that the rejection valve will act on the correct product. The total latency starting at the camera, together with its variability, must be calculated against the physical spacing between products. If the product identity is matched incorrectly, even a correct classification result may be applied to the wrong product. Validation must therefore cover event flow and timing integrity as well as software performance.

3. Eliminate infeasible options first

Mandatory-condition screening01Safety02Visibility03Cycle time04Integration05ScoringExample systematic workflow • Must be adapted to actual project conditions
Figure 1. Mandatory-condition screening. Explanatory diagram; not an actual experiment or facility measurement.

Before scoring alternatives, list the conditions that must be met. For example, operation at a speed that prevents operator intervention, a requirement that identity data remain inside the facility, compliance with a particular measurement tolerance, or a lack of physical space for camera installation can be elimination criteria. Do not compensate for these with soft scores. A solution that fails a mandatory condition should not remain a candidate, however well it scores in other areas.

This approach particularly reduces solution bias driven by AI hype. Of three options to be tried in the field, one may have low licensing costs but depend on an ecosystem entirely unfamiliar to maintenance personnel; another may be the fastest but leave no room for the optical setup. In such cases, proceeding with candidates that pass the technical qualification stage makes the comparison more honest. Accept that a negative outcome is also a decision outcome: sometimes inspection is physically impossible at the current point in production, and the station must be relocated.

4. Broaden the solution space to generate alternatives

Options for image processing problems are not limited to classification, detection, and segmentation models. Simple thresholding under controlled lighting, stereo measurement, a mechanical fixture, a contact sensor, or a small change in product design can sometimes offer a much more suitable solution. It is good practice to include at least one non-learning baseline solution in the comparison. If the baseline meets the requirements, the added value of choosing a complex architecture must be demonstrated explicitly.

Turning this into a rigid rule of "optics first, AI later" would also be wrong. When product diversity is high and defect appearances vary, classical methods can quickly become brittle. Some defects can only be understood through relationships between parts; visual appearance alone is insufficient. Method selection must consider both the physical conditions we can improve and the variables that can be learned from data.

5. How should a scoring matrix be constructed?

Once candidate solutions have been verified to meet mandatory requirements, multicriteria scoring can be useful. Criteria may include defect detection capability, false alarms, cycle time, data requirements, installation cost, ease of maintenance, and robustness to change. Weight each criterion's importance according to the business's risk profile. First normalize the numbers to a common scale; explain in the document which observation supports a score of "5" for a criterion.

A weighted sum can be used as an example: Total score = sum of weight × criterion score. However, the result is not equivalent to the model's accuracy. If the scores combine tests, quotations, and engineering estimates, their confidence levels should also be recorded separately. For example, latency may have been measured in the field, while maintenance cost has only been assumed. Although the second item contributes to the total score, it increases uncertainty about the solution.

The danger of scoring is that poorly chosen weights can produce the desired outcome. If a small change in weight reverses the ranking of alternatives, perform sensitivity analysis rather than saying "the winner is clear." In that case, better evidence for the relevant criterion must be gathered, or priorities must be revisited with the decision owner. You can see the effect of this variability in the interactive matrix below.

Criteria to compare when selecting a solutionDefect detection95False rejection burden76Ease of maintenance70Installation time58Cost62Relative, illustrative values; not actual field measurements
Figure 1. Criteria to compare when selecting a solution. Explanatory diagram; not an actual experiment or facility measurement.

Interactive solution selection matrix

Adjust business priorities. Scores are examples/illustrative and do not replace field tests.

Classical method—
CNN—
Anomaly detection—
Segmentation—
Weights are renormalized. This tool cannot screen for mandatory conditions; physical, safety, and operational constraints must be verified first.

6. The Pareto approach: do not expect one winner on every criterion

In practice, it is common for a faster model to require a more expensive GPU, more precise segmentation to need more annotation, or an easier-to-maintain solution to miss some rare defects. If one candidate is better than or equal to another on every important criterion and clearly superior on at least one, the other candidate can be considered dominated. The Pareto frontier formed by the nondominated candidates shows the actual decision space.

Nevertheless, the Pareto frontier is not the decision itself. Production safety and cosmetic quality control do not share the same priorities. In some cases, the risk of error cannot even be traded off against performance and cost. For example, machine safety functions must not be designed by relying on the high accuracy score of a general-purpose image classification model; applicable safety standards and validated safety components must be the basis.

Cost–technical capability trade-offCost →Capability ↑Rule-basedCNNAnomaly detectionSegmentationHybridConceptual example; candidate positions are not measurement results
Figure 1. Cost–technical capability trade-off. Explanatory diagram; not an actual experiment or facility measurement.

7. Do not leave technical risks out of the assessment

A good decision explains not only expected performance, but also how much it may vary and how the system will behave when an error occurs. For example, contrast falling as a light source ages, a supplier ending SDK support, a product changing to a new surface treatment, and an operator selecting the wrong recipe are separate risks. Compressing all of them into "model drift may occur" hides the source of the problem.

A risk register can use fields such as likelihood, impact, ease of detection, and mitigation plan. However, do not interpret a risk score as an exact law of physics. The priority of an event that is unlikely but could stop production for days should not be determined solely by a multiplicative score. Supply chains, cybersecurity, spare-part availability, data protection, and in-house maintenance capability are also part of the system decision. The NIST AI RMF approach to mapping context, measuring, and managing risk provides a voluntary reference for structuring such questions.

Risk map: likelihood and impactLikelihood →Impact ↑LightingSDKCritical defect• Lighting aging• New product recipe• Critical defect• SDK support
Figure 1. Risk map: likelihood and impact. Explanatory diagram; not an actual experiment or facility measurement.

8. Distinguish measured values from predicted values

Making decisions without hiding uncertaintyDataMore lotsTimeTwo-shift testOwnerQuality + maintenance
Figure 1. Making decisions without hiding uncertainty. Explanatory diagram; not an actual experiment or facility measurement.

In engineering meetings, statements such as "the model runs in 20 ms," "three weeks of data will be enough," or "this lighting solution is stable" can quickly turn into established facts. It is useful to track every critical decision in three columns: verified finding, assumption, open question. This distinction reduces the risk of decisions that are difficult to reverse, particularly before purchasing.

For example, an inference time measured at 18 ms on reference hardware does not guarantee the same value on the facility's industrial computer. Synthetic defects generated through data augmentation may not represent the diversity of actual production defects. Two operators may interpret differently the boundary the customer calls "a defect." These uncertainties should not be hidden; a validation experiment, an owner, and a decision date should be defined for each.

Types of evidence before a decisionMeasuredField latency18–28 msAssumedMaintenance timeEstimateTo be validatedBorderline defectsNew pilot
Figure 1. Types of evidence before a decision. Explanatory diagram; not an actual experiment or facility measurement.

9. How do you design a feasibility experiment?

Before starting a large data collection project, conduct inexpensive tests that distinguish between alternatives. The first question is whether the defect reliably appears in the image. Different lighting angles, polarization, and exposure conditions can be tested on the same part. A reference result is then obtained using the simplest method. A complex model is justified only if it meaningfully improves performance under conditions that the baseline systematically misses.

The pilot sample should not consist of "easy" defects. Critical defect classes, parts at tolerance boundaries, different batches, shifts, product variants, and examples disputed by operators should be deliberately selected. Conditions in which the team setting up the test intervenes continuously must be distinguished from actual shift conditions. If pilot completion criteria are not defined at the outset, results tend to be interpreted in a way that confirms the project's direction.

Five stages of a feasibility experiment01Visibility02Baseline03Difficult examples04Real conditions05Decision memoExample systematic workflow • Must be adapted to actual project conditions
Figure 1. Five stages of a feasibility experiment. Explanatory diagram; not an actual experiment or facility measurement.

10. A decision record is a learning tool, not an administrative burden

One strong habit of a senior engineer is leaving decisions explainable in retrospect. A short decision record should answer these questions: What problem are we solving? Which alternatives did we evaluate? Which did we eliminate, and on what evidence? What assumptions did we make? Under what circumstances will we reopen the decision? This record allows a new engineer joining the system six months later to understand what was done and why.

A decision record is not limited to the model version. Lens replacement, camera relocation, PLC bit mapping, lighting angle, labeling rules, threshold settings, and manual review procedures can also change system behavior. When problems arise in production, these records shorten troubleshooting time and prevent the same discussion from recurring. The purpose of documentation is not to bury everyone in forms, but to prevent the knowledge behind the decision from being lost.

Minimum components of a decision recordDecisionSelected methodEvidenceTest under identical conditionsLimitationNew coating risk
Figure 1. Minimum components of a decision record. Explanatory diagram; not an actual experiment or facility measurement.

11. Prepare a decision memo rather than a single score

The output of solution selection should include a clear recommendation as well as a model ranking: "In the first stage, a pilot should use dark-field lighting and classical thresholding; if failure on defects at tolerance boundaries is demonstrated, anomaly detection should be introduced in the second stage." A recommendation written this way both avoids unnecessary complexity and offers an alternative path.

A good decision memo connects the expected benefit, the design's limitations, and the tests to be performed. For example, instead of saying "the target is 99% recall," specify which defect classes, shift conditions, and confidence level the target applies to. There should be a planned checkpoint for revisiting the decision after the pilot. Rejecting a solution is also a legitimate outcome; in some projects, the best engineering decision is not to install the proposed camera station.

12. Different approaches stand out in different scenarios

A rule-based method is often a strong candidate for checking whether a hole is present on a part with a fixed position, fixed lighting, and unchanging geometry. For a line with many product families and shape changes, the flexibility of deep learning may be more valuable. Anomaly detection may be worth investigating in an application where defect examples are almost nonexistent and normal variation can be represented. When dimensional tolerances reach the micrometer scale, a metrology-based design may be required instead of 2D classification.

None of these examples is a universal recipe. The simplicity of a rule-based approach does not mean it is more reliable in every situation; nor does the flexibility of deep learning eliminate physical measurement uncertainty. Selection requires considering defect visibility, decision explainability, physical variables, data cost, and safe behavior in the event of a failure together.

Method suitability by scenario (illustrative)Fixed geometry82Many product variants72Scarce defect data65High metrology requirements91Relative, illustrative values; not actual field measurements
Figure 1. Method suitability by scenario (illustrative). Explanatory diagram; not an actual experiment or facility measurement.

13. The role of communication in senior engineering

A technically sound decision may not be implemented unless it is communicated clearly to the right people. The quality team wants to understand the defect boundary, maintenance wants accessible components, automation wants signal timing, IT wants network and security requirements, and management wants the return on investment. Rather than overwhelming everyone with every detail in the same presentation, first communicate the decision's impact on the business, then share each team's own validation questions.

It is also important to state the degree of certainty in a recommendation. Saying "discriminability has been demonstrated under laboratory conditions; validation across shifts and new product batches remains incomplete" is more trustworthy communication than "this method will definitely work." Technical uncertainty then becomes a manageable work item rather than a weakness. Senior engineering makes the location of uncertainty visible rather than covering it up.

14. A short, practical checklist

Before leaving a solution selection meeting, you should be able to answer these questions: Is there a shared physical definition of the defect? Is it distinguishable in the image? Are the costs of false acceptance and false rejection known? Have cycle time and product matching been tested? Were alternatives compared under identical conditions? Which scores are measurements, and which are assumptions? Who owns the critical risks? Is there a clear path for maintenance and revalidation? Have the criteria for stopping or expanding the pilot been defined?

If some of these questions remain unanswered, filling the evidence gaps is more valuable than finalizing the decision itself. Choosing the latest model without sufficient evidence may merely turn technical uncertainty into expensive hardware and a maintenance burden. In contrast, the right engineering solution is one whose rationale for selection, potential failure conditions, and validation approach are known.

15. Example field decision: missing-screw inspection

Suppose we want to check whether one of six screws is missing at an assembly station. The parts occupy fixed positions in a fixture, and the screws are imaged on the same surface under the same lighting. Under these conditions, the first candidate is a simple rule that looks for contrast or geometric structure at the expected screw locations. This is because the problem is constrained and the physical positions are known in advance. This method may offer a short cycle time and low data requirements. However, it can become brittle if screws appear at different angles, the shiny surface varies with position, or the product family expands.

The second candidate is object detection. If screw positions vary between products, the model may generalize from new examples. In return, this requires enough correctly labeled examples, versioning, and a retraining plan. The third candidate is to reduce this variability first by changing the fixture or camera arrangement. Before asking "which model is better?", test whether the product can be presented more repeatably at the inspection point.

When making the decision, all three approaches must be compared on the same product family, the same loose/missing-screw examples, and the same line speed. Vibration and oil buildup encountered in normal production must also be represented in the dataset. It is particularly important to separate two decisions: a screw's presence and whether it is sufficiently tightened are not the same visual problem. Imaging does not automatically replace mechanical torque verification. If this distinction in scope is not made early, the project may address the wrong business objective even if it works technically.

16. Example field decision: bottle fill level

Detecting the fill level in transparent bottles may look as simple as finding a single line visible in front of the camera. In reality, the color of the liquid, the curvature of the glass, foam, water droplets, and the bottle's manufacturing tolerance change visibility. One solution is to emphasize the liquid–air boundary with backlighting and use line detection. A second is to locate the liquid region through segmentation. A third is to use weight or flow measurement rather than optics as a verification sensor.

The first alternative may be economical, but must be tested with foam and different liquid colors. The second may appear more flexible, but incorrect segmentation is no substitute for level measurement in millimeters. The third provides evidence independent of the image; however, its relationship to the process characteristic actually being inspected must be evaluated. Ranking the methods is not meaningful without the fill tolerance accepted by the quality team, mechanical repeatability, and measurement system analysis.

This example offers a different lesson: sometimes the best image processing solution means no longer using image processing as the sole basis for decisions. Dual verification may not always be necessary or economical. However, if measurement uncertainty has serious consequences, the contribution of a second sensor should be tested separately in the pilot. Remember that the alternative sensor also brings its own calibration and maintenance burden.

17. Distinguish measurement uncertainty from model uncertainty

Two different types of uncertainty can become confused in defect measurement. In the first, the image acquisition system produces different pixel boundaries when it captures the same physical defect repeatedly. Causes may include optical distortion, mechanical motion, focus, exposure, or operator positioning error. In the second, the model is uncertain when predicting which class the current image belongs to. The first problem concerns physical metrology and image quality; the second is more closely related to the learning system and data representation.

Do not compress these two areas into a single "accuracy" score in the decision matrix. If there is a measurable dimensional defect, repeatability and measurement uncertainty must be separate acceptance criteria. Even if a classification model appears more stable, it should not be assumed suitable for physical measurement. As fine scratches approach subpixel widths, the mere fact that segmentation produces a thin mask does not show that the actual width is measured reliably.

At the start of a project, it is useful to establish measurement limits using reference gauges, gold-standard samples, and independent quality assessment. This clarifies which performance is expected from the algorithm and which from the optics during model selection. This distinction prevents unnecessary model complexity, especially as tolerances tighten.

18. Decision logic works differently for high-risk products

A cosmetic scratch and a crack on a sealing surface may be the same type of visual defect, but their impacts are not equal. If missing a critical defect entails high costs or safety risks, the system's acceptance thresholds, safe failure behavior, and independent validation must be designed differently. High average accuracy is not sufficient evidence for rare critical failure types. The number and diversity of critical defect examples in the test must be reported explicitly.

Although some inspections concern product safety, not every visual quality control application is a safety system. If a camera or model is intended to implement a safety-related function, the relevant machine safety standards, fail-safe principles, and independent validation requirements must be addressed by a specialist team. A model achieving 99.9% accuracy does not automatically meet these obligations.

For this reason, rather than simply adding a "safety score" to the decision framework, I recommend making mandatory risk controls separate screening conditions. Critical risks cannot be offset by low cost or high FPS. A solution should enter the cost and maintenance comparison only after meeting these conditions.

19. Calculate data collection costs at the outset of the decision

Considering only the training cost of a supervised model is incomplete. In production processes where defective examples are naturally rare, collecting enough labeled data can take months. By contrast, images of normal products are plentiful. In such cases, anomaly detection may be worth investigating; however, capturing the diversity of normal data is a task in its own right. A new lighting condition or product surface can disrupt the normal distribution.

Data costs are not limited to annotation hours: products must be collected traceably, physical defects verified, disagreements among experts resolved, different batches represented, and the test set kept independent. Especially when false rejection and false acceptance have different costs, labeling priorities can be set accordingly. A more expensive verification procedure for critical defect examples may make economic sense.

Rather than general statements such as "this model needs 10,000 images," the decision memo should specify which defect subtypes, how many independent parts, and which production conditions require examples. Numbers alone do not represent data quality. This connects method selection to an actual data collection plan.

20. Maintainability is a property of the method

The field team must know not only the current model's results, but also which calibration to repeat after replacing the lighting driver, how to recognize a disturbed camera position, and what to do when a new product arrives. Even if it performs well in theory, a system requiring the development team to access the facility continuously can create substantial operational dependency. Conversely, a complex model can be made more sustainable with strong MLOps and testing infrastructure.

Maintenance capability is not measured simply by asking "are personnel available?" Responsibility, documentation, access permissions, software versions, spare parts, data retention, and incident response must be considered together. Even if an off-the-shelf product has a support contract, response times and warranty coverage must be checked. For an in-house system, concentration of essential knowledge in one person should be reduced.

The basis for the maintenance score in the solution matrix must therefore be concrete: for example, the time needed for revalidation after replacing a lighting module, the expertise required to update the model, and the recovery time from past failures. A hypothetical "easy maintenance" score does not replace an actual service level.

21. How do you run a repeatable decision meeting?

It is useful to begin a solution selection meeting with a shared evidence package rather than presentations. The package could put the problem and mandatory conditions on the first page, test summaries for alternatives on the second, costs and risks on the third, and open assumptions on the last. This prevents participants from spending the first five minutes debating model names. Disagreements become focused on concrete criteria.

For every criterion in the meeting, ask "where did this number come from?" For example, if GPU cost comes from a current supplier quotation, latency from a field measurement, and data collection time from an estimate, they should not be treated as equally certain. If two estimates conflict, record the range and a validation plan. A good decision meeting does not hide uncertainty; it identifies which uncertainties could change the ranking of alternatives.

The conclusion should record not only the preferred method, but also why the others were eliminated and under what conditions they would be reconsidered. This record preserves institutional memory as products and personnel change. The quality of a senior engineer's decisions is demonstrated not by the solution they advocate most loudly, but by making the evidence and limitations visible.

22. Check whether the accuracy difference in a comparison is genuinely meaningful

Two methods may have shown defect detection rates of 98.1% and 98.4% on the same test set. Before assuming this small difference is technically important, examine how many independent defective products were used and which conditions the examples came from. Hundreds of similar images taken from just a few physical parts do not increase the number of independent observations. Also, if the difference comes only from easy defects, there may be no gain for critical defects.

The errors of models compared on the same products are dependent; placing aggregate rates side by side does not convey all the information. It is possible to show which products both methods missed and which received a correct decision from only one method. This paired analysis reveals whether gains are concentrated in particular product families or lighting conditions. Confidence intervals and test uncertainty should be included in the decision memo. Choosing a solution that costs a few additional milliseconds in production is justified when the difference is stable and valuable to the business.

Therefore, do not immediately turn "model A achieved a higher score" into a purchasing decision. If the observed difference is small and uncertainty is wide, collecting new samples or running the methods in a parallel pilot may be a better decision. Senior engineering sometimes requires postponing a claim of certainty.

23. Establish end-to-end requirements traceability

A lightweight traceability table may be enough to link requirements to design and testing. For example, the requirement "critical cracks must be detected with at least 99% sensitivity" should be paired with the sample set to be used, the metric to be measured, and the acceptance decision. The requirement "products must not be mixed up" should be paired with a test verifying the trigger–frame–PLC identity chain. This makes it possible to see which part of the system meets which business requirement.

This approach is particularly useful when changes occur. If camera resolution changes, tests for the relevant defect dimensions and measurement tolerances must be rerun, not just the image quality test. If the PLC protocol changes, retraining the model may not be necessary, but product matching and timeout tests are required again. Traceability helps identify potentially affected behaviors rather than blindly running every test after every change.

There is no need to turn such a table into an excessively complex system embedded in software and documentation. Even a few critical requirements, when properly traced, make a substantial difference to project handover and subsequent maintenance. The aim is for traceability to support decision-making.

24. Reconciling decisions among multiple stakeholders

While the quality team may want to bring the risk of false acceptance close to zero, the production team may worry about lost capacity from excessive false rejection. Finance may prefer a low initial investment, while maintenance may prefer standard components. None is automatically wrong; their criteria differ. A technical decision framework should not make these different expectations invisible behind a single model score.

First define the mandatory quality limits. Then compare options within those limits in terms of operating cost and maintenance. This prevents economic advantage from becoming a trade-off that justifies missing critical defects. Where safety and legal compliance requirements apply, approval from the responsible specialists must also be sought.

At the end of the decision meeting, explicitly record who accepted the solution, who will manage each risk, and which event will trigger reassessment. This gives the technical decision organizational ownership and reduces gaps in responsibility after the system is commissioned.

25. A counterfactual check on technical decisions

A method appearing successful does not, by itself, explain why it should be selected. The stronger comparative question is: What would have happened if this method had not been selected? For example, if a CNN improves defect detection, investigate whether the same gain could be achieved with better lighting, better sampling, or a simpler threshold. Unless the alternative solution is checked, the additional contribution of the complex model cannot be demonstrated clearly.

Counterfactual thinking is useful not only in model selection but also in the business case. If the inspection system is not installed, will existing quality control processes remain unchanged, or will an already planned process improvement reduce the defect rate anyway? Crediting the same savings to two projects can produce a poor investment decision. This is why the technical and financial teams should prepare a shared assumptions table.

An ideal comparison does not mean allocating equal engineering effort to every method. Each candidate should receive a reasonable opportunity for setup and optimization, but the final test must use the same criteria. Preventing the criticism that "the baseline was deliberately left weak" makes it easier to trust the method's genuine superiority later.

26. Define the triggers for reopening the decision at the outset

A system may be the right solution under the conditions in which it is selected today, but the production line may not remain unchanged for years. A new product family, different surface treatment, higher conveyor speed, new quality tolerance, or a change in camera supply can invalidate the original assumptions. The decision record should state which of these conditions would require a renewed feasibility study. Changes can then be managed deliberately rather than arbitrarily.

For example, if the quality threshold drops from 0.2 mm to 0.1 mm, the adequacy of the same camera resolution must be reassessed. If product speed doubles, less time is available for image acquisition and the rejection command. The false alarm burden accepted initially may become unmanageable at the new capacity. The fact that the system still starts up and produces images does not mean it continues to meet the requirements.

Reopening a decision should be seen as part of a defined lifecycle, not as a failure. A strong engineering decision defines not only what to select today, but also the evidence on which it will be reassessed in the future.

27. What documentation is essential at handover?

A concise installation and acceptance package must be prepared to implement the technical decision. It should include the selected camera and lens, a lighting geometry drawing, the product's position in the field of view, a critical defect gallery, algorithm and configuration versions, the source of test data, the threshold decision, and the PLC interface. If different versions of the same information exist in different files, having more documents becomes less useful.

Short procedures should answer "what must I revalidate if the camera changes?" for maintenance, "what should I do if a new defect limit is introduced?" for quality, and "how should I route products during a failure?" for production. This prevents the decision from depending on the development team's memory. A sound handover package does not merely deliver the most successful model; it makes the system reproducible and auditable.

Frequently asked questions

Is deep learning always better than classical image processing?

No. With fixed geometry and controlled lighting, simple methods can offer lower latency and maintenance costs. As product and defect diversity increase, the advantage of learning-based models may grow. The final decision should be based on independent field testing.

Is a scoring matrix objective?

Scoring makes the rationale for a decision transparent; however, weights, scoring scales, and data quality involve human choices. Sensitivity analysis and a distinction between measurement and assumption are therefore necessary.

Should the camera or the model be selected first in a project?

Defect visibility, field of view, speed, and physical constraints must first be understood. Because camera–lens–lighting design and the solution method influence each other, selection is often iterative.

Under what conditions should a pilot be stopped?

If a mandatory condition such as safety, critical false acceptance, physical visibility, or cycle time is not met, the pilot's scope must be reassessed. Success conditions must have been defined in advance.

What is a senior engineer's most important output?

Not code or a model alone, but verifiable requirements, a justified solution choice, an uncertainty and risk register, acceptance criteria, and a sustainable operating plan.

Sources and further reading

The numerical examples and decision scores in this article are illustrative scenarios prepared for educational purposes; they are not measurements from an actual facility.