MetaboT: AI-based agent for natural language-based interaction with metabolomics knowledge graphs

📅 2025-10-02
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Existing metabolic knowledge graphs (e.g., ENPKG) pose high interaction barriers for biomedical researchers due to the necessity of ontology expertise and SPARQL proficiency. Method: This paper proposes a multi-agent natural language interface built upon LangChain/LangGraph, orchestrating specialized agents for query parsing, chemical identifier standardization (e.g., InChI/SMILES conversion), semantic validation, and domain-compliant SPARQL generation. Contribution/Results: Evaluated on 50 real-world queries, our system achieves an 83.67% SPARQL generation accuracy—markedly surpassing a prompt-engineering baseline using GPT-4o (8.16%). The framework ensures both semantic fidelity and domain adherence, enabling accurate, low-barrier access to metabolic knowledge graphs without requiring users to master formal query languages or ontological schemas. This establishes a novel paradigm for accessible, high-precision knowledge graph interrogation in biomedicine.

Technology Category

Application Category

📝 Abstract
Mass spectrometry metabolomics generates vast amounts of data requiring advanced methods for interpretation. Knowledge graphs address these challenges by structuring mass spectrometry data, metabolite information, and their relationships into a connected network (Gaudry et al. 2024). However, effective use of a knowledge graph demands an in-depth understanding of its ontology and its query language syntax. To overcome this, we designed MetaboT, an AI system utilizing large language models (LLMs) to translate user questions into SPARQL semantic query language for operating on knowledge graphs (Steve Harris 2013). We demonstrate its effectiveness using the Experimental Natural Products Knowledge Graph (ENPKG), a large-scale public knowledge graph for plant natural products (Gaudry et al. 2024).MetaboT employs specialized AI agents for handling user queries and interacting with the knowledge graph by breaking down complex tasks into discrete components, each managed by a specialised agent (Fig. 1a). The multi-agent system is constructed using the LangChain and LangGraph libraries, which facilitate the integration of LLMs with external tools and information sources (LangChain, n.d.). The query generation process follows a structured workflow. First, the Entry Agent determines if the question is new or a follow-up to previous interactions. New questions are forwarded to the Validator Agent, which verifies if the question is related to the knowledge graph. Then, the valid question is sent to the Supervisor Agent, which identifies if the question requires chemical conversions or standardized identifiers. In this case it delegates the question to the Knowledge Graph Agent, which can use tools to extract necessary details, such as URIs or taxonomies of chemical names, from the user query. Finally, an agent responsible for crafting the SPARQL queries equipped with the ontology of the knowledge graph uses the provided identifiers to generate the query. Then, the system executes the generated query against the metabolomics knowledge graph and returns structured results to the user (Fig. 1b). To assess the performance of MetaboT we have curated 50 metabolomics-related questions and their expected answers. In addition to submitting these questions to MetaboT, we evaluated a baseline by submitting them to a standard LLM (GPT-4o) with a prompt that incorporated the knowledge graph ontology but did not provide specific entity IDs. This baseline achieved only 8.16% accuracy, compared to MetaboT's 83.67%, underscoring the necessity of our multi-agent system for accurately retrieving entities and generating correct SPARQL queries. MetaboT demonstrates promising performance as a conversational question-answering assistant, enabling researchers to retrieve structured metabolomics data through natural language queries. By automating the generation and execution of SPARQL queries, it removes technical barriers that have traditionally hindered access to knowledge graphs. Importantly, MetaboT leverages the capabilities of LLMs while maintaining experimentally grounded query generation, ensuring that outputs remain aligned with domain-specific standards and data structures. This approach facilitates data-driven discoveries by bridging the gap between complex semantic technologies and user-friendly interaction. MetaboT is accessible at [https://metabot.holobiomicslab.eu/], and its source code is available at [https://github.com/HolobiomicsLab/MetaboT].
Problem

Research questions and friction points this paper is trying to address.

Overcoming technical barriers in accessing metabolomics knowledge graphs through natural language
Translating user questions into SPARQL queries without requiring query language expertise
Automating complex query generation for structured metabolomics data retrieval
Innovation

Methods, ideas, or system contributions that make the work stand out.

AI agents translate natural language to SPARQL queries
Multi-agent system breaks tasks into specialized components
Automated query generation bridges knowledge graphs and users
🔎 Similar Papers
No similar papers found.
M
Madina Bekbergenova
Université Côte d'Azur, CNRS, ICN, Nice, France & Interdisciplinary Institute for Artificial Intelligence (3iA) Côte d'Azur, Sophia-Antipolis, France & Department of Computer Science & University of Antwerp, Antwerp, Belgium
L
Lucas Pradi
Université Côte d'Azur, CNRS, ICN, Nice, France & Interdisciplinary Institute for Artificial Intelligence (3iA) Côte d'Azur, Sophia-Antipolis, France
B
Benjamin Navet
Université Côte d'Azur, CNRS, ICN, Nice, France & Interdisciplinary Institute for Artificial Intelligence (3iA) Côte d'Azur, Sophia-Antipolis, France
E
Emma Tysinger
Université Côte d'Azur, CNRS, ICN, Nice, France & Interdisciplinary Institute for Artificial Intelligence (3iA) Côte d'Azur, Sophia-Antipolis, France; INRIA, Université Côte d’Azur, CNRS, I3S, France & Interdisciplinary Institute for Artificial Intelligence (3iA) Côte d'Azur, Sophia-Antipolis, France
Franck Michel
Franck Michel
Université Côte d'Azur, CNRS, Inria, I3S
Knowledge GraphsSemantic WebLinked DataOpen DataBiodiversity
M
Matthieu Feraud
Université Côte d'Azur, CNRS, ICN, Nice, France & Interdisciplinary Institute for Artificial Intelligence (3iA) Côte d'Azur, Sophia-Antipolis, France
Yousouf Taghzouti
Yousouf Taghzouti
Univ. Côte d'Azur, Inria, ICN, I3S, France
Knowledge RepresentationSemantic WebArtificial IntelligenceLLMContent Negotiation
Y
Yan Zhou Chen
Department of Computer Science, Tufts University, Medford, MA 02155, USA
O
Olivier Kirchhoffer
Institute of Pharmaceutical Sciences of Western Switzerland, University of Geneva, Centre Médical Universitaire, Geneva, Switzerland & School of Pharmaceutical Sciences, University of Geneva, Centre Médical Universitaire, Geneva, Switzerland
F
Florence Mehl
M
Martin Legrand
T
Tao Jiang
Marco Pagni
Marco Pagni
VitaI-IT group, SIB Swiss Institute of Bioinformatics
BioinformaticsMicrobiologyComputational Biology
Soha Hassoun
Soha Hassoun
Professor & Past Chair. Department of Computer Science, Tufts University
Machine Learning for Systems BiologyElectronic Design Automation
J
Jean-Luc Wolfender
Wout Bittremieux
Wout Bittremieux
University of Antwerp
Fabien Gandon
Fabien Gandon
INRIA
webartificial intelligenceknowledge graphs and linked datasemantic web and ontologyknowledge representation and reasonin
Louis-Félix Nothias
Louis-Félix Nothias
Chaire de Professeur Junior CNRS - Université Cote d'Azur
MetabolomicsMass Spectrometry