Kriging prior regression: A case for kriging-based spatial features with TabPFN in soil mapping

Machine learning and geostatistics are two fundamentally different frameworks for the prediction and spatial mapping of soil properties. Geostatistics leverages the spatial structure of soil properties, whereas machine learning models capture the relationship between available environmental features and soil properties. We propose a hybrid framework that augments machine learning with spatial context through the engineering of ‘spatial lag’ features derived from ordinary kriging. We call this approach ‘kriging prior regression’ (KpR), as it reverses the logic of regression kriging by incorperating kriging outputs before and during the regression step. To evaluate this approach, we assessed both the point and probabilistic prediction performance of KpR, using TabPFN across six field-scale datasets from LimeSoDa . These datasets included soil organic carbon, clay content, and pH, along with features derived from remote sensing and in-situ proximal soil sensing. KpR with TabPFN demonstrated reliable uncertainty estimates and accurate predictions in comparison to several other spatial techniques (e.g., regression/residual kriging with TabPFN), as well as to established non-spatial machine learning algorithms (e.g., random forest and categorical boosting). Most notably, it improved the average R 2 by ≈ 30% relative to machine learning algorithms without spatial context. This improvement was due to the strong prediction performance of the TabPFN algorithm itself and the complementary spatial information provided by KpR features. TabPFN is particularly effective for prediction tasks with small sample sizes, common in precision agriculture, whereas KpR can compensate for weak relationships between sensing features and soil properties when proximal soil sensing data are limited. We conclude that KpR with TabPFN is a robust and versatile modelling framework for digital soil mapping in precision agriculture. • TabPFN is a prediction model designed for small datasets, ideal for precision agriculture. • We propose “Kriging prior regression” as a feature engineering technique for spatial context. • Both techniques combined improved the R 2 by 30% compared to conventional machine learning.

Authors

Institutions

Publication Details

Journal
Computers and Electronics in Agriculture
Published
2025-12-27
DOI
https://doi.org/10.1016/j.compag.2025.111352
Citations
2
Primary Topic
Soil and Land Suitability Analysis
Type
article
Field-Weighted Citation Impact
4.84

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Kriging prior regression: A case for kriging-based spatial features with TabPFN in soil mapping

G.B.M. Heuvelink, Martin Atzmueller, Jonas Schmidinger, Sebastian Vogel et al.
2 citations
Computers and Electronics in Agriculture
Soil and Land Suitability Analysis
4.84
article

Kriging prior regression: A case for kriging-based spatial features with TabPFN in soil mapping

G.B.M. Heuvelink, Martin Atzmueller, Jonas Schmidinger, Sebastian Vogel, Viacheslav Barkov
article en
2 citations

Abstract

Machine learning and geostatistics are two fundamentally different frameworks for the prediction and spatial mapping of soil properties. Geostatistics leverages the spatial structure of soil properties, whereas machine learning models capture the relationship between available environmental features and soil properties. We propose a hybrid framework that augments machine learning with spatial context through the engineering of ‘spatial lag’ features derived from ordinary kriging. We call this approach ‘kriging prior regression’ (KpR), as it reverses the logic of regression kriging by incorperating kriging outputs before and during the regression step. To evaluate this approach, we assessed both the point and probabilistic prediction performance of KpR, using TabPFN across six field-scale datasets from LimeSoDa . These datasets included soil organic carbon, clay content, and pH, along with features derived from remote sensing and in-situ proximal soil sensing. KpR with TabPFN demonstrated reliable uncertainty estimates and accurate predictions in comparison to several other spatial techniques (e.g., regression/residual kriging with TabPFN), as well as to established non-spatial machine learning algorithms (e.g., random forest and categorical boosting). Most notably, it improved the average R 2 by ≈ 30% relative to machine learning algorithms without spatial context. This improvement was due to the strong prediction performance of the TabPFN algorithm itself and the complementary spatial information provided by KpR features. TabPFN is particularly effective for prediction tasks with small sample sizes, common in precision agriculture, whereas KpR can compensate for weak relationships between sensing features and soil properties when proximal soil sensing data are limited. We conclude that KpR with TabPFN is a robust and versatile modelling framework for digital soil mapping in precision agriculture. • TabPFN is a prediction model designed for small datasets, ideal for precision agriculture. • We propose “Kriging prior regression” as a feature engineering technique for spatial context. • Both techniques combined improved the R 2 by 30% compared to conventional machine learning.

Computers and Electronics in AgricultureVol. 243
Osnabrück University (DE), ISRIC - World Soil Information (NL), German Research Centre for Artificial Intelligence (DE), Leibniz Institute for Agricultural Engineering and Bioeconomy (DE), Hochschule Osnabrück (DE), Wageningen University & Research (NL)
Niedersächsische Ministerium für Wissenschaft und Kultur, Volkswagen Foundation
Openalex Percentile: Top 5%
Soil and Land Suitability Analysis
4.84
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.