Computer-assisted structure elucidation

AilsaAI + LSD + agents

Ailsa determines the structure of an organic compound from its raw NMR spectra. Language-model agents do the expert work of a spectroscopist: they pick and filter peaks, turn the spectra into constraints for Jean-Marc Nuzillard's structure generator LSD, revise those constraints when LSD finds no solution or too many, and rank the candidates by predicted 13C shifts.

Benchmark · Claude Opus 5 · 2026

256 blind runs on experimental data from nmrXiv

180correct structure ranked first (70.3%)
191in the top ten (74.6%)
8 to 39heavy atoms per compound

Every run started from Bruker 1D and 2D spectra and the molecular formula, without the name of the compound, and a separate script graded the reports against the answers. The explorer shows each dataset: the correct structure beside Ailsa's candidates, how well each candidate fits the 13C spectrum atom by atom, which correlation supports which bond, and how the run went.

Open the benchmark explorer →

How a run works

  1. Ailsa reads the processed Bruker data, typically 1H, 13C with DEPT or an edited HSQC, COSY and HMBC, together with the molecular formula.

  2. The agents pick and filter peaks, assign multiplicities and hybridisation, and write the LSD input: one numbered atom per carbon signal, its attached hydrogens, and every HSQC, COSY and HMBC correlation as a constraint.

  3. LSD returns every constitution that satisfies these constraints. When it finds none or too many, the agents revise the constraints and run it again.

  4. The candidates are ranked by comparing predicted with observed 13C shifts, atom by atom.

  5. Because LSD keeps the atom numbering of its input, the answer comes with an assignment of every observed signal and correlation to its atoms, so it can be checked against the spectra.

The agents

A coordinator runs the elucidation and calls specialists, each with its own instructions and tools:

NMR chemistPeak picking, multiplicities, hybridisation, spectral quality.
LSD engineerWrites the solver input, adds correlations, runs LSD.
Devil's advocateChecks every solver input before LSD runs.
Solution analystRanks the candidates and writes the final report.
Diagnostic specialistCalled when a run is stuck with no solution or too many.

Get started

Ailsa is open source under the MIT licence. The command-line toolkit installs from PyPI; the agents run in Claude Code.

pip install ailsa
ailsa skill install ailsa --target claude

Source code, documentation and installation details: github.com/steinbeck/ailsa.

Built on LSD

The structures are generated by LSD (Logic for Structure Determination), created and maintained by Jean-Marc Nuzillard. Work that uses Ailsa must cite LSD; see the LSD website for the preferred reference, for example:

B. Plainchont, V. P. Emerenciano, J.-M. Nuzillard. Recent advances in the structure elucidation of small organic molecules by the LSD software. Magn. Reson. Chem. 2013, 51, 447-453.

Ailsa also builds on RDKit, nmrglue and HOSE-code statistics from COCONUT and NMRShiftDB. A paper describing Ailsa and the benchmark is in preparation.