← All posts

Matching Spare Parts Stock to Failure Forecasts in a Factory Twin

A predictive maintenance model usually answers one question well: which machine is likely to wear out next, and roughly when. Plant managers face a second question that the model rarely answers on its own. Which spare parts should be stocked, in what quantity, and at which site, so that a forecast leads to a repair that happens on time? Too few parts turn a warning into a week-long stoppage. Too many tie up money in bearings and drive belts that never leave the store. A factory digital twin, a real-time virtual copy of the plant, gives teams a place to test that link before the shop floor relies on it.

The setup starts with the structure of the assets. The twin holds each production line as a hierarchy: machines, their components, the bill of materials (the list of parts) for each component, and the supplier lead time for every part number. Live data from vibration sensors, motor current, temperature and cycle counters feeds a wear estimate for each component. The forecast for a gearbox is not a single date. It is a distribution that gives the probability of reaching its replacement threshold within the next two, four or eight weeks. These distributions are the input to the stock simulation.

With that input, the team can run what-if scenarios against the stock policy. Suppose a packaging line runs two shifts and a critical sealing bar has a six-week supplier lead time. The simulation can test what happens if the forecast moves ten days earlier, if a second line uses the same part, or if a supplier delivers only half the order. Each run records how often the line would wait for a part, how many emergency orders would be needed, and how much stock would sit unused at the end of the quarter. The goal is not one perfect number. It is a clear view of which parts are sensitive to forecast error and which can be kept in small quantities.

Two cautions matter in practice. First, a failure forecast is only as good as the labels behind it. If maintenance logs say only that a bearing was replaced, without recording how worn it was, the model learns the wrong pattern and the stock recommendation inherits the error. Second, the stock policy should be checked against actual replacements, not only predicted ones. A part swapped during a planned shutdown tells a different story from one that failed in service. A useful habit is to compare forecast-driven orders with what technicians actually used each month, and to adjust thresholds where the gap keeps repeating.

For operators, the practical gain is a short list instead of a crowded dashboard. Each week the twin can flag the few components where a stoppage before the next scheduled shutdown is likely and local stock is below the simulated safe level. Planners then decide whether to rush an order, borrow a part from another site, or move a planned service window earlier. TwinUp, which builds digital twins for industrial and urban settings, approaches this problem by linking asset data with logistics data so both teams work from one model. A forecast is worth something only when the right part is in the right place before the machine needs it.

All posts

Frequently asked

What is a factory digital twin for spare parts planning?

A factory digital twin for spare parts planning is a real-time virtual copy of a plant that links machines, components, parts lists and supplier lead times. It uses live sensor data to estimate wear and then tests whether the stock on hand can cover forecast failures. Teams use it to check stock policy before the shop floor depends on it.

Why is a predictive maintenance forecast not enough on its own?

A predictive maintenance model tells you which machine is likely to wear out and roughly when, but not whether the right part is available. If the part is missing, a warning can still become a week-long stoppage. Matching stock to the forecast closes the gap between prediction and an on-time repair.

How does a digital twin connect failure forecasts to stock levels?

The twin stores each line as a hierarchy of machines, components, bills of materials and supplier lead times. Sensor data feeds a wear estimate per component, expressed as a probability of reaching its replacement threshold within a set number of weeks. A stock simulation then uses those probabilities to test whether local inventory is enough.

What data does the twin need for this?

The twin needs asset structure, bills of materials, supplier lead times, and live signals such as vibration, motor current, temperature and cycle counts. It also needs maintenance logs that record what was replaced and how worn the part was. Stock levels and usage history are required to compare simulated and actual consumption.

What what-if scenarios can be tested?

Teams can test a forecast that moves ten days earlier, a second line using the same part, or a supplier delivering only half an order. Each run records how often a line would wait for a part, how many emergency orders would be needed, and how much stock remains unused at quarter end.

What are the benefits of matching spare parts to failure forecasts?

The main benefits are fewer stoppages caused by missing parts and less money tied up in items that never leave the store. The simulation shows which parts are sensitive to forecast error and which can be held in small quantities. Planners also get a short weekly list instead of a crowded dashboard.

Why does the forecast need good maintenance labels?

A failure model learns from maintenance records. If logs only say a bearing was replaced, without recording its wear condition, the model learns the wrong pattern. The stock recommendation then inherits that error, so better labelled records lead to more reliable forecasts and purchasing decisions.

Why compare forecast-driven orders with actual replacements?

Comparing orders with what technicians actually used each month shows where the policy is off. A part swapped during a planned shutdown tells a different story from one that failed in service. Repeated gaps indicate thresholds that should be adjusted.

Who uses this kind of twin in a plant?

Maintenance planners, plant managers and logistics or purchasing teams use it. Maintenance staff see which components are likely to fail, while logistics staff see stock and lead times in the same model. Both can then agree on rushing an order, borrowing a part from another site or moving a service window.

What actions does the twin support each week?

Each week the twin can flag the few components where a stoppage before the next scheduled shutdown is likely and local stock is below the simulated safe level. Planners then choose between rushing an order, borrowing a part from another site, or bringing a planned service earlier.

What are the limits of this approach?

The approach is limited by data quality and by forecast uncertainty. Poor logs, missing lead-time data or unreliable sensors weaken the stock recommendation, and the simulation gives a view of sensitivity rather than one perfect number. Results should be checked regularly against real replacements.

How can a plant get started?

Start with a few critical lines and model their machines, components, bills of materials and supplier lead times. Connect available sensor data, clean up maintenance logs, and run simulations on the parts with the longest lead times. Then compare simulated orders with actual usage monthly and refine thresholds.