arXiv:2610.05949cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.05949

Technical Report on the Turba Fertilizer Machine Learning Stack in Morocco

Abdelghani Belgaid, Zakaria Mahmoud, Fahd Chibani, Oumnia Ennaji, Younes Boudoul, Dounia Rachid

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Site-specific fertilizer recommendation systems adapt nutrient advice to location, soil properties, crop type, and production targets, but scientific reuse is constrained when recommendation functions remain accessible mainly through interactive interfaces, outputs are not versioned, and trained approximations cannot be independently loaded or benchmarked. This technical report presents the Turba fertilizer machine learning stack, a three-layer open-source implementation for reproducible site-specific fertilizer recommendation in Morocco. turba-client provides programmatic access to publicly accessible site profiles, crop-specific target-yield spaces, and N, P2O5P_{2}O_{5}, and K2OK_{2}O recommendation workflows; turba-data distributes analysis-ready snapshots; and turba-models packages crop-specific machine learning surrogates of recommendation outputs. The architecture links upstream retrieval, versioned analytical snapshots, reproducible cross-model benchmarking, and loadable offline surrogates while preserving the distinction between recommendation-system outputs, observed agricultural data, and model-generated predictions. The first dataset was constructed from 44,096 unique ESA WorldCereal locations. Scenario expansion across supported cereal workflows generated 132,017 crop-location recommendation requests under a medium target-yield setting. The resulting 22-variable dataset spans 10 regions, 66 provinces, and 1,149 communes. Nine regression families were evaluated under a fixed deterministic 80/20 protocol, and the current release packages five best-performing crop-specific models. The machine learning task is recommendation-function emulation rather than prediction of observed crop response. The stack provides a reproducible basis for spatial and temporal validation, uncertainty estimation, field-trial comparison, and future integration with additional data.

Keywords Precision Agriculture; Nutrient Management; Site-Specific Fertilizer Recommendation; Machine Learning.

1 Introduction

Site-specific nutrient management requires fertilizer decisions to account for heterogeneity in soil fertility, crop requirements, production targets, and environmental conditions. Machine learning has become increasingly relevant for the management of nutrients because nonlinear relationships across soil, crop, spatial, and management variables can be represented computationally and incorporated into decision-support workflows [1]. Previous Moroccan research has developed machine learning and optimization methods for site-specific fertilizer recommendation [2, 3] and has demonstrated substantial spatial and temporal heterogeneity in cereal production systems [4].

The availability of computational methods alone is insufficient for reproducible fertilizer research. Recommendation systems accessed through interactive interfaces are difficult to incorporate into automated experiments, while analyses reconstructed repeatedly from mutable upstream services may not yield identical research objects. Reproducible computational science therefore requires preservation of data provenance, executable procedures, software versions, and intermediate artifacts [5]. The FAIR principles similarly emphasize accessibility, interoperability, reusability, persistent identification, and explicit provenance for data, algorithms, and workflows [6]. Robust research software extends these requirements to testing, dependency management, documentation, and recoverable execution environments [7].

These considerations are particularly relevant in Morocco. Fertimap is Morocco’s soil-fertility mapping and fertilization decision-support system, developed by OCP Group in collaboration with a consortium of agronomic research institutions and the Moroccan Ministry of Agriculture [8]. A national digital soil-mapping study reported that earlier Fertimap soil-property maps were viewable through a public interface but that the underlying raster products were not downloadable for independent reuse, illustrating the distinction between public visualization and reusable computational access [9]. Open Earth-observation resources such as ESA WorldCereal can complement such systems by providing reproducible spatial crop information for the construction of agricultural datasets [10].

The Turbo fertilizer machine learning stack is an independent open-source initiative that builds reproducible computational resources around publicly accessible Fertimap recommendation workflows through three components: turba-client provides programmatic access, turba-data distributes versioned analysis-ready recommendation datasets, and turba-models provides pretrained machine-learning surrogates and benchmark artifacts [11]. Its central design principle is provenance separation. Values retrieved from Fertimap, values stored in a versioned dataset, and values generated by a learned surrogate are treated as distinct scientific objects. Turbo is independently developed and is not affiliated with or endorsed by Fertimap, OCP Group, or the Moroccan Ministry of Agriculture. The stack is intended for reproducible analysis and methodological research; no component is presented as independent evidence of fertilizer efficacy or field-level agronomic optimality.

References (33)