Machine Learning in Manufacturing: When and How to Use It

Factory sensor signals supporting maintenance and quality decisions
Published on

On a night shift, the quality engineer would want to know whether a batch of product with variable pressure should be rejected before it ships. If you have training data in the same mode of operation with similar pressure variations, and lab results for previous batches, you can apply machine learning in manufacturing to this decision.

A GroupBWT pilot will be carried out to understand whether the data available in the plant can be used. We will define an appropriate baseline, such as the existing alarm thresholds. Data will be prepared by our team, a model will be developed, and a pilot will be run. You can then decide if you wish to proceed with this project.

Many resources on machine learning for manufacturing begin by discussing algorithms. Here, we begin with the decisions that your team should make differently.

How Machine Learning Differs From Plant Rules

GroupBWT - Escalation ladder showing when to use hard plant rules, simple statistical equations, and machine learning models in manufacturing, with a fixed safety limit guardrail underneath.

Rather than following rules defined by engineers, models built with machine learning (ML) learn from the data. From previous data labeled with batch quality, the model will learn the relationship between pressure and line speed. Additionally, we will use an out-of-distribution check because models can become very confident about data they have not seen. Safety thresholds will always be set as hard rules.

If we want an alert when the oven temperature exceeds 240 °C, we need no training data. If rule-based systems are inadequate, we will try a simple equation or a statistical predictive model. Only if this does not capture the interaction between groups of data points will we consider whether machine learning is worth the investment. Rules, formulas, and models can be affected by shifts in operation. Therefore, each will be tested in representative scenarios and then monitored.

AI can include rule-based reasoning, machine learning, and agents, but not all rules and optimization algorithms are considered AI. This is important to understand when applying AI and machine learning in manufacturing. Anomalies in vibration may be detected by a model, while the work order may be raised by an agent. See our guide to AI in manufacturing industry use cases.

Benefits of Machine Learning in Manufacturing

Within manufacturing, machine learning can be used by maintenance, quality, and planning teams to reduce losses within these departments. In order to gain benefits, the plant must act on the outputs. If the amount of scrap produced increases in line with outputs, there will be no benefit.

Business Problem What ML Contributes What the Plant Measures
Unplanned Downtime Identify anomalies in equipment data. Downtime hours saved, time to warn, false alerts
Scrap and Rework Identify risk of defect from process data or images. Scrap rate, missed defects, inspection effort
Unstable Scheduling Identify risk of delays and how long operations will take. Good units per hour, Schedule adherence
Uncertain Purchasing Predict demand and supplier delays. Forecast error, stockouts, overstock
Energy Usage Link energy usage to operating conditions. kWh per good unit (with similar product mix)

What a Manufacturing ML Pilot Should Deliver

Once it has been confirmed that the data from the plant is suitable for this use case, a model will be developed and evaluated. The following will be delivered, as agreed with the plant sponsor:

  1. Readiness and baseline: Confirmation that data is suitable, what gaps in signals exist, and the current performance of the metric.
  2. Tested model: A model with a score on unseen data and a comparison with the current method.
  3. Response workflow: Who is responsible for each alert, how alerts will be routed, and how missing data is handled.
  4. Evaluation report: Number of false positives, true lead times, and missed events (only if enough confirmed events exist).
  5. Rollout recommendation: Next steps and what needs to be fixed first.

Machine Learning Use Cases in Manufacturing

Only confirmed faults can be used in training. If abnormal vibration is not confirmed as indicating a fault, this data cannot be used in training.

Predictive Maintenance (PdM)

If there is limited failure data but good data in the normal operating state, anomaly detection may be useful. In many cases, models will be trained only to detect normal operating states. To predict remaining useful life, more data is required. In general, most methods will require some degradation or failure data from some items within the fleet. Results from benchmark tests (such as the 2025 deep learning benchmark from Scientific Reports) have been run on controlled data. As such, we will initially compare performance against your failure modes.

Quality Control

By training a model on process data and correlating it with inspection results, we can identify common conditions that lead to failed inspections. Quality engineers can then decide to either inspect or segregate the batch. Each process profile must correspond to the exact component or batch and its confirmed result. The final lab results should not be used in the inputs, as they arrive after the prediction is needed. A batch labeled as failed does not necessarily mean that all items in it are faulty. If image data is available from inspection, then missed defects and false positives will be counted separately, as they incur different costs.

Throughput and Energy per Good Unit

Only good units will be considered in the throughput model. For example, if the filler is operating quicker but the capper is still a bottleneck, then overall throughput will not increase. This will be tested in simulation. Comparing energy usage between similar loads and products will give kWh per good unit. In order to understand if implementing a new setting will reduce costs, a controlled trial with careful quality monitoring is necessary.

Demand and Supplier Delays

For demand models, a range of values may be given. The size of this range tells the planner how risky a stockout is. If improving the accuracy of this forecast would not affect the purchase order, then implementing ML may not be worthwhile. A supply risk model learns from previous deliveries, comparing the scheduled delivery date with the actual delivery date. It will then look at current commitments, stock movements, and material requirements to give an indication of whether open deliveries will be received in time for production.

Engineering Documents

Optical Character Recognition (OCR) will allow text to be extracted from engineering drawings. Intelligent Document Processing (IDP) can be applied to classify the document and extract information, such as the rated power of the motor. GroupBWT designed a search layer like this for a European motor manufacturer. They had over 3,600 variants of AC motors, with documents in six different systems. The proposed workflow would cover drawing classification, parameter table extraction, and routing of uncertain values to engineers for review.

Engineering Design, Robotics and Digital Twins

These tasks do not necessarily require ML. We would only suggest using ML if the task cannot be solved using optimization, traditional computer vision, or physics-based simulations. Generative design means a model predicts the performance of the design. In robot vision, the model must be able to recognize parts in the provided lighting. Emergency stop functions will not be connected to the model. Digital twins are commonly mentioned when discussing machine learning in manufacturing and Industry 4.0. Because the data is live, what the model has learned must be verified to ensure it stays accurate.

What Data Is Needed for a Manufacturing ML Model?

78 °C may be normal or an alert, depending on the machine, the product, and the load. This data may be in multiple systems and must be joined to the reading. For example, in the Manufacturing Data Engine by Google Cloud, each record is joined to the equipment context at the time of recording.

We would consider six types of records:

  • Enterprise resource planning (ERP): Orders, demand history, and material requirements.
  • Plant-floor systems: Manufacturing Execution Systems (MES), Supervisory Control and Data Acquisition (SCADA) systems, and historians.
  • Sensors: Vibration, pressure, temperature, and electrical current.
  • Quality records: Confirmed outcomes as labels, plus a withheld test set.
  • Maintenance history: Confirmed faults, repairs and work orders.
  • Supply chain data: Supplier commitments, delivery dates and stock movements.

Missing data must be considered.

“Keep a gap attached to its machine and time window. This means that the engineer can identify where evidence is missing. If a prediction in this window would be unreliable due to missing data, the system can withhold it. If typical values are used to fill in the gap and the missing data is not marked as such, the data collection issue will be hidden, and a normal healthy trend will appear.” — Alex Yudin, Head of Data Engineering at GroupBWT

Heterogeneous Fleets in the Manufacturing Industry

In most machine learning in manufacturing industry projects, we will not be working with a homogeneous fleet. In one industrial discovery, we found that some machines contained programmable logic controller (PLC) data, while others (based on relays) needed a different method of data collection. If process data is stored locally within the plant, a boundary for data processing will be agreed by the plant with its security and legal teams.

Also Read: AI-Ready Data for Manufacturing: Prepare Plant Data

Manufacturing ML Data Architecture: Connecting Plant Systems to Models

GroupBWT - Medallion data architecture flow diagram from Bronze raw gateway records to Silver checked units and Gold validated model inputs, with an orange branch withholding predictions when validation fails.

Plant managers will have specified which systems are accessible, whether operational data can be transferred outside of the site, and how quickly alerts should be raised. Users of analytics do not have permissions to do anything outside of what is required to complete this task.

Care must be taken to ensure vibration data is correctly mapped to pumps to avoid incorrect alerts. We suggest using the medallion pattern (popularized by Databricks).

Layer What It Holds Why It Matters
Bronze: records as received Gateway outputs, source identity, event time Keeps what arrived for replay and investigation
Silver: checked records Consistent units, machine links, visible gaps Removes retransmitted copies but keeps repeated physical readings
Gold: model inputs Per-machine features and data-coverage measures Uses the same feature definitions in training and live prediction

If data fails validation, no prediction should be given rather than a pass.

GroupBWT identified the data sources first and then designed a migration blueprint for Databricks for an agricultural producer. In this case study, data from 18 source systems has been mapped to a medallion lakehouse. This is as far as the published case study goes. Projects involving machine learning in manufacturing industry settings will require this step. Our data engineering team will manage everything from source to validated pipelines.

How to Train and Evaluate Machine Learning Models on Manufacturing Data

Rather than just considering accuracy, it can be better to understand if the prediction has improved decision-making. Regression produces a numerical output, and classification produces a category or risk score. Isolation forests or autoencoders will identify anomalies, but they will not provide a reason. We will:

  1. Train: Log inputs and parameters for each candidate model. Preprocessing will be fitted only to training data.
  2. Evaluate: Test performance with out-of-sample data (either from a later period or from a few machines). Report the number of false positives, review effort, and missed events (where there are sufficient confirmed outcomes).
  3. Run inference: Score new data in the same way, and plan the actions to take for late or invalid data.

This can be found in our ML development services.

Manufacturing ML Case Studies in Maintenance and Fault Investigation

GroupBWT - Horizontal bar chart comparing published manufacturing predictive maintenance pilot results: 31% unplanned downtime reduction and 27% emergency repair reduction for a pump manufacturer, and 20% unplanned downtime reduction for a dairy plant.

The best machine learning in manufacturing examples will explain how models were trained and used. Two of these case studies are our own, and one is from AWS.

Dairy Plants

The client builds 15-20 turnkey dairy plants per year. The pilot plant had 3-6 months of process data available. However, clear failure data was not available (company-reported). In this single engagement, we designed, implemented, and piloted a vendor-neutral predictive maintenance framework in Databricks. It covers 80-90 similar motors across one site using Siemens equipment. All data was validated prior to scoring.

Our dairy-plant predictive maintenance case reports at least 24 hours of warning for selected slow-developing failures, a 20% reduction in unplanned downtime, a 10% increase in mean time between failures, and a 10% reduction in mean time to repair. These changes come from detecting issues in combination with maintenance. No information on baseline or time period is given. Predicting when a specific component will fail is a different task. As little data was available in this pilot, it was not feasible to accurately predict failure times. Therefore, GroupBWT focused on identifying anomalies in the data and having engineers review them.

Pump Manufacturer

In our published case study, an anomaly detection model was used to detect abnormal behavior in equipment telemetry, and we integrated it with SAP ERP and Siemens Opcenter MES. Two agents were used to identify issues with parts and to recommend repair timing that meets production deadlines. Both agents require engineering approval to stop machines or create work orders.

As reported in our case study on AI agents for predictive maintenance, we reduced unplanned downtime by 31% across 14 lines, compared with the previous six months. Emergency repairs were reduced by 27% and maintenance costs by 18%. We designed a process to allow condition-based maintenance for some previously fixed maintenance. However, these figures cover the whole system. The improvements from the ML model alone were not isolated.

AI Agent Development
See how equipment alerts became approved maintenance work around a pump manufacturer's production schedule.
View Case Study

Mahindra’s Paint Shop

As described in the 2026 article from AWS for Industries, within Mahindra & Mahindra’s automotive paint shop, a model was trained using periods of normal running (no downtime, in-spec quality). Anomalies in the data streams were detected using isolation forests and autoencoders (retrained monthly). AI agents aided the investigation into root causes. AWS reports that detecting and investigating anomalies reduced mean time to repair by 20%. No baseline or time period was provided.

Choosing Your First ML Pilot in Manufacturing

Choose a process to pilot. Be sure that the impact on quality is clear. If data is incomplete, general predictions of failure may not be clear. Consider which decisions you would like to change and which key performance indicator (KPI) you would like to improve. Be sure that data is available for the desired outcome, that the predictions will be used by the correct people, and that appropriate security protocols will be followed. Decide in advance what outcome must be achieved in order to scale the solution, gain more data, or stop the solution.

How to Calculate the ROI of Machine Learning in Manufacturing

Take into account the cost of each alert. Simply knowing how many alerts were raised does not indicate financial benefit. Compare data from similar production volumes and product mixes.

Benefit How to Measure It What Not to Count
Avoided downtime Comparable downtime hours × plant-specific loss per hour Every alert as an avoided breakdown
Reduced scrap and rework Fewer affected units × unit material or rework cost The same loss twice
Maintenance savings Comparable repair, parts, and labor costs Alert-review costs already counted as system costs
Recovered production Additional saleable output × contribution margin Margin already inside the downtime cost

The total cost includes the cost of deployment, integration, hardware, computation, monitoring, support, and time spent reviewing alerts, with each cost counted once. The ROI is calculated as (total benefit – total cost) / total cost. Both the total benefit and cost should be over the same period. Two scenarios have been considered (a base case and a downside case). Values with uncertainties are indicated as assumptions.

For scale, not as a client result: Siemens’ True Cost of Downtime 2024 report showed that in large industrial organizations, fast-moving consumer goods plants had the smallest downtime costs, at $36,000 per hour. You should replace this with the downtime costs for your plant. False positives will incur costs because more time is spent reviewing alerts. While a historical assessment will not avoid downtime, it provides insight into whether a pilot would be beneficial.

“I place a value on an alert based on what action the plant will take when it is raised, and I price that action alongside the model. For example, if technicians must be sent to repair the issue, the costs include technician time, the parts required, and the downtime. If the action costs less than the losses it can reasonably prevent, the alert has created value.” — Oleg Boyko, CCO at GroupBWT

How to Run a Manufacturing ML Pilot

A pilot is run only if the assessment shows that it is suitable to implement. If multi-source data foundations are required to scale, reconcile, govern and reuse data within the plant, we will build these as a separate stream. These timescales are our published indicative figures and not measured average times.

Step Typical Duration Main Output What Sets the Budget
Assessment 2-4 weeks Readiness report and plan for data gaps Data sources and use cases reviewed
Initial ML pilot 8-12 weeks on real plant data The pilot outputs agreed up front Equipment, integrations, and observation period
Multi-source data foundation (if required) 3-6 months, depending on system count Connected and checked source systems Number and condition of systems
Multi-site rollout Scoped after pilot validation Production workflow and support at each site Sites, local hardware, and support model

Further access will only be given once agreed project milestones have been achieved. The model will be in shadow mode, so no decisions will be made using the model, but engineers can assess its warnings.

GroupBWT can provide data integration, model creation, and workflow implementation as a single team. Data will be prepared by us and not passed to third-party model providers. Systems within the plant will remain under the control of your IT and operational technology (IT/OT) owners. Handover will only occur once monitoring and support owners are in place. We provide AI consulting for manufacturing.

Discuss Your Manufacturing ML Pilot

Tell us which production problem you want to solve, what equipment or business data may be available, and how your team currently handles the decision. We can help assess readiness, define a pilot, and identify the evidence needed before a rollout decision.

Oleg Boyko
Oleg Boyko
ССO at GroupBWT

Keeping ML in Manufacturing Reliable After Launch

GroupBWT - Post-launch reliability loop showing four continuous stages around reliability: Monitor Data, Verify Alerts, Test Parallel, and Approve Release by a named owner.

After deployment, model reliability may decrease. This can be caused by sensor failures, machine rebuilds, or a change in product mix within the plant due to a new contract. To maintain reliability in models, the following controls are used:

  1. Monitoring: Missing data, changes to inputs, and prediction accuracy once the outcome is known.
  2. Maintenance feedback: Technicians will confirm the accuracy of each alert. Engineers will decide whether to perform an inspection.
  3. Controlled updates: A retrained model is run in parallel with the original model. Once it has been approved, the new model will be put into place. The rollback measures are tested in advance.

Collaboration between human operators and AI systems, and integration between systems, are research topics in NIST’s manufacturing AI program, which was updated in July 2026.

“I would want to know which machines have improved and which have worsened in this release. Even if the average looks good, critical equipment can still have a high miss rate. Keep the current version running while the new one is tested, and give one named person the authority to release it.” — Dmytro Naumenko, CTO at GroupBWT

How to Scale Machine Learning Across Manufacturing Plants

Connectors, input definitions, and monitoring can be reused across multiple plants. However, models should be validated against the history of each particular plant. Tags in models must map to the correct units and mounting positions in the plant. If the same models are deployed at multiple sites, we recommend putting these models into shadow mode for a short time. If remote processing is limited, local inference hardware may be required for each site.

Conclusion

If models in manufacturing produce predictions that hold up in trials, are delivered to the correct person in time, and improve operational performance, then scaling may be a consideration. In the first project, it is recommended to target one operational problem. Define acceptance criteria in advance, and decide based on the results of the pilot whether to continue or stop.

FAQ

Models can be built from data collected in a manufacturing site, such as sensor data, inspection data, and order data. These models can be used to predict outcomes such as defects, anomalies, or demand before they are known. As models learn from previous examples, representative data must be used in training. Models must also be validated to evaluate whether they are better than existing methods.

Common applications include predictive maintenance, detecting defects, optimizing production, and predicting demand. Other applications include energy analysis, document processing, and robot perception. Different data types will be used for each application. Good performance in one application does not necessarily translate to others.

Benefits include less unplanned downtime, less scrap and rework, more consistent production schedules, and less energy used per good unit. These benefits occur only if someone acts on predictions in time. Plants should weigh these benefits against the full cost of building and running the system, including time spent reviewing alerts.

ML should be applied to a process if it is clear who needs to act on the predictions, historical data can be correlated to confirmed outcomes, and a simpler rule has not been sufficient. Even if data from the equipment in a process is incomplete, it may be possible to begin. If only some machines in a plant have useful data, a pilot could be completed, as long as it is clear in the report which machines were excluded.

Our published indicative ranges, not measured averages, are 2-4 weeks for an assessment, 8-12 weeks for an initial pilot, and 3-6 months for multi-source data foundations where required. Access approvals, missing data in signals, and infrequent failures may increase the time taken. Pilot budgets will be decided after assessment. Budgets will include hardware, computing, monitoring, and time spent reviewing alerts.

Looking for a data-driven solution for your retail business?

Embrace digital opportunities for retail and e-commerce.

Contact Us