# MetaboT: A Conversational AI-Agent for Accessible Mass Spectrometry Metabolomics Data Mining

Madina Bekbergenova, Lucas Pradi, Emma Tysinger, Benjamin Navet, Olivier Kirchhoffer, Jean-Luc Wolfender, Florence Mehl, Marco Pagni, Wout Bittremieux, Fabien Gandon, et al.

<figure><img src="image_1.png" /></figure>

## ► To cite this version:

Madina Bekbergenova, Lucas Pradi, Emma Tysinger, Benjamin Navet, Olivier Kirchhoffer, et al. *MetaboT: A Conversational AI-Agent for Accessible Mass Spectrometry Metabolomics Data Mining.* The 21st Annual Conference of the Metabolomics Society, Jun 2025, Prague, Czech Republic. *hal-05235334*

HAL Id: hal-05235334

https://hal.science/hal-05235334v1

Submitted on 6 Oct 2025

**HAL** is a multi-disciplinary open access archive for the deposit and dissemination of scientific research documents, whether they are published or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire **HAL**, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d'enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

<figure><img src="image_2.png" /></figure>
# MetaboT: A Conversational AI Agent for Accessible Mass Spectrometry Metabolomics Data Mining

Madina Bekbergenova¹,²,⁶; Lucas Pradi¹,²; Emma Tysinger¹,³; Benjamin Navet²; Olivier Kirchhoffer⁴; Jean-Luc Wolfender⁴; Florence Mehl⁵; Marco Pagni⁵; Wout Bittremieux⁶,\*; Fabien Gandon⁷; Louis Felix Nothias¹,²,\*

¹Université Côte d'Azur, CNRS, ICN, Nice, France; ²Interdisciplinary Institute for Artificial Intelligence (3iA) Côte d'Azur, Sophia-Antipolis, France; ³MIT, Cambridge, MA, USA; ⁴University of Geneva, Geneva, Switzerland; ⁵Swiss Institute of Bioinformatics (SIB), Lausanne, Switzerland; ⁶University of Antwerp, Antwerp, Belgium; ⁷INRIA, Université Côte d'Azur, CNRS, I3S, Sophia-Antipolis, France

madina.bekbergenova@univ-cotedazur.fr

## From raw LC-MS data to Knowledge Graph

<figure><img src="image_3.png" /></figure>

<figure><img src="image_4.png" /></figure>

## SPARQL query

Question: How many features have the same SIRIUS and ISDB annotation?

```
PREFIX enpkg: <https://enpkg.commons-lab.org/kg/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
```

```
SELECT (COUNT(?feature) AS ?count)
```

WHERE

```
{
?feature rdf:type enpkg:LCMSFeature .
?feature enpkg:has_sirius annotation ?sirius annotation .
?sirius annotation rdf:type enpkg:SiriusStructureAnnotation .
?sirius annotation enpkg:has InChIkey2D ?sirius ik2d .
?feature enpkg:has isdb annotation ?isdb annotation .
?isdb annotation rdf:type enpkg:IsdbAnnotation .
?isdb annotation enpkg:has InChIkey2D ?isdb ik2d .
FILTER(?isdb ik2d = ?sirius ik2d) .
}
```

<figure><img src="image_5.png" /></figure>

## Background

Knowledge graphs (KGs) provide a powerful way to represent complex information through semantic structures. Mining KGs can be efficiently performed using a specialized query language like SPARQL. With KGs being inherently aligned with natural language, the emerging capabilities of large language models (LLMs) present new opportunities for facilitating the querying of these graphs. We propose an AI framework that integrates KGs and LLMs to effectively interrogate complex metabolomics data encapsulated within KGs.

<figure><img src="image_6.png" /></figure>

## Methods

We developed MetaboT, an AI system that uses LLM agents to translate user questions into SPARQL queries for data mining. MetaboT executes these queries on a KG and provides answers, simplifying interactions with complex metabolomics data. As a proof of concept, it currently accesses a mass spectrometry dataset of 1,600 plant extracts [1]. Evaluation on 50 metabolomics-related questions showed that MetaboT achieved 83.67% accuracy, compared to 8.16% for a baseline LLM (GPT-4o), demonstrating the necessity of our multi-agent approach for accurate SPARQL query generation.

## Researcher

What are the most frequently annotated chemical classes in the MS data of that plant species ?

<figure><img src="image_7.png" /></figure>

MetaboT

<figure><img src="image_8.png" /></figure>

## Metabolomics Knowledge Graph (KG)

<figure><img src="image_9.png" /></figure>