Mass Spectrometry AI: Faster Molecule Identification
See how AI agents combine chemical reasoning with mass spectrometry tools to identify molecules faster, reduce manual analysis and support expert review.

How AI Can Turn Mass Spectra Into Molecular Evidence
A mass spectrometer can detect thousands of signals from a sample, but a detected signal doesn't automatically tell you what molecule caused it. In tandem mass spectrometry (MS/MS), researchers trigger a charged molecule to fragment and then measure the masses of the resulting pieces. Those fragments can be highly informative, but turning them into a specific molecular structure takes expertise, careful interpretation, database searching, and checks against what chemistry can plausibly support.
That's the bottleneck in practice: spectral libraries cover only a slice of the compounds people actually care about, and manually working through every unknown spectrum can take far longer than most studies can afford. Google's Mass Spec Skills for Antigravity aims to close that gap by pairing an AI agent's coordination and reasoning with established mass spectrometry software and chemical databases. The goal isn't to replace analytical chemists. It's to automate more of the evidence-gathering work so chemists can focus on the judgments that matter.
This article walks through how the workflow works, what the reported benchmark results do and don't show, where it could change day-to-day research, and why expert review still remains necessary.
Why Do Most Mass Spectrometry Signals Stay Unidentified?
Mass spectrometry is used to study small molecules in samples such as blood, soil, and plant tissue. Those samples can include hormones, nutrients, medicines, pollutants, and natural products. Depending on the experiment, a single extract can produce tens of thousands of signals - each one a measured ion under particular conditions.
In MS/MS, the instrument selects an ion and breaks it apart. The fragment masses can point toward a structure, but the output doesn't come with a plain-language label. A researcher has to determine which molecular structures could plausibly produce the observed fragments.
Why reference libraries leave a large gap
A straightforward approach is to compare an unknown spectrum with reference spectra measured from known compounds. This works when there's a suitable reference and when experimental conditions line up closely enough. The problem is coverage: spectral libraries don't include spectra for most compounds researchers might encounter.
According to the source material for Google's announcement, spectral searches annotate about 5% of measured spectra on average, rising to around 10% for human samples. That means the majority of signals don't land on a confident library match. Some of those signals likely correspond to compounds that exist in public chemical databases, but whose spectra were never recorded. Others may be truly unknown.
It's worth separating two ideas: "no library match" doesn't automatically mean "new molecule." It more often means "the reference-search route didn't find it."
Why the manual alternative does not scale
When there's no useful reference spectrum, analytical chemists can infer a structure from the evidence. A common path is to estimate a molecular formula, pull candidate structures with that formula from a chemical database, and then test whether each candidate could generate the observed fragments - using plausible bond breakages and fragmentation behavior.
This is manageable for a handful of spectra, but it becomes a different kind of workload at scale. With thousands of signals, the same careful work has to happen repeatedly, often while researchers also deal with sample prep, instrument quality, and interpretation across the rest of the study.
The practical result is a queue of signals that could be interesting, but can't all receive the same depth of attention. In settings like drug discovery or environmental monitoring, that slow prioritization can mean potentially important compounds never get pursued. The bottleneck isn't missing data. It's the cost - time and labor - of turning that data into defensible structural hypotheses.
How Does the AI Workflow Identify a Molecule?
Mass Spec Skills for Google Antigravity connects a language-model agent to established mass spectrometry software and public chemical databases. A researcher can describe a task in plain language and include relevant instrument tolerances. The agent can then choose and run the right skills, combine their outputs, and produce an evidence report for review.
One key design choice is how the work is divided. The language model coordinates the overall process and helps interpret results across steps. The specialized tools do the parts that need precise calculations, domain-specific algorithms, and database operations. A general-purpose model relying only on a peak list isn't a dependable substitute for those components.
A practical sequence from spectrum to candidates
A typical end-to-end analysis can follow this sequence:
- Prepare the spectrum. Filter noise and reduce a raw recording to a more useful set of peaks.
- Search reference libraries. Check whether a measured spectrum already exists for a known compound.
- Estimate the molecular formula. Use precursor and fragment information, with the relevant mass tolerances, to constrain possible compositions.
- Retrieve candidate structures. Search a chemical database for compounds matching the formula.
- Score candidate fragments. Compare predicted fragments and neutral losses with the measured spectrum.
- Check chemical plausibility. Examine whether the candidate's bonds and functional groups can explain the key fragments.
- Report the evidence. Present the proposed structure, peak assignments, and remaining uncertainties for a chemist to assess.
These stages can also be run independently. In some cases, a researcher might use the system just to clean up a noisy spectrum, annotate peaks, or compare a short list of candidate isomers. That matters because an automated workflow doesn't have to be "all or nothing" to be useful.
Why fragment coverage is not proof
It's possible for multiple candidates to match many peaks by mass and still be wrong chemically. If a score relies mainly on how much of the spectrum a candidate covers, it may reward structures that explain the signal distribution while missing whether the required fragments could realistically come from the candidate's bonds.
The source's worked example illustrates the point. For a negative-mode spectrum with a precursor at m/z 395.1387, the workflow estimated the formula C20H21ClN6O and searched 845 isomers in PubChem. Two candidates matched 14 of 19 processed peaks, representing 97.7% of the summed fragment intensity. Coverage alone didn't separate them.
Next, the workflow considered fragmentation pathways. Complementary fragments pointed to a central urea linkage, and sequential losses of hydrogen chloride and isocyanic acid supported that interpretation. Candidates without the relevant linkage could be rejected even though their peak coverage looked strong. Then the remaining close isomers were separated with additional fragment evidence.
That's a more convincing role for AI than simply ranking candidates: it connects measured peaks to a chemical explanation and makes the reasoning visible for inspection.
What Do the Benchmark Results Actually Show?
Google evaluated Antigravity on 100 compounds sampled from the Enamine REAL MS/MS collection in MoNA, with the compounds also catalogued in PubChem. The evaluation filtered out recordings considered under-fragmented (for example, spectra dominated by an intact precursor or a dimer that barely broke apart). So the benchmark tested a selected set of usable spectra, not every type of real-world recording.
The study compared three configurations: a model without internet access or specialist skills; a model with permitted internet access; and a model with internet access plus Mass Spec Skills. It tested a lightweight Gemini model along with two frontier models. Each spectrum received three attempts, and attempts that exceeded a one-hour limit counted as failures.
The reported accuracy depends on the tools
With no internet access or specialist skills, exact identification accuracy stayed below 4% across the tested models. That's a useful warning against assuming a language model can infer a precise chemical structure just from a peak list.
Internet access alone helped with searching, but the custom scripts it created were brittle around precursor windows, adducts, and noisy peaks. In this setup, the frontier models missed about a quarter to a third of the spectra, while the lightweight model missed more than three-quarters.
With Mass Spec Skills, the three models identified and verified the exact molecule in around 97% of attempts on this benchmark. The lightweight model's reported accuracy was similar to the frontier models. The skills also reduced generated tokens per attempt - by nearly four times for the lightweight model, around half for one frontier model, and nearly a fifth for the other - relative to the specified comparison setup.
What the number does not mean
The 97% figure isn't a promise that the system will identify 97% of unknown molecules in any lab, sample type, or instrument configuration. The evaluation used compounds whose structures were already catalogued and spectra that passed a quality filter. It tested identification against a known answer under defined conditions.
A more accurate takeaway is narrower: when the correct compound has a reference or can be retrieved from a database, and the input spectrum is suitable, combining the agent with validated tools performs far better than asking a model to improvise the analysis. That supports the value of a tool-integrated workflow - not the claim that AI alone has solved de novo chemical structure elucidation.
If you're evaluating similar systems, the benchmark design matters as much as the headline number. Look at what counted as a successful identification, what data were excluded, whether the molecules were known in advance, and how the evaluation treated failures. Those details determine whether the benchmark resembles the work your lab actually needs to do.
Where Could This Change Research Workflows?
The most immediate impact is operational. If a study produces thousands of spectra, automating the routine steps - reference searching, formula checks, and candidate comparisons - can help researchers process more signals before deciding which ones deserve deeper manual attention.
In natural-product research, for instance, extracts can contain many compounds with potential biological activity. A faster first pass could help a team prioritize features associated with a metabolite class of interest, then spend scarce lab time on the most promising candidates. In environmental work, a similar approach could sort large sets of chemical signals into known matches, plausible candidates, and unresolved cases.
Treat the agent as an analytical assistant
A sensible way to deploy this is not to make the AI the final authority. Use it to produce structured, reviewable outputs: a cleaned spectrum, a formula hypothesis, candidate structures, assigned peaks, and explanations for important neutral losses. A chemist then focuses on the decisions that require domain judgment.
This can improve throughput without removing accountability. The software handles the repetitive groundwork; the researcher checks whether the evidence holds up for the intended claim. A tentative database match may be enough to decide what to study next, but it may not be enough to publish a definitive structural assignment or make a consequential safety decision.
Measure the value in the whole process
A faster answer isn't automatically a better research or business outcome. Teams should look at the workflow end to end, including:
- Time to a reviewable hypothesis: not just time to the first candidate.
- Expert review effort: whether the report makes verification easier or adds another layer to inspect.
- Useful coverage: the share of signals that reach a meaningful, evidence-supported status.
- Error handling: how often the system flags ambiguity instead of presenting a confident but weak match.
- Cost per analysed spectrum: including compute, software setup, and specialist review.
The reported reduction in generated tokens suggests the skills can reduce the effort spent improvising tool calls and debugging one-off scripts. But tokens are only one cost. Integration, data governance, and review time still matter when you move from a demo to a real production workflow.
What Are the Limits of AI-Based Identification?
Some structural questions can't be answered from an MS/MS spectrum alone. Mirror-image molecules and certain closely related isomers can fragment in nearly identical ways. Sorting them out may require additional measurements such as chromatographic retention time, ion mobility, or nuclear magnetic resonance (NMR).
So a system should be able to say when the available evidence doesn't resolve the question. Producing a ranked list isn't the same as proving that the top candidate is uniquely correct.
New molecules remain a different problem
If a molecule doesn't exist in a chemical database, a database search can't retrieve and confirm its structure. The agent may still provide useful constraints - like a likely formula, fragment assignments, and structural features supported by the observed peaks. Those outputs can help a chemist start de novo elucidation, but they aren't the same as a database-confirmed identification.
This distinction matters in natural-product discovery, where genuinely novel compounds are part of the goal. The workflow can narrow the search space, but further experiments and expert interpretation may still be needed to establish the full structure.
Keep provenance and review in the workflow
For research teams, an auditable report is more useful than a bare answer. The report should make it clear which tools were used, what candidate structures were retrieved, which peaks support the proposed structure, and which assumptions shaped the analysis. That makes it possible to challenge a result, reproduce a step, or hand the work to another researcher.
The agent can lower the barrier to using specialist tools, but that doesn't remove the need for scientific review. Researchers still need to check spectrum quality, instrument-specific tolerances, candidate plausibility, and whether the evidence is strong enough for the decision being made. The practical standard isn't blind trust in the model. It's a workflow where the reasoning can be inspected and uncertainty can be acted on.
Key Takeaways
- Mass spectrometry produces rich molecular evidence, but reference libraries cover only a fraction of observed signals.
- AI agents are most useful when they coordinate established chemistry tools rather than trying to identify molecules from peak lists alone.
- Peak coverage isn't proof: candidates must also explain plausible fragmentation pathways.
- The reported 97% result applies to a selected benchmark of known compounds, not to every unknown molecule or lab workflow.
- Use the system to speed up analysis and prioritization while keeping chemists responsible for interpretation and final claims.
Conclusion
Mass Spec Skills for Antigravity offers a practical way to apply AI in scientific work: use the model to coordinate specialized tools, not to replace the calculations and chemical evidence those tools provide. The workflow can speed up database-supported identifications, organize evidence for review, and help researchers prioritize spectra that would otherwise remain unannotated.
But the boundary is important too. A strong benchmark result on known compounds doesn't settle every unknown structure, and a ranked candidate isn't automatically a confirmed identification. For research teams, the next step is to test the workflow on your own spectra, define what evidence you need for each decision, and keep expert review in the loop.