Back to Blog
AI

AI That Cuts Trial Runs: Finding Process Settings from Small Data with Bayesian Optimization

When every trial run is expensive, Bayesian optimization—not deep learning—is the practical way to find process settings with fewer runs. We cover how it differs from DOE, how to apply it, common pitfalls, and how to turn results into recipe standards.

POLYGLOTSOFT Tech Team2026-11-257 min read7
Bayesian OptimizationProcess OptimizationDesign of ExperimentsManufacturing AISmall Data

Using AI When a Process Has Only a Few Hundred Data Points

When manufacturers hear "AI," they usually picture deep learning models trained on tens of thousands of records. Setting up new process conditions is a different problem. Every trial consumes material, machine time, operator hours, and inspection effort, and if it requires a mold change or a line stop, you may only manage a few runs a day. Processes like this accumulate dozens or a few hundred data points at most—nowhere near enough for deep learning.

Injection molding (melt temperature, injection speed, holding pressure), coating (coat weight, drying temperature, line speed), heat treatment (ramp rate, soak time), and compounding (ingredient ratios) all share the same challenge: many variables, few affordable trials, and variables that interact with one another. Relying on veteran intuition alone tends to stretch out the trial-and-error phase.

Design of Experiments (DOE) vs. Bayesian Optimization

Planning everything upfront vs. choosing the next trial from results

Design of Experiments fixes all trial combinations in advance. A full factorial design with four variables at three levels requires 3⁴ = 81 runs. Fractional designs can cut that down, but results from early runs don't inform later ones.

Bayesian optimization is a sequential search that picks the next trial after seeing each result. It digs deeper around promising regions while still checking areas it hasn't explored. In the same example, if you hit the quality target after 8 initial runs and 15 sequential runs, you're done in 23. Actual numbers depend on process complexity and measurement noise.

Surrogate models and acquisition functions

Bayesian optimization relies on two components:

  • Surrogate model (Gaussian process): From the results so far, it estimates both "what quality to expect at these settings" and "how confident that prediction is." Uncertainty is low near tested points and grows farther away.
  • Acquisition function: It uses the surrogate to choose the next trial. Functions such as Expected Improvement or Upper Confidence Bound (UCB) put a number on the trade-off between "where results look good" and "where we still know little."
  • How to Apply It on the Shop Floor

    1. Define variables, ranges, and targets

    Narrow the adjustable variables to roughly three to six. Set upper and lower bounds for each, and decide up front whether the goal is a single metric (e.g., minimizing dimensional deviation) or multi-objective (e.g., higher strength with shorter cycle time). Multi-objective problems call for finding a Pareto front rather than a single optimum.

    2. Build safety and equipment limits into the search space

    Regions you must never test—pressures above equipment ratings, resin degradation temperatures, drying temperatures near a flash point—should be excluded from the start. Coupled constraints, such as "holding pressure × injection speed below a set value," can be encoded as conditions.

    3. Seed the search with expert settings

    Initial trials don't have to be random. Feeding in the settings your experienced operators already use, or recipes from similar products, gets the search into good territory much faster. The approach starts from experience rather than replacing it.

    Where It Commonly Goes Wrong

  • Noisy quality metrics: If results swing widely under identical settings, the model chases lucky values. Average repeated measurements or explicitly model observation noise.
  • Hidden variables: Material lot, shop temperature and humidity, and mold warm-up time often change outcomes without appearing in the variable list. At minimum, log them so you can separate causes later.
  • Production robustness: An optimum sitting right on a boundary will produce defects at the slightest drift. Check the margin around the optimum and run confirmation batches across different lots and shifts before locking it in as a standard.
  • Turning Results into Shop-Floor Standards

    When the search ends, keep more than the final settings—preserve the full trial history and the rationale behind each choice. Linking that history to recipe management in your MES means that when materials change or a new product arrives, you can continue from existing data instead of starting over.

    POLYGLOTSOFT's manufacturing AI consulting covers everything from defining variables and constraints to Bayesian optimization–based trial design, measurement data collection, and MES recipe integration. If trial costs have kept you from optimizing process settings, tell us about your process and quality metrics. We'll review the applicable scope and the expected number of trials with you.