AnyLearn
All lessons
Scienceintermediate

Closed-Loop Autonomous Labs for Inorganic Synthesis

How a self-driving lab turns predicted crystals into real powders: choosing targets, borrowing first recipes from the literature, reading products with machine-learned XRD analysis, and using reaction driving forces to decide the next experiment after a failure, with the A-Lab as the worked example of what automation speeds up and what it cannot settle.

Updated · AI-authored, review-gated · how lessons are made

Progress1 / 10

From a hull to a furnace

A convex hull says a crystal should be stable. It says nothing about how to make it. For most inorganic materials, the route is solid-state synthesis, and every step hides choices:

  1. Choose precursors. Which oxides, carbonates or phosphates supply the elements? Different precursor sets can lead to the same target or to completely different products.
  2. Weigh and mix them in the right ratio, as fine powders in close contact.
  3. Heat to a chosen temperature for a chosen time, in a chosen atmosphere.
  4. Characterise the product, usually by powder X-ray diffraction (XRD), and work out which phases formed and in what amounts.

Solids react only where grains touch, so reactions are slow and often stall at intermediate phases that soak up the energy that should have driven the target to form. Choosing a recipe is therefore a search problem with expensive, hours-long evaluations. An autonomous lab automates that search: robots run the steps, models read the results, and an algorithm decides the next experiment without waiting for a person.

Sign in free to save your progress and earn certificates.

Full lesson text

All 10 steps on one page, for reading, reference, and search.

Show

1. From a hull to a furnace

A convex hull says a crystal should be stable. It says nothing about how to make it. For most inorganic materials, the route is solid-state synthesis, and every step hides choices:

  1. Choose precursors. Which oxides, carbonates or phosphates supply the elements? Different precursor sets can lead to the same target or to completely different products.
  2. Weigh and mix them in the right ratio, as fine powders in close contact.
  3. Heat to a chosen temperature for a chosen time, in a chosen atmosphere.
  4. Characterise the product, usually by powder X-ray diffraction (XRD), and work out which phases formed and in what amounts.

Solids react only where grains touch, so reactions are slow and often stall at intermediate phases that soak up the energy that should have driven the target to form. Choosing a recipe is therefore a search problem with expensive, hours-long evaluations. An autonomous lab automates that search: robots run the steps, models read the results, and an algorithm decides the next experiment without waiting for a person.

2. Anatomy of a closed loop

Every closed-loop lab, whatever its chemistry, has the same five roles. The A-Lab (Szymanski et al., Nature, 2023), built for inorganic powders, is a well-documented example of each:

RoleJobA-Lab implementation
Target selectorDecide what is worth makingComputed stability from Materials Project, cross-checked with Google DeepMind data
PlannerPropose recipesLanguage models trained on text-mined synthesis literature
ExecutorRun the experimentRobot arms, a powder-dosing station, four box furnaces
CharacteriserMeasure the productAutomated powder XRD
Interpreter and deciderTurn data into the next actionML phase identification, Rietveld refinement, active learning

The decider is what makes the loop closed. Many self-driving labs use Bayesian optimisation for that step, treating the experiment as a black box to optimise (the mechanism is taught in the Bayesian Optimization path). The A-Lab instead used chemistry-specific reasoning about reaction pathways, covered below.

3. One turn of the loop

Each turn takes hours, dominated by heating. The A-Lab heated samples in batches of up to eight with a typical four-hour dwell, so the loop's value comes less from speed per experiment than from running continuously and never repeating an experiment it can already predict the outcome of.

sequenceDiagram
participant P as Planner
participant R as Robots and furnaces
participant X as Diffractometer
participant A as Analysis models
P->>R: Precursors, ratios, temperature
R->>X: Heated and ground powder
X->>A: Diffraction pattern
A->>P: Phases and weight fractions
P->>P: Update reaction database, pick next recipe

4. Choosing what to make

Target selection is a second screening funnel bolted onto the computational one from the previous lesson. The A-Lab paper reports these filters:

  • Computed stability. Theoretical compounds not in the Inorganic Crystal Structure Database, predicted on or within 10 meV/atom of the convex hull.
  • Practical chemistry. No compounds with two or fewer elements, no radioactive, rare or toxic elements, no unusual oxidation states.
  • Air stability. No predicted reaction with O₂, CO₂ or H₂O, since the robots work in open air.
  • Precursor availability. The lab can only dose powders it stocks.

The paper reports the funnel narrowing from 432 candidates to 146 air-stable ones, then to 57 targets chosen by precursor availability.

Key idea: Each filter encodes a real constraint of the hardware or the chemistry. A target list is a statement about what a specific lab can test, not a ranking of the most important materials.

5. First guesses from the literature

With no experiments yet on a brand-new compound, where does the first recipe come from? The same place a chemist's comes from: analogy with similar compounds that have been made before.

The A-Lab's planner used a natural-language similarity model trained on about 33,000 text-mined synthesis procedures from roughly 24,000 publications (as reported by Szymanski et al.). Given a target, it finds chemically similar known materials, borrows their precursors, and proposes up to five precursor sets. A second ML model, trained on the same literature, predicts a heating temperature.

This step is pure pattern-matching over human history, and it was the workhorse of the run: the paper reports that 30 of the 36 confirmed successes came from these literature-inspired recipes.

Gotcha: Literature-trained planners inherit the literature's biases. Chemistries that are rarely published, and failed attempts that are almost never published, are invisible to them. A planner trained this way is strongest exactly where the target resembles known compounds.

6. Reading the product

A powder diffraction pattern is a set of peaks whose positions encode lattice spacings and whose intensities encode where the atoms sit. A mixture produces the overlaid patterns of all its phases. Turning a pattern into "which phases, how much of each" is the step that decides whether an experiment counts as a success.

The A-Lab automated it in two stages:

  1. Phase identification by a convolutional neural network trained on simulated patterns of known structures, with experimental artefacts added. Monte Carlo dropout turns one network into an ensemble of 100, giving an uncertainty estimate.
  2. Automated Rietveld refinement, fitting a full physical model of the candidate phases to the measured pattern to confirm the identification and estimate weight fractions.

Gotcha: Diffraction cannot always tell an ordered compound from a disordered one with the same average structure. When two similar cations share one site at random instead of occupying separate sites, the extra "superstructure" peaks of the ordered model vanish or become very weak, and the two patterns look nearly alike. This exact ambiguity is at the centre of the debate in the next lesson.

7. Learning from failure: driving force

When the first recipes fail, the A-Lab's active-learning algorithm (ARROWS3) reasons about why. It rests on two hypotheses stated in the paper: solid-state reactions tend to proceed pairwise, two phases at a time, and routes through intermediates that leave only a small driving force for the final step should be avoided, because they need long times and high temperatures.

The driving force of a step is the free-energy drop it releases:

ΔGstep=Gproducts−Greactants<0\Delta G_{\text{step}} = G_{\text{products}} - G_{\text{reactants}} < 0

The paper's example is CaFe₂P₂O₉. One route formed FePO₄ and Ca₃(PO₄)₂ first, leaving only 8 meV/atom to form the target.

Predict first

An alternative route goes through the intermediate CaFe₃P₃O₁₃, which then reacts with CaO with a driving force of 77 meV/atom. Which route should the next experiment use, and why?

Every observed pairwise reaction goes into a shared database. The run logged 88 of them, and the paper reports this pruned the recipe search space by up to 80%.

8. Code: the decision rule in miniature

The real algorithm computes driving forces from Materials Project energies with an ML correction for vibrational entropy. Its core decision, though, fits in a few lines. This sketch uses the CaFe₂P₂O₉ numbers above and the A-Lab's observation that steps below about 50 meV/atom tended to be sluggish:

MIN_DF = 50  # meV/atom; slower kinetics were seen below this

routes = {
    "via FePO4 + Ca3(PO4)2": {"inter": ["FePO4", "Ca3(PO4)2"], "final_df": 8},
    "via CaFe3P3O13 + CaO":  {"inter": ["CaFe3P3O13", "CaO"],  "final_df": 77},
}
failed = {frozenset(["FePO4", "Ca3(PO4)2"])}   # learned from earlier runs

def next_route(routes, failed):
    live = [(n, r) for n, r in routes.items()
            if frozenset(r["inter"]) not in failed]
    live.sort(key=lambda nr: nr[1]["final_df"], reverse=True)
    good = [n for n, r in live if r["final_df"] >= MIN_DF]
    return good[0] if good else (live[0][0] if live else None)

print(next_route(routes, failed))   # via CaFe3P3O13 + CaO

Two ideas carry the weight: never retry an intermediate set that already failed, and among the rest prefer the route whose last step keeps the most driving force.

9. What the run produced

The A-Lab ran for 17 days of continuous operation and performed 353 experiments (Szymanski et al., Nature, 2023). The original paper reported 41 of 58 targets obtained. A published Author Correction removed one target that had been mistakenly included in the training data and, after manual re-analysis of the diffraction data, reports 36 confirmed successes with 4 inconclusive from XRD alone. Active learning improved yields for 9 targets, 6 of which had zero yield from the literature recipes.

The 17 failures are as informative as the successes:

Why A-Lab targets were not obtained
targets051015113111Slow kineticsDFT inaccuracyPrecursor volatilityAmorphizationMetastable target
Source: Szymanski et al., Nature 2023, failure analysis of 17 unobtained targets

Kinetics dominates: thermodynamics said the targets should exist, but no tried pathway got there in the time and temperature budget. The paper reports that two of the slow-kinetics targets were later obtained by manual regrinding and reheating.

10. What automation does and does not buy

A closed-loop lab changes the cost of an experiment, not the standard of evidence for its conclusions.

Automation does wellStill needs expert judgement
Running hundreds of recipes without fatigueDeciding whether a target is actually new to science
Never repeating a pathway already known to failDistinguishing ordered from disordered phases in ambiguous patterns
Logging every attempt, including failuresJudging whether a material is useful, not just makeable
Systematic exploration of precursor and temperature choicesSpotting that a "new" compound is a known one under another name

The right-hand column is not a list of temporary gaps; it is where materials claims are won or lost. The A-Lab's own correction rests on exactly those points: what "new" meant, and what diffraction alone could establish.

In practice: Read an autonomous-lab paper as two claims. The throughput claim (experiments run, recipes improved) is usually solid and easy to check. The discovery claim (new materials made) needs the separate scrutiny the final lesson of this path sets out.

Check your understanding

The lesson ends with a 5-question quiz. Take it in the player above to see your score.

  1. In the A-Lab, which component produced the first recipe for a never-before-made target?
    • A Bayesian optimiser sampling random precursor combinations
    • A language model that found similar known materials in text-mined literature and borrowed their precursors
    • A density functional theory calculation of the reaction pathway
    • A human chemist who entered recipes each morning
  2. ARROWS3 prefers precursor routes that do what?
    • Use the lowest possible heating temperature regardless of intermediates
    • Form as many intermediates as possible to spread the reaction out
    • Maximise the formation energy of the first intermediate
    • Keep a large driving force for the final, target-forming step
  3. What was the most common reason an A-Lab target was not obtained?
    • Slow reaction kinetics
    • Precursor volatility
    • Robot hardware failures
    • Incorrect DFT stability predictions
  4. Why can powder XRD struggle to separate a predicted ordered compound from a disordered one?
    • XRD cannot detect oxygen atoms at all
    • Disordered phases produce no diffraction peaks
    • When similar cations share sites randomly, the ordered model's extra superstructure peaks vanish or become very weak
    • Ordered compounds always melt during the measurement
  5. Which part of an autonomous-lab paper is usually the easiest to verify?
    • That every product is new to science
    • The throughput claim: how many experiments ran and which recipes improved
    • That every product will prove useful in a device
    • That the predicted ordered structures match the real atomic arrangement

Related lessons

Science
intermediate

Predicted, Made, Proven: Judging a Materials Discovery Claim

How to tell a predicted crystal from a validated new material. Builds an evidence ladder from predicted stable to useful, explains why zero-kelvin calculations invent atomic order that real samples lack, and applies the ladder to three documented cases: a large prediction database, an autonomous lab, and a generative model.

10 steps·~15 min
Science
intermediate

Screening Funnels and the Convex Hull: Which Crystals Are Worth Making

How computational screening decides which hypothetical crystals deserve a synthesis attempt: building the convex hull, computing energy above the hull, choosing a metastability threshold, why formation-energy accuracy does not mean stability accuracy, and how benchmarks like Matbench Discovery measure an ML pre-filter honestly.

10 steps·~15 min
AI
advanced

Measuring Continual Learning: Scenarios, Transfer Metrics, and Honest Baselines

The same method can score 99% or 21% on one benchmark depending on what the model is told at test time. Learn the task-, domain- and class-incremental scenarios, the accuracy matrix with backward and forward transfer, and the protocol choices and baselines that make a continual learning result trustworthy.

9 steps·~14 min
AI
advanced

Fixing Forgetting: Replay, Regularisation, and Parameter Isolation

The three families of continual learning methods, taken apart: experience and generative replay, gradient projection with GEM, weight penalties from EWC and synaptic intelligence, distillation, and per-task adapters. Includes a runnable PyTorch comparison of EWC and replay, and a table for choosing among them.

9 steps·~14 min