Article sections
1. Start the calculation with a comparison scenario2. Visible and hidden components of the initial investment cost3. TCO: the lifetime bill, not the device price4. False acceptance and false rejection costs must be kept separate5. Which approach is right for calculating ROI?6. Payback period and net present value answer different questions7. Decision tool: vary production volume and error rates8. Build vs. Buy: an off-the-shelf system or custom software?9. Why is sensitivity analysis more valuable than a single estimate?10. The cost of failures, maintenance, and system downtime11. Scaling: is the right solution for one line also right for ten?12. Link economic benefits to experiments13. The most common economic calculation errors14. Who should own the investment decision?15. How do you compare three bids in an example?16. How do you price licensing and vendor lock-in?17. What happens when a camera or GPU reaches the end of its life?18. Separate price fluctuations from the technical decision19. Linking the financial model to acceptance testing20. Sensitivity example: what if volume is halved?21. An example of transferring production data into the economic model22. Do not confuse operating benefits with accounting effects23. Recalculate costs when moving to the next production line24. A risk reserve is not the same as an expected cost25. Establish realistic lower and upper bounds for incorrect-decision costs26. Which four numbers should an investment presentation highlight?Frequently asked questionsSources and further readingChoosing the cheapest camera does not make a project low-cost. The real cost extends from installation and testing to incorrect decisions, downtime during shifts, and maintenance needs in the fifth year.
Imagine receiving two bids for quality control automation. The first has an initial price of TL 900 thousand, the second TL 1.4 million. At first glance, the choice seems obvious. But if the lower-priced solution requires an extra three hours of manual inspection every day, causes several maintenance shutdowns a year, or needs further development to support a new product variant, the total cost picture changes. Basing an investment decision solely on the purchase amount leaves the operational side of the system invisible.
In this guide, return on investment (ROI), total cost of ownership (TCO), cash flow, and the choice between an off-the-shelf solution and custom development will be assessed as a whole. The examples will be illustrative; we will not present any number as a quotation or performance result from a real facility. The main aim is to establish the right questions and an auditable calculation framework.
1. Start the calculation with a comparison scenario
Economic evaluation is the difference between two real situations: what will happen if the system is not installed, and what will change if it is? We can call this a baseline comparison. The statement "The new system will save TL 500 thousand a year" is a weak basis for a decision if it does not specify which workload, defect cost, or downtime will decrease. First, you need to understand the staff time, rework cost, customer returns, and production cycle associated with today's inspection process.
Sometimes the baseline is human inspection; sometimes it is an existing semi-automated station. With human inspection, remember that the operator's role may not disappear entirely. In a system where automated vision sorts products but an operator reinspects suspect parts, claiming full staffing savings is incorrect. Economic benefits should consist of observable items such as actual workload reductions, reduced scrap/rework, or increased production capacity.
The two scenarios should be compared under equal production volumes, product mixes, and quality conditions. If the new system provides higher speed, you should also check whether there is actual demand for the additional saleable capacity. Otherwise, a theoretical capacity increase does not translate directly into profit.
2. Visible and hidden components of the initial investment cost
The initial investment is not just the cost of the camera, lens, lighting, and computer. Mechanical structures, electrical cabinets, cabling, protective camera enclosures, trigger sensors, safety arrangements, PLC connections, installation, calibration, site acceptance tests, operator training, and spare parts should also be included in the initial cost. Licensing and installation fees for an off-the-shelf system must be visible, as must the labor for analysis, data collection, annotation, model development, and testing in custom development.
A common mistake is treating the existing engineering team's time as having zero cost because "we already pay their salaries." Yet time allocated to one project may delay other work or create a need for external support. The accounting approach is not the same as the financial decision-making approach; knowing the value of alternative uses changes the investment choice. You should also state the tax, shipping, and exchange-rate adjustment conditions used to calculate the purchase price.
When preparing an itemized estimate before investment, it is useful to specify an uncertainty range for each line. Mechanical integration may have a firm price; however, if it is not yet known whether a new product type will require an additional camera, that uncertainty should be reflected in the reserve budget. A reserve is a justified risk item, not an arbitrary percentage added to the calculation.
3. TCO: the lifetime bill, not the device price
Total Cost of Ownership is the sum of the costs incurred to acquire, operate, and maintain the system over the selected evaluation period and to decommission it at the end of its service life. This calculation may include energy consumption, annual licenses, remote support, lighting replacement, camera failures, calibration, storage, data labeling, security updates, and training for operating personnel.
Some items are fixed annual costs, while others depend on production volume. An annual maintenance contract for camera software may be fixed; reinspection due to false rejection increases as volume rises. Without this distinction, TCO calculated for a small facility can be misleading for a high-volume line. Thinking of costs in fixed, per-product, and failure-event-dependent categories makes it easier to construct scenarios.
TCO alone does not show economic benefit. If a more expensive system catches more defects or causes less downtime, it can still be a good investment despite a higher TCO. TCO is a denominator; to make the right decision, it should be evaluated alongside the benefits created and losses avoided.
4. False acceptance and false rejection costs must be kept separate
Accepting a defective part as good and rejecting a good part as defective cannot be recorded under the same cost item. False acceptance can lead to customer returns, rework, contractual penalties, or safety consequences. False rejection creates costs for scrap, unnecessary repairs, downtime, or manual reinspection. Some of these outcomes are directly measurable, while others are probabilistic and uncertain.
The expected cost of incorrect decisions can be approximated as number of false acceptances × unit cost of false acceptance + number of false rejections × unit cost of false rejection. However, this relies on the assumption that events are independent or their impacts are constant. Where a defect could trigger a mass recall, an average unit cost underrepresents tail risks. Critical defects should also be subjected to scenario analysis or stress testing.
Example: suppose that among 100,000 products there are 400 actual defects. The system catches 380 defects and, of the 99600 good parts, incorrectly flags 0.8%. In this case, 20 defects are missed and approximately 797 good parts are sent for inspection. If the cost of a missed defect is TL 5,000 and the false rejection/inspection cost is TL 80, the expected total burden is approximately TL 163,760. This is only a calculation example; the actual cost varies with the type of damage and the workflow.
5. Which approach is right for calculating ROI?
Different organizations use the term ROI differently, so the formula should be defined at the outset. For a simple project ROI, the net economic benefit obtained over the selected period can be divided by the investment cost. Net benefit is determined after deducting additional annual operating expenses and accounting for the initial investment. Some presentations call the "gross benefit / investment" ratio ROI without deducting the initial investment; do not treat the two results as equivalent.
Consider an illustrative three-year scenario: the initial investment is TL 1,200,000, the gross benefit generated each year is TL 600,000, and annual operating expenses are TL 100,000. The operating net benefit over three years is TL 1,500,000; after deducting the initial investment, the net gain is TL 300,000 and simple ROI is 25%. This calculation excludes discounting, tax, depreciation, and financing effects, but it is useful for an initial economic comparison of two investments.
Benefits may not be distributed evenly across years. Savings may be low in the first year because production is adapting, while maintenance costs from a new product variant may be high in the final year. A cash flow table should therefore accompany ROI. Where possible, use base, optimistic, and conservative scenarios.
6. Payback period and net present value answer different questions
The simple payback period shows when cumulative cash flow covers the initial investment. In the scenario above, annual net benefit is TL 500,000, so simple payback is approximately 2.4 years. However, this metric ignores benefits after payback and the time value of money. Summarizing an investment's return solely by its payback period is therefore limited.
Net present value (NPV) discounts future net cash flows to the present at an appropriate discount rate and deducts the initial investment. A simple expression is: NPV = −initial investment + Σ [net cash flow in year t / (1+r)^t]. The discount rate should consistently reflect the company's cost of capital, risks, and currency. Mixing nominal TL cash flows with a real discount rate is a common modeling error.
A positive NPV does not mean the project should be implemented under all circumstances. There are also safety, quality, and operational conditions to meet. Conversely, some investments with an apparently negative financial NPV may be unavoidable because of regulatory compliance or mandatory safety requirements. Such decisions are not merely economic optimization problems.
7. Decision tool: vary production volume and error rates
The calculator below combines the initial investment, annual fixed expenses, product volume, and expected net benefit per product. Results are shown as simple ROI, payback, and discounted cash flow. The assumptions are explicit: constant volume over five years, equal annual net benefit, and no residual value. In an actual investment case, depreciation, tax, inflation, exchange rates, and capacity changes should be modeled separately.
ROI, payback, and NPV calculator
A simple scenario with constant volume over the selected period. Amounts are interpreted in TL and production in units per year.
8. Build vs. Buy: an off-the-shelf system or custom software?
An off-the-shelf machine vision product may offer a prebuilt interface, integration components, maintenance infrastructure, and a support contract. Its disadvantages may include license dependence, limited customization, lock-in to specific hardware, or high additional charges when the product family changes. Custom development provides greater control; in return, responsibility for retaining system knowledge within the company, testing and security, and ongoing maintenance resources passes to the business.
Do not compare purchase prices alone when making the decision. For example, an off-the-shelf system may have a short integration time but high external service fees for each new defect type. Although a custom system may be expensive initially, reusing the same core architecture across five lines could reduce total cost. These are not guaranteed outcomes; they depend on product diversity, the organization's team, vendor support, and the time horizon.
A third option is a hybrid solution: mature industrial components for the camera and hardware, the company's own module for the decision algorithm, and standard protocols for integration. This approach does not resolve every risk, but it can shorten time to market while reducing some dependencies. Data ownership, software licensing, access to model files, and the right to change vendors should be clarified in the contract as part of the design.
9. Why is sensitivity analysis more valuable than a single estimate?
Which assumptions change an investment model's result the most? Defect frequency, the cost of a missed defect, additional maintenance staff, or license price increases? Sensitivity analysis shows how varying one variable within a reasonable range affects ROI or NPV. This lets you direct the data collection budget toward the most critical uncertainties.
For example, if half the economic benefit relies on reducing the burden of false rejection, making a highly accurate ROI estimate without carefully measuring the actual false rejection rate is risky. This metric needs to be measured using a reliable sample during the pilot. A low-volume scenario should also be examined to see whether the project still makes sense in a year when production volume falls.
10. The cost of failures, maintenance, and system downtime
On a production line, a machine vision system is a potential bottleneck as well as a quality station. Stopping the line, reverting to low-speed manual inspection, or diverting all products as suspect in the event of a failure produces different costs. Failure behavior should be defined in advance according to operating requirements; production and quality impacts should be evaluated separately for each scenario.
What matters is not just the average number of failures, but also the average recovery time per event and spare-part lead times. If delivery of a TL 200 lighting driver takes three weeks, the waiting cost caused by this small component may exceed the device price many times over. Keeping critical spares on site increases inventory costs but may improve availability. This trade-off should also be visible in the TCO calculation.
11. Scaling: is the right solution for one line also right for ten?
Some of the development effort for the first station can be reused on subsequent lines. However, lighting, PLC protocols, product mixes, and mechanical constraints may differ between lines. A simplistic calculation such as "divide the first line's cost by ten" is therefore often overly optimistic. Reusable software and labeling tools should be separated from line-specific optical and mechanical work.
Economies of scale do not come from purchase prices alone. Shared model versioning, monitoring dashboards, trained maintenance teams, and standardized acceptance tests can simplify multi-line operations. However, if a single central service makes decisions for all lines, a network failure has a greater impact; the design should balance centralized management with continuity of local operation.
12. Link economic benefits to experiments
In an engineering feasibility study, the financial and technical models should not exist like separate Excel files. For example, the false rejection rate measured in technical testing should be used directly as an assumption in the financial calculation; when a new threshold is selected, the cost calculation should change too. When the technical team says "recall has increased," finance should be able to see how much this changes the cost of missed defects.
The simplest way to establish this link is an assumptions table that references measurement sources: existing line data, pilot test measurements, vendor quotations, expert estimates, and risks not yet validated are marked separately. This lets the investment committee see where the figures come from and which remain uncertain. This discipline also ensures that financial expectations are updated when field performance declines.
13. The most common economic calculation errors
The first mistake is counting operator reductions as full savings without an actual change in capacity or staffing. The second is reducing error costs to scrap costs alone. The third is extrapolating the best pilot result to the entire production year. The fourth is ignoring maintenance, model updates, software licensing, and data storage expenses. The fifth is calculating NPV incorrectly by mixing nominal and real amounts.
A subtler mistake is calculating the benefits of different solutions using different product mixes. If the off-the-shelf system was tested on last month's easy products and the custom system on more challenging shift samples, a price/performance comparison between them is not fair. Establishing the technical comparison with the same test protocol is also a prerequisite for an economic comparison.
14. Who should own the investment decision?
No single team owns a visual quality control system. The quality team defines defect classes and tolerances, production defines volume and downtime costs, finance defines discounting and cash flow, maintenance defines the service plan, and IT defines data and security costs. The senior engineer's role is to bring these assumptions together in one consistent decision document.
An ROI result without strong technical validation may fail to materialize in the field; a technical gain with unclear financial effects can lead to unnecessary complexity. A sound investment decision provides a transparent calculation that both sides can check again. Ultimately, the goal should not be the "lowest price," but the best life-cycle value that meets the requirements.
15. How do you compare three bids in an example?
Suppose an off-the-shelf system, custom development, and a hybrid solution are proposed for the same product line. Their initial investments might be TL 1.5 million, TL 1.2 million, and TL 1.35 million, respectively. However, the off-the-shelf system may have higher annual licensing costs, custom development may require more maintenance staff, and the hybrid solution may split hardware integration between the two parties. Prices in this example are entirely illustrative; they must not be used in place of actual quotations.
The comparison needs to use the same five-year period and production volume. If one bid accounts for installation time in the first year while another assumes the system is ready immediately, the comparison is distorted. The date when the system begins operating effectively, annual software renewal expenses, and the maintenance service level should be entered into a common model. The same baseline data should also be used for the expected reduction in defective products shipped to customers.
The result is then three cash flow scenarios rather than a single total price. Which bid is better may change with the discount rate, production volume, and vendor dependence. The most meaningful output for management is a short sensitivity report showing the critical assumptions that change the ranking of results.
16. How do you price licensing and vendor lock-in?
Industrial vision software may be licensed per device, core, camera, station, or annual subscription. When evaluating the initial bid, check which usage rights the license provides, whether it works offline, the price of version updates, and which functions remain available if the service stops. Requiring continuous access to an external server for the software to operate may be an operational risk for some facilities.
Although licensing fees may appear low in custom development, you need to examine the licenses of the libraries, commercial model weights, and third-party components you use. Using open source does not always mean cost-free operation. Security patches, version incompatibilities, and hardware replacements create maintenance needs. Contractual provisions on ownership of data and model weights, export capabilities, and the transition procedure when changing vendors are important.
Rather than using a single abstract multiplier for vendor risk, evaluate the impact of service interruption, the availability of alternative products, and data migration costs in separate scenarios. These risks become particularly visible as the system's service life increases.
17. What happens when a camera or GPU reaches the end of its life?
A "five-year life" is frequently used in total cost of ownership calculations, but economic and technical lifetimes differ by component. A camera sensor may continue to function mechanically, yet a manufacturer's driver becoming incompatible with a new operating system may require reinvestment. Even if GPU performance remains sufficient, power consumption or changes in supported runtimes may affect total cost.
Spare-part management matters here. Keeping a spare camera of the same model can shorten potential downtime, but a stored device has a warranty period and a risk of technological obsolescence. Critical-part lead time, failure probability, and downtime cost should be evaluated together. Duplicating the entire system just to have a single spare part does not make sense in every case either.
At the end of its life, the system may also require dismantling, handover of calibration documentation, retention of data archives, and secure disposal. These do not have to become major investment items, but keeping them visible in the decision table makes the comparison more honest.
18. Separate price fluctuations from the technical decision
The costs of imported cameras, lenses, and GPUs can be affected by exchange rates. For long-term projects denominated in Turkish lira, a single cost estimate based on today's foreign-currency equivalent can be misleading. However, trying to predict future exchange rates with certainty is not appropriate either. Alternative scenarios can show the effects of exchange rates, payment schedules, and procurement lead times separately.
Consistency between real and nominal amounts is particularly important. If future TL expenses include inflation, the discount rate should be chosen on the same basis. Directly adding operating expenses increased for inflation to revenue expressed in today's purchasing power is mathematically inconsistent. Keep expenses on a single basis, either in real terms with inflation removed or in nominal terms.
The score of a technical alternative is not the same thing as an exchange-rate movement. For example, if camera A does not meet the measurement requirement, a lower price does not make it technically suitable. Price sensitivity is useful only among options that pass the mandatory conditions.
19. Linking the financial model to acceptance testing
If a substantial share of the economic benefit depends on reducing the false rejection rate, false rejection should receive particular attention in FAT/SAT and pilot testing. If the sample does not represent actual defect frequency and normal surface variation, the financial estimate is not defensible. After the pilot, the financial model's assumptions table should be updated with measured values, and the differences should be recorded.
Some benefits come from risk reduction that is difficult to measure directly. For example, the expected benefit of preventing a serious product recall may be large, but there may be insufficient data about its probability. In such cases, constructing different probability scenarios is more honest than presenting an expected value as a guaranteed gain. The financial report should state which gains have been realized and which are estimates.
A positive ROI is not the only economic acceptance criterion. The system must meet technical acceptance criteria, have a service-level plan, and have sustainable maintenance capacity. Without these conditions, realizing the calculated return also becomes uncertain.
20. Sensitivity example: what if volume is halved?
If most of the net benefit of an inspection system designed for 100,000 products per year comes from per-product savings, halving production volume may significantly extend the payback period. The effect is even greater when fixed maintenance expenses remain unchanged. A high-volume pilot's result should therefore not be considered independently of long-term sales projections.
For example, with a net benefit of TL 6 per product and annual fixed expenses of TL 100,000, annual net benefit at 100,000 products is TL 500,000. When volume falls to 50,000, this amount becomes TL 200,000. For an initial investment of TL 1.2 million, simple payback extends from 2.4 years to 6 years. The NPV result for the same investment depends on the chosen discount rate.
The lesson from these calculations is not to make estimates excessively detailed, but to measure accurately the few influential variables that change the investment decision. You can examine this sensitivity directly by changing the tool's annual volume field.
21. An example of transferring production data into the economic model
Suppose a quality control station processes 250,000 products per month. If some good products are mistakenly sent for reinspection in the current process, first measure how many of them actually consume additional operator time. Costing every false alarm as a scrapped product may overstate the amount. Some products are checked in a few seconds and returned to the line, some go to rework, and others are genuinely scrapped. These are different economic events.
Automated inspection may also improve defect capture and reduce customer returns. Historical defect and return records can be used to estimate this benefit, but the return rate and the source of each defect may not always have a one-to-one relationship. In this case, an uncertainty range is needed. Calculating every improvement using the most optimistic assumption and calling their sum "guaranteed savings" would be misleading.
The error rate measured in technical tests should be directly traceable in the financial table. If changing the model threshold changes the balance between false acceptance and false rejection, the annual cost calculation should be redone at the same time. This keeps technical and investment decisions grounded in the same reality.
22. Do not confuse operating benefits with accounting effects
When calculating an investment's profitability, cash flow and accounting profit can produce different results. Depreciation appears in the income statement as a non-cash expense, whereas the cash outflow for the initial investment occurs in the first year. Tax effects, financing interest, and the equipment's resale/residual value can be modeled separately. These details are absent from the simple educational tool, so its output is not equivalent to a professional financial model.
An increase in production capacity is not always a cash benefit either. If demand is fixed, additional capacity provides only flexibility or fault tolerance. If new customer orders can be fulfilled, the marginal revenue contribution can be calculated. However, capacity gains and labor savings must not count the same workload twice. The economic model's assumptions should make this distinction clear.
These distinctions matter not to complicate the engineering proposal, but to avoid giving management false certainty. The simple model provides initial decision screening; for a high-value investment decision, cash flow scenarios approved by the finance department should be used.
23. Recalculate costs when moving to the next production line
When the same system is transferred to another factory after a successful pilot, hardware standardization may reduce costs. However, lighting conditions, the product transport system, PLC infrastructure, and the maintenance team's capabilities may differ at the new facility. The false rejection and downtime rates calculated for the pilot line should not be assumed to apply unchanged.
To measure the reuse advantage technically, you can list which components are transferred unchanged: the image acquisition layer, model weights, configuration, labeling tool, monitoring screen, or test protocol. Each component may need revalidation at the new facility. Separating the first line's specific costs from replicable platform costs enables more realistic multi-facility bids.
The scaling decision does not depend solely on per-unit hardware discounts; whether maintenance responsibilities are handled centrally or locally also affects total cost. In particular, which team can respond to a failure and how quickly should be part of the financial model.
24. A risk reserve is not the same as an expected cost
A critical camera may have a low probability of failure, but line downtime can be very costly if a replacement is unavailable. The expected cost of such an event can be approximated by multiplying its probability by its impact. However, a single expected value does not fully describe the distribution of high-impact events. Stress scenarios and a business continuity plan are needed, especially for low-probability, large losses.
The uncertainty reserve in an investment proposal is a separate concept too. A reserve may be allocated for possible additional integration work, extra cabling, retesting, or unexpected procurement expenses. A reserve budget is not a definite expense; the conditions for using it if needed, and the responsible approval authority, should be specified. Adding an arbitrarily large reserve after separately including every potential risk cost may count the same risk twice.
The decision memo should show base cost, measured additional cost, probabilistic risk, and allocated reserves separately. This prevents the investment's expected cost from being confused with cash requirements in an adverse scenario.
25. Establish realistic lower and upper bounds for incorrect-decision costs
The cost of a defect reaching a customer may vary from one event to another. Some parts are easy to rework, while others may require a production-batch recall. Although using a single average figure in the financial model is practical initially, critical decisions require lower- and upper-bound scenarios. The low-cost scenario may assume that every missed defect is resolved with brief rework; the high-cost scenario may involve customer line downtime or batch-wide inspection.
To estimate this range, historical return records, customer contracts, and the quality team's incident reports should be reviewed together. Explicitly marking unknown costs as "estimates" is better than giving false certainty. If an appropriate probability cannot be assigned to each cost scenario, at least explain the conditions under which the cost increases.
During the technical pilot, priority should be given to measuring the metrics that most affect these scenarios. This takes the analysis beyond a purely financial table; it also shows which defect types merit investment in detection.
26. Which four numbers should an investment presentation highlight?
The first page presented to senior management may include the initial investment, verifiable annual net economic benefit, payback period, and adverse-scenario risk. These four numbers should be visible, but should not represent the decision on their own. The production volume, false alarm rate, and service expense assumptions behind them should be shown. If technical requirements are not met, an attractive ROI does not prove that the project is feasible.
Presenting conservative, base, and optimistic scenarios is more informative than bringing only one result to an investment meeting. In which scenario does the project exceed the payback limit, under what conditions is new hardware required, and which missing data should delay the decision? Making these points explicit distinguishes financial evaluation from a marketing presentation. A sound economic model exists to reveal unknowns, not hide them.
Frequently asked questions
What is the difference between ROI and TCO?
TCO shows the total cost burden, while ROI shows the net benefit obtained in return for the investment over the defined period. A higher TCO is not automatically bad if it provides greater benefits.
How many years should a machine vision system's payback period be?
There is no universal period. It is evaluated alongside production volume, uncertainty, the company's cost of capital, and strategic requirements.
Is a commercial product or custom development cheaper?
The initial price and life-cycle cost may differ. An off-the-shelf product may offer support advantages; a custom solution may be more flexible. Data ownership and vendor dependence should also be evaluated.
How is the economic value of a quality improvement calculated?
It is calculated by measuring the effects of avoided defective shipments, rework, false rejection, downtime, and capacity changes. Uncertain benefits should be marked as estimates and must not be double-counted.
What is the most important error in calculating NPV?
Common errors include inconsistent use of currency, inflation assumptions, and discount rates, as well as accidentally adding or deducting the initial investment twice in operating cash flow.
Sources and further reading
- AWS - Machine Learning Lens: Cost Optimization: cost evaluation across the entire ML life cycle.
- NIST - AI RMF: a general framework for evaluating benefits, risks, and trustworthiness.
- Google Research - Hidden Technical Debt in Machine Learning Systems: maintenance and dependency costs.
The amounts in the tables and tool are educational assumptions, not financial quotations or actual facility data.