Semantic metadata extraction from crop model components with large language models to facilitate platform interoperability
Process-based crop models encapsulate agro-ecosystem knowledge within modular components that have been developed across different crop modelling platforms. However, structural heterogeneity and differences in programming languages limit component reuse. The Agricultural Model Exchange Initiative recently proposed Crop2ML, a framework for crop modeling platform interoperability to address this issue. Nevertheless, transforming existing models into Crop2ML specifications still requires substantial manual curation of semantic metadata, which is error-prone and time consuming. Recent advances in large language models (LLMs) have increased their capacity to support automated code analysis through multi-agent system architectures. Here, a workflow was developed leveraging LLMs to automatically create Crop2ML model specifications by extracting and inferring metadata describing input and output variables specifications. The workflow was evaluated on source code written in three programming languages and originating from six different crop modeling platforms. Experiments conducted on eight soil temperature components from these widely used platforms showed a F1-Score exceeding 93% for input/output variables extraction and successful inference of variable specifications. The proposed approach introduces a novel consensus-based multi-agent methodology that improves the reliability of automated extraction results. Overall, this study demonstrated that LLMs-driven multi-agent systems can significantly accelerate the automatic generation of interoperable models with semantically rich model documentation and specification. This ultimately reduces the barriers to crop model reuse.
Authors
- Rogerio Cichota (ORCID: https://orcid.org/0000-0002-1618-986X)
- Davide Fumagalli
- Pierre Martre (ORCID: https://orcid.org/0000-0002-7419-6558)
- Myriam Adam (ORCID: https://orcid.org/0000-0002-8873-6762)
- Thiago Berton Ferreira
- Michael Berg‐Mohnicke (ORCID: https://orcid.org/0000-0001-6687-8295)
- Cyrille Ahmed Midingoyi (ORCID: https://orcid.org/0009-0000-4411-7989)
- Christophe Pradal (ORCID: https://orcid.org/0000-0002-2555-761X)
- Andreas Enders
- Teiki Raihauti
- Fabio A. A. Oliveira
- Gerrit Hoogenboom
- Dean Holzworth
- Hamish Brown
Institutions
- Commonwealth Scientific and Industrial Research Organisation (AU)
- Centre National de la Recherche Scientifique (FR)
- Centre de Coopération Internationale en Recherche Agronomique pour le Développement (FR)
- Plant & Food Research (NZ)
- University of Bonn (DE)
- Can Tho University (VN)
- Université de Montpellier (FR)
- Institut Agro Montpellier (FR)
- Toowoomba Hospital (AU)
- University of Florida (US)
- Institut National de Recherche pour l'Agriculture, l'Alimentation et l'Environnement (FR)
- Fincons Group (Italy) (IT)
- Laboratoire d'Informatique, de Robotique et de Microélectronique de Montpellier (FR)
- Leibniz Centre for Agricultural Landscape Research (DE)
- Amélioration Génétique et Adaptation des Plantes méditerranéennes et tropicales (FR)
- Laboratoire d'Ecophysiologie des Plantes sous Stress environnementaux (FR)
- Institut Agro Montpelier (FR)
- Services déconcentrés d'appui à la recherche Occitanie-Montpellier (FR)
- University of Battambang (KH)
Publication Details
- Journal
- Computers and Electronics in Agriculture
- Published
- 2026-06-12
- DOI
- https://doi.org/10.1016/j.compag.2026.111996
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Agence Nationale de la Recherche
- Région Occitanie Pyrénées-Méditerranée