Design of experiments for process and formulation development

Plan your experiments, estimate how likely a future batch is to meet every specification, and decide what to test next

What it is

Design of experiments (DoE) and statistical analysis for process and formulation development in biotechnology, food and cosmetic ingredients, enzymes, culture media and fermentation, when there are few batches, technical replicates and several responses with a specification.

There are two ways in: before the first batch, to design the experiments, or with data already produced, to see which decisions they support and what is worth testing next. Either way, each proposed condition comes with the estimated probability that a future batch meets every specification at once.

Objectives

  • Choose the process or formulation condition on the evidence the batches provide, not the evidence the replicates appear to provide.
  • Estimate, before scaling up or producing, how likely a future batch is to meet every specification at the scale tested.
  • Plan the next round of experiments so that each batch helps answer the questions that remain.
  • Keep a documented, reproducible record of why the condition was chosen, for the team, the client or the funding programme behind the project.
Key points

Design of experiments before the first batch

  • Full and fractional factorial, screening, block, response surface and mixture designs, to screen factors, optimise a culture medium or fermentation conditions and fine-tune a formulation, chosen according to the question and the batches that can be produced.
  • An explicit distinction between the experimental unit, the batch, run or culture to which the condition is applied, and the technical replicates that measure assay error, including when factors are applied at different levels.
  • Estimating how many batches and technical replicates you need, from the difference worth detecting or the precision needed to decide, with no universal thresholds.

Hierarchical models for batches and replicates

  • Mixed-effects and Bayesian hierarchical models, with the batch as a random effect and the replicates as measurement error.
  • Variance components: how much the result varies between batches and how much within the assay, and how the responses vary together.
  • Concentration-response curves and process covariates within the same model.

Probability of meeting specifications and desirability

  • Predictive distribution of the next batch under each condition, with its uncertainty, and tolerance intervals to see whether provisional limits are achievable.
  • Joint probability of meeting every specification, allowing for how the responses vary together, and the region of conditions where it exceeds the agreed threshold: a candidate operating window.
  • Derringer and Suich desirability as a complementary measure, also as the expected desirability of a future batch rather than only on the mean.

Checking the model and the next round

  • Cross-validation leaving out whole batches, when the design and the number of batches allow it.
  • Testing against new batches, with the predictions recorded before they are produced.
  • Sequential design and Bayesian optimisation to decide which conditions to test in the next round.

What it is for

  • Propose a condition or an operating window with an estimate of how likely the next batch is to meet every specification.
  • Avoid scaling up a condition that only looked best because the replicates were counted as batches.
  • Spend the next production round on the experiments that most reduce the remaining uncertainty.
Why choose this service

Before you produce the next batch, estimate how likely it is to meet every specification

With few batches and several responses, the condition with the best mean or the highest desirability may have a low probability of meeting everything at once: between-batch variability and model uncertainty do not show up in the mean. We design the experiments or start from the ones you have already run, and each proposed condition comes with its estimated probability of meeting specifications, which depends on the data, the model and the scale at which the batches were produced.

Technical replicates are not batches

When the condition is applied to the whole batch, the batch is the experimental unit. Averaging independent technical replicates can improve the precision of that batch's measurement, but it says nothing about how the process varies from one batch to the next. Counting them as independent observations narrows the intervals and treats as real some differences that the next batch may not repeat. We model each factor at its own unit and the replicates as measurement error.

Joint probability of meeting every specification

The estimated mean can fall within the limits for each response and a batch can still have a low probability of meeting them all together. We estimate that probability from the predictive distribution of the next batch, which includes between-batch variability, assay error, the relationship between responses and model uncertainty. Unless agreed otherwise, meeting a specification means that the result measured with the planned assay protocol falls within the limits.

Desirability compares conditions; probability says whether they comply

The desirability function summarises several responses in a score between 0 and 1 and is useful for comparing conditions, but computed on the means it ignores uncertainty, and the optimum it gives may have a low probability of meeting everything. We present the expected desirability of a future batch alongside the probability of meeting specifications, so you can see when they agree and when they do not.

Assessed by leaving out whole batches

Assessing a model with replicates of the same batch split between fitting and testing inflates its accuracy, because the model has already seen that batch. We assess how the model predicts when whole batches are left out, when the design and the number of batches allow it, and propose how to test the predictions against new batches. With few batches, the report separates what this internal check shows from the evidence that is still missing.

Our process

What working with us looks like

We apply our D²I (Data to Insights) methodology to every service. A structured, iterative and transparent process that turns complex data into actionable knowledge.

01

Kick-off and problem definition

We meet with you to understand the development decision you need to make, how many batches can be produced and which specifications they must meet, the data available and the objectives of the project. We agree on deliverables, timelines and communication channels and, if you would like, we sign a confidentiality agreement before we see your data.

02

Data review and preparation

We assess how the data were generated (what is a batch and what is a replicate, which conditions were repeated) or, if there are no batches yet, what is already known about the process, to design the first round. If critical information is missing, we tell you before going any further, and we document every decision so that the process is traceable and reproducible.

03

Analysis and modelling

We design the experiments or, if there are already batches, fit a hierarchical model with the batch as the unit, estimate under each condition the probability that the next batch meets every specification and check the model by leaving out whole batches when there are enough of them. We work iteratively: we share preliminary results with you and discuss them before anything is finalised.

04

Communicating results

We turn the findings into the format you need: the experimental plan or the technical report with its reproducible code and, if agreed, an interactive application. We always include what the results mean for the process or the formulation and what is worth testing next, not just figures.

05

Impact review session

Thirty days after delivery we meet with you again for a 60-minute session. By then you have had time to present the results internally, the real implementation questions have come up, and you can assess the impact of the work with some perspective. We answer those questions, adjust the interpretation if needed and agree on the next step together.

If you would like to understand how we work in more depth, see our full D²I methodology.

Are you developing a process or a formulation with few batches?

Tell us what you are developing, how many batches you have or can produce and which specifications it has to meet, and we will tell you which design or analysis fits.

Tell us about your process
FAQs

Frequently asked questions

How many batches do you need to optimise a process or a formulation?

The number of batches depends on what you need to decide and how precisely: on the difference between conditions worth detecting and how much the result varies from batch to batch. The question comes up when planning a development campaign, or when batches already exist and you want to know whether they are enough to choose. In design of experiments, when the condition is applied to the whole batch, the batch is the experimental unit: averaging technical replicates improves the precision of that batch's measurement, but says nothing about how the next one will turn out. That is why sizing is done in batches, with between-batch variability estimated or bounded from what is already known. With few batches, the model does not invent precision: it expresses the uncertainty, and that uncertainty shows whether it is worth producing more before deciding.

What is a Bayesian design space, and how does it differ from overlaying response surfaces?

A Bayesian design space is the region of process or formulation conditions in which the predictive probability that a future batch meets every specification at once exceeds an agreed threshold: it is a result of the model, used to propose a candidate operating window rather than a single optimum. Overlaying response surfaces marks out the zone where the estimated means meet specification, and at its edges a batch can have a high probability of failing. The response surface can be part of the same model; what changes is the criterion: the joint probability, with between-batch variability and model uncertainty, instead of the means. If no condition tested reaches the threshold, the region is empty. The concept comes from the ICH Q8(R2) guideline, the basis of quality by design (QbD); design of experiments provides the technical evidence, not its regulatory acceptance.

What is the difference between maximising desirability and estimating the probability of meeting every specification?

Maximising desirability, as Minitab, JMP or Design-Expert do, looks for the condition with the best combined score of the predicted responses; estimating the probability of meeting every specification tells you how likely a future batch is to meet them all at once. It matters when the team already has a design analysed with its software and is unsure whether the optimum is safe. The Derringer and Suich desirability function turns each response into a score between 0 and 1 and combines them; computed on the means, a condition can score high and still have a low probability of meeting specifications. Some packages already simulate defect rates from the fitted model. Azahar Data Insights starts from the existing analysis, treats the batch as the unit, includes the uncertainty of the model parameters, which weighs heavily with few batches, and presents the expected desirability of a future batch alongside the probability of meeting specifications.

How can DoE support process validation or claim substantiation?

Design of experiments (DoE) provides the technical development evidence on which process validation and claim substantiation rely, but it does not replace them: which condition was chosen, how likely it is estimated to meet specifications, how the model was checked and with which batches. That evidence helps the development or quality team when it prepares the dossier, because the same laboratory data often end up there. Process validation before an authority and the regulatory substantiation of a cosmetic claim or a health claim have their own requirements and often call for studies in people, which are a different kind of study. In design of experiments for process and formulation development, everything is documented and reproducible so the client's regulatory team can incorporate it, without turning it into an assurance of compliance.

What if my data come from patients rather than batches?

If the data come from patients, the right service is Bayesian inference for small-sample studies, not design of experiments for process and formulation development, even though both use Bayesian hierarchical models. Bayesian inference for small samples applies to clinical studies, such as those in rare diseases or pilot studies, where the unit is the patient and the question is the size of an effect. The Bayesian hierarchical model for batches applies to process and formulation R&D, where the unit is the batch and the question is which condition to choose and how likely it is to meet every specification. They share justified priors and the communication of uncertainty; the unit, the question and the deliverable are different.

Can you work with experiments we have already run? What data do you need?

Yes. Design of experiments for process and formulation development can start from the experiments you have already run, even if they were not planned with a formal design, or before the first batch, by designing the first round. To analyse, a table is enough: the identifier of each batch, the condition under which it was produced and the measurements of each response with their technical replicates, plus the specification limits if they already exist. A target value for a response is only needed when you want to bring it closer to a specific target, not just keep it within limits. Historical batches or published results help set the priors, but they are not essential. If the data do not allow the batch to be separated from the condition, the analysis says so, and the next round starts by correcting it.

What is Bayesian optimisation of bioprocesses, and when is it better than classical design of experiments?

Bayesian optimisation of bioprocesses is a sequential design: it fits a model to the batches produced and chooses the next experiments where the expected gain is greatest, round by round. It pays off when each run is expensive, you can learn between one round and the next and the search space is manageable, as in culture media or bioprocess development. Classical design of experiments fixes in advance a set of conditions that covers the space with a known structure, and remains the best option for screening factors or when the number of batches is fixed. They do not compete: a classical design is often the first round, and the sequential approach decides the following ones. Bayesian optimisation does not always reduce the number of experiments; in each design of experiments project we choose between the two, or combine them, according to the cost of each batch and what is known about the process.

With few batches, how can you tell whether a process can meet provisional specifications?

In design of experiments for process and formulation development, a few batches are enough to estimate which results the process can be expected to give and whether provisional limits look achievable; the limits themselves are set by the team according to the intended function and use of the product. The question comes up in development, when proposing internal limits for a response or checking whether those already set fit the current process. A prediction interval says where the next batch will fall, and a tolerance interval where a given proportion of future batches will fall: they answer different questions, and both separate between-batch variability from assay variability. A capability index such as Ppk is optional: it only makes sense with defined limits and enough batches from a single operating condition, never by pooling different experimental conditions.

What do you deliver at the end of a design of experiments and optimisation project?

A design of experiments and optimisation project delivers different things depending on where it starts. Before the first batch, the experimental plan: which conditions to test, with what structure and on what criterion the number of batches and replicates was chosen. With data, the comparison of the conditions tested with their estimated probability of meeting every specification and their desirability, the candidate operating window if there is one, the assessment of the model leaving out whole batches and the proposal for the next round. The report explains in R&D vocabulary what is known, with what uncertainty, and what the data do not allow you to conclude, and it comes with documented, reproducible code; an interactive application to explore conditions is agreed separately. The choice of condition and the decision to produce belong to the client; Azahar Data Insights provides the evidence to make them.

Shall we talk?

Tell us what you are working on and we will give you a straight answer on how we can help.