DECODEXIS
Introduction

Formulation Advisor

Optimum formulations with fewer experiments

This introduction is written for product and process developers alike, and sets out how Bayesian optimisation is applied in both kinds of development. It opens with a case study: the reformulation of an existing body lotion around a new bio-based emulsifier, carried from ten historical trials to specification in five bench trials. It then explains how a campaign runs from day to day and how the method differs from design of experiments, linear programming and predictive analytics, before setting out further use cases in consumer packaged goods. The method is implemented in Formulation Advisor, the free workbench introduced in the final section.

Also available as a PDF.

Case study: a body lotion with a new emulsifier

Ten historical trials on the original emulsifier, no data on the new grade, and a budget of five new bench trials.

Reformulate an existing body lotion with a new bio-based emulsifier, match the current product, and reach specification within five trials.

Target specification

  • Viscosity4,000–6,000 cP
  • Droplet size, d50below 10 µm
  • Stability4 weeks at 40 °C

Core formulation

Formulation
Oil phase8–14 wt%
Bio-based emulsifier, new grade1.0–2.5 wt%
Thickener0.3–0.8 wt%
Waterbalance to 100 wt%
Process
Homogeniser speed3,000–7,000 rpm
Mixing temperature50–80 °C
Cooling rate0.5–1.5 °C/min

Data available

  • Ten historical trials on the original emulsifier, with the same variables and outcomes.
  • No trials on the new emulsifier.
  • The golden batch settings for the original formulation.
  • Specification data for both grades: HLB value, active content and viscosity.

The campaign

01

Transfer the history

The ten trials on the original emulsifier are treated as a related task. The model learns the shape of the response surface from them and starts with no information specific to the new grade.

02

Establish the offset

Trial 1 is a direct substitution at the golden batch settings. Its measured result quantifies the difference between the two materials.

03

Refine under constraints

Each result updates the offset. The next trial balances exploration against exploitation, with viscosity and droplet size applied as hard constraints.

Result

Trial 1 held droplet size but fell below the viscosity target. The model attributed the gap to the emulsifier change, raised thickener and homogeniser speed for trial 2, and reached specification at trial 3. Trial 4 refined the setting and trial 5 confirmed it.

TrialEmulsifierThickenerHomogeniserViscosityd50
11.6 wt%0.50 wt%4,500 rpm2,400 cP9.0 µm
21.6 wt%0.68 wt%5,600 rpm3,600 cP9.5 µm
31.7 wt%0.74 wt%6,200 rpm4,600 cP8.0 µm
41.65 wt%0.70 wt%6,000 rpm4,900 cP8.4 µm
51.65 wt%0.70 wt%6,000 rpm4,700 cP8.3 µm

The campaign closed within the five-trial budget, with a documented reason for every setting and the ten historical trials retained as the basis of the model.

Next section Working with BO

Working with BO

A model is fitted to the experiments already available, and the next experiment is chosen from it. The loop repeats after every result.

The black box and the surrogate

The formulation or process is treated as a black box: known inputs produce measured outcomes, and the relationship between them is unknown and expensive to evaluate. Bayesian optimisation fits a surrogate model — a fast statistical approximation of that black box — to the trials already completed. At any untested setting it returns a predicted outcome and an estimate of the uncertainty. A fuller account is given in Bayesian Optimisation for Product and Process Developers.

Closed-loop optimisation: fit the model, recommend a trial, run and record the result, then repeat.
Closed-loop optimisation. Each recorded result updates the model before the next recommendation.

The loop in practice

01Bring the data

Current trials, earlier campaigns, or both.

02Warm up if needed

With no data, the tool proposes roughly two trials per variable, plus one.

03Run the suggestion

The model identifies the next trial and gives the reason for it.

04Record and repeat

The result updates the model before the next suggestion.

Exploration and exploitation

A recommendation serves two purposes: improving the predicted outcome, which is exploitation, and reducing uncertainty in regions not yet examined, which is exploration. Excessive exploitation converges on a local optimum; excessive exploration amounts to unstructured search. The method balances the two, so each trial either improves the result or improves the model's knowledge of the system.

The surrogate model at five measured points. The sheet is pinned where trials exist and remains open elsewhere.
The surrogate at three, four and five measured points. Each trial pins the sheet at the measured value; between pins, uncertainty remains.

How it differs

A design of experiments fixes the matrix before execution. Predictive analytics needs a large, curated history. Linear programming optimises a known linear objective and does not learn from results. Bayesian optimisation is built for an unknown, non-linear system with a limited budget.

Design of experiments Linear programming Predictive analytics Bayesian optimisation
What it requiresA designed matrix of trialsA known linear objective and known constraintsA large, standardised historical databaseA small project table and a defined search space
Learning from resultsAfter the full batchNone; coefficients are specified in advanceAfter model trainingAfter every trial
UncertaintyEstimated from replicationNot representedModel-dependentExplicit at every untested setting
OutputEffects across the design spaceAn optimal allocation under known constraintsPredictions at scaleThe next experiment to conduct

The distinction between Bayesian optimisation and design of experiments is examined in Too Many Experiments, Too Little Time.

Beyond the bench

Because the method learns from few observations, it is suited to any setting where experiments are expensive and time is short. Campaigns are not confined to the laboratory: pilot runs, scale-up and production all supply usable data, with routine records serving as history and each deliberate change as the next observation.

01Bench

Screening and reformulation, where material and analyst time are scarce.

02Pilot

Transfer between scales, with two or three runs quantifying the offset.

03Production

Batch records provide the history; each agreed change is run once and recorded.

Next section Further use cases

Further use cases

Further use cases in consumer packaged goods include the following.

01

Screening candidate ingredients

Candidates are encoded by two or three specification descriptors, so the model can rank untested options after a few physical trials.

02

Developing a formulation from scratch

Where no data exist, the first trials are spread across the search space and a viable formulation follows within about ten trials.

03

Process scale-up and transfer

Scale-invariant parameters such as tip speed replace equipment settings, and two or three pilot trials quantify the offset.

04

Troubleshooting a failure

Failed batches are recorded as pass or fail, so the model maps the feasible boundary and identifies the likely cause within three or four trials.

05

Reducing raw-material cost

Cost is applied as a hard constraint while quality remains the objective; varying the ceiling produces a cost-versus-performance frontier.

06

Improving robustness

Replicates with process drift, or a worst-case objective, steer the search to a broad operating plateau rather than a narrow peak.

Next section Next steps

Next steps

The workbench is free to use, and a first recommendation follows within minutes.

The workbench can be opened with a pre-configured example or with a table from a current project. No installation or payment is required. A short introduction to the method in an R&D setting is given in AI Zero to Hero in R&D.

A walkthrough using one of the team's own tables takes about twenty minutes: the variables to change, the measurements to record, the limits to treat as hard, and how to read the first suggestions.

A longer practical guide, covering the four foundation modules and the seven use-case playbooks with worked examples, is available as a PDF on request.

Project data is not stored

The workbench does not keep a product database and does not retain project data after processing. The table is used to fit the model and to produce the next suggestion; any working copy, including a saved draft, remains in the browser on the scientist's own computer and can be deleted at any time.