When developing new formulations, R&D departments face a multi-parameter challenge: simultaneously improve functional properties, reduce cost, meet regulatory limits, and maintain sensory characteristics. Experimental trial-and-error means weeks of lab work and hundreds of thousands in costs. We offer a different path: an AI system that finds optimal compositions in 3–5 months, saving up to 30% in cost without sacrificing quality. Our experience in ML optimization spans 7 years and 40+ completed projects.
A typical scene: a technologist manually adjusts the composition, runs tests, adjusts again. One iteration takes a day or two. For a complex formulation, 20–30 iterations are needed — a month of work and significant raw material costs. Moreover, the found solution is often not optimal — it merely meets minimum requirements. AI optimization cuts the number of experiments by 3–5 times and guarantees finding a composition as close to the ideal as possible according to given criteria.
Application Areas
- Food industry: product compositions (taste/nutrition/cost balance)
- Cosmetics: cream, shampoo formulas (efficacy/safety/sensory)
- Pharmaceuticals: solid dosage forms, excipients
- Chemicals: coatings, adhesives, polymers, fuels
- Construction materials: concrete, coatings, sealants
How AI Reduces Formulation Cost?
The traditional path is trial and error: a technologist selects components, tests, adjusts. This is expensive and slow. The AI approach uses surrogate models — ML models that predict formulation properties based on composition. For example, XGBoost or Gaussian Process are trained on historical data and guide Bayesian Optimization toward the optimal region. Within 50–150 iterations, the algorithm finds an ingredient combination that meets all constraints at minimum cost.
Mathematical Formulation
Variables: proportion of each ingredient in the formulation (x₁, x₂, ..., xₙ) Constraints:
- Σxᵢ = 1 (sum of proportions = 100%)
- 0 ≤ xᵢ ≤ max_i (maximum content limits for each component)
- Regulatory: xₐ ≤ 0.1% (food additives), xᵦ ≥ 0.5% (minimum ingredient)
- Technological: ingredient compatibility
Objective functions (multi-objective):
- Minimize cost
- Maximize functional properties (strength, viscosity, pH)
- Meet sensory characteristics (taste, consistency)
- Minimize undesirable components
ML Methods for Formulation Optimization
Surrogate Models
Problem: physical testing of a formulation is expensive and slow. A surrogate ML model predicts composition properties from its components:
- XGBoost/Random Forest on experimental data
- Gaussian Process (with uncertainty quantification — we know where we are unsure)
- Deep Learning for complex structural dependencies
| Method | Iterations | Prediction Accuracy | Noise Robustness | Applicability |
|---|---|---|---|---|
| Bayesian Optimization | 50–150 | High | Yes | Small and medium spaces |
| Genetic Algorithm | 200–500 | Medium | Partial | Large spaces |
| Grid Search | >1000 | Depends on step | No | Small spaces |
Bayesian Optimization
Active cycle: surrogate → acquisition function → next experiment:
- Initial DoE: 20–50 formulations with uniform coverage of the space
- Train GP surrogate
- Expected Improvement selects the next most informative point
- Experiment → update surrogate
- Convergence to optimum in 50–150 iterations
from bayes_opt import BayesianOptimization import numpy as np def formulation_score(ingredient_a, ingredient_b, ingredient_c, ingredient_d): """Surrogate model: prediction of target properties""" # Normalization of ingredient sum total = ingredient_a + ingredient_b + ingredient_c + ingredient_d fractions = [x/total for x in [ingredient_a, ingredient_b, ingredient_c, ingredient_d]] # ML surrogate (pretrained model) features = np.array(fractions).reshape(1, -1) predicted_quality = surrogate_model.predict(features)[0] predicted_cost = cost_model.predict(features)[0] # Multi-objective scalarization score = predicted_quality - 0.3 * predicted_cost return float(score) optimizer = BayesianOptimization( f=formulation_score, pbounds={ 'ingredient_a': (0.05, 0.60), 'ingredient_b': (0.10, 0.45), 'ingredient_c': (0.05, 0.30), 'ingredient_d': (0.02, 0.20), }, random_state=42 ) optimizer.maximize(init_points=20, n_iter=100) Mixture Design + ML
Specialized Design of Experiments for mixtures: Simplex-Lattice, Simplex-Centroid, D-Optimal designs. Combination of statistical DoE with ML modeling.
Why Bayesian Optimization is More Efficient Than Standard DoE?
DoE (Design of Experiments) gives good space coverage but does not adapt to data. Bayesian Optimization uses results from previous experiments to guide the search toward the region where improvement is expected. This cuts the number of required tests by 3–5 times. Additionally, Gaussian Process provides a measure of uncertainty — you know where the model is unsure and can run an additional experiment exactly there.
Robust Optimization
Ingredients from different batches have different characteristics. Robust optimization includes:
- Monte Carlo simulation of input component variability
- Robust formulation: performs well under ±σ variation of ingredients
Formula Knowledge Base
NLP search across historical formulation database: "find formulas with viscosity 1000–2000 cP and preservative content <0.5%". Semantic search on chemical descriptions. Substitution engine: ingredient discontinued → ML proposes an alternative that preserves key properties.
What Does System Development Include?
- Data analysis: collection of historical formulations, test results, constraints.
- Surrogate model building: training ML models to predict properties.
- Bayesian Optimization implementation: tuning acquisition function, multi-objective handling.
- Integration with LIMS: automatic data transfer from the laboratory information system.
- Validation: testing on a holdout set, comparison against baseline.
- Documentation and training: instructions for technologists, handover of the model to production.
- 6-month support: model adjustments as more data accumulates.
Work Process
| Phase | Timeline | Result |
|---|---|---|
| Analytics | 1–2 weeks | Constraints defined, data collected |
| Design | 2–3 weeks | ML methods selected, system architecture |
| Implementation | 4–8 weeks | Surrogate models developed, LIMS integration |
| Testing | 2–4 weeks | Validation on real formulations, iterations |
| Deployment | 1–2 weeks | Rollout, team training |
Total timeline: 3 to 5 months. Exact estimate after audit of data and constraints.
Typical Mistakes in Implementing AI Formulation Optimization
- Ignoring raw material variability: a model trained on one batch fails on another.
- Too few initial data: Bayesian Optimization needs at least 20–50 experiments to start.
- Ignoring multi-objective: optimizing only cost leads to quality loss.
- Lack of human oversight: AI suggests optimal composition, but technologist must confirm.
We guarantee the system will account for all technological and regulatory constraints. We provide model correctness certificates based on validation results.
Want to evaluate the potential of AI optimization for your formulations? Contact us — we will conduct a data audit and provide a preliminary estimate. Get a free consultation with an AI/ML engineer.







