MetaboT: an LLM-based multi-agent framework for interactive analysis of mass spectrometry metabolomics knowledge graphs
Mass spectrometry-based metabolomics generates complex, high-dimensional data that holds vast potential for biological discovery but remains difficult to integrate and interpret. Knowledge graphs (KGs) unify this heterogeneous information by representing spectra, annotations, taxa, chemical classes, and biological activities as a single interoperable network; however, their practical use is limited by the steep learning curve of corresponding specialized representation and query languages. Here we introduce MetaboT, an open-source multi-agent Large Language Model (LLM) framework that translates natural-language questions into executable SPARQL queries over metabolomics knowledge graphs. MetaboT is designed to mitigate the hallucination and schema-compliance limitations of single-model approaches through a modular architecture in which specialised agents handle scope validation, entity resolution against authoritative resources, schema-aware query generation, iterative refinement, and result interpretation. We validated MetaboT on the Experimental Natural Products Knowledge Graph (ENPKG), using an expert-authored benchmark of natural-language questions paired with reference SPARQL queries, and demonstrate its ability to answer complex questions about plant–metabolite relationships and biological activities, achieving 83.67% accuracy versus 8.16% for a single-shot baseline and reducing schema-mismatch errors to a single residual case in our benchmark. MetaboT lowers the technical barrier for metabolomics researchers and enables semantic data mining without specialised programming expertise. Scientific contribution MetaboT introduces a multi-agent LLM architecture that grounds each step of natural-language-to-SPARQL translation in authoritative identifier resolution and schema-aware validation, substantially reducing the hallucinations observed with single-model baselines. The framework couples orchestrated agents with domain-specific tools for chemical, taxonomic, and biological target resolution, and with an iterative refinement loop that distinguishes query-construction errors from genuine data absence. Released as open-source software with an archived evaluated version, a reusable benchmark, and a public web demonstrator, MetaboT provides a reproducible reference implementation for knowledge-graph-driven exploration of mass spectrometry metabolomics data.
Authors
- Marco Pagni (ORCID: https://orcid.org/0000-0001-9292-9463)
- Florence Mehl (ORCID: https://orcid.org/0000-0002-9619-1707)
- Olivier Kirchhoffer (ORCID: https://orcid.org/0000-0001-7567-1050)
- Franck Michel (ORCID: https://orcid.org/0000-0001-9064-0463)
- Fabien Gandon (ORCID: https://orcid.org/0000-0003-0543-1232)
- Soha Hassoun (ORCID: https://orcid.org/0000-0001-9477-2199)
- Yousouf Taghzouti (ORCID: https://orcid.org/0000-0003-4509-9537)
- Jean‐Luc Wolfender (ORCID: https://orcid.org/0000-0002-0125-952X)
- Wout Bittremieux (ORCID: https://orcid.org/0000-0002-3105-1359)
- Louis‐Félix Nothias (ORCID: https://orcid.org/0000-0001-6711-6719)
- Emma Tysinger (ORCID: https://orcid.org/0000-0002-3958-8097)
- Lucas Pradi (ORCID: https://orcid.org/0009-0003-8641-6268)
- Yan Zhou Chen
- Madina Bekbergenova
- Benjamin Navet
- Matthieu Feraud
- Martin Legrand
- Tao Jiang (ORCID: https://orcid.org/0000-0002-5293-3916)
Institutions
- University of Geneva (CH)
- Tufts University (US)
- SIB Swiss Institute of Bioinformatics (CH)
- Centre National de la Recherche Scientifique (FR)
- Institut national de recherche en sciences et technologies du numérique (FR)
- University of Antwerp (BE)
- HES-SO University of Applied Sciences and Arts Western Switzerland (CH)
- Université Côte d'Azur (FR)
- Institut de Chimie de Nice (FR)
- Fondation Sophia Antipolis (FR)
- ProbaYes (France) (FR)
- Massachusetts Institute of Technology (US)
Publication Details
- Journal
- Journal of Cheminformatics
- Published
- 2026-07-24
- DOI
- https://doi.org/10.1186/s13321-026-01257-8
- Primary Topic
- Metabolomics and Mass Spectrometry Studies
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Agence Nationale de la Recherche
- Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung
- Fonds Wetenschappelijk Onderzoek