Zero-shot inference with Tabular Prior-data Fitted Network (TabPFN) for soil MIR spectral analysis

The Tabular Prior-Data Fitted Network (TabPFN) is a foundation model, a pretrained, transformer-based neural network, designed for prediction tasks on tabular data. Although TabPFN has demonstrated strong performance relative to state-of-the-art baselines, its generalisability to soil spectral datasets of varying sizes remains unclear. This study evaluates the performance of TabPFN and compares it with partial least squares regression (PLSR), Cubist, and convolutional neural network (CNN) for soil spectral analysis using mid-infrared (MIR) spectroscopy. Soil samples from the Kellogg Soil Survey Laboratory were used to predict three soil properties: total carbon (TC), pH, and Olsen method extractable phosphorus (Olsen-P), representing high, medium and low predictability. An internal dataset from Texas (N = 620) and an external dataset from eastern Australia (N = 387) were used for testing. Models were trained using datasets of varying sizes and spectral similarity to the test sets. TabPFN achieved higher accuracy than all the baseline models in most results, with an average RMSE reduction of 74% relative to PLSR and 39% relative to Cubist when predicting TC. Performance gains were particularly pronounced when trained on medium-sized datasets, and TabPFN also exhibited superior generalisability across spectrally distinct training and test data. Soil property predictability influenced model performance across all models, with higher accuracy for TC than for pH and Olsen-P. For uncertainty quantification, TabPFN produced prediction intervals that closely matched the expected coverage in the external test set, indicating reasonable uncertainty generalisation, although quantile calibration was less reliable. Shapley additive explanations (SHAP) revealed that the wavenumbers contributed to the prediction corresponded to known spectral signatures of soil organic and inorganic carbon, supporting the interpretability of TabPFN. Overall, TabPFN demonstrated high predictive accuracy, improved generalisability compared to conventional methods, and useful uncertainty estimates, highlighting its potential for application to soil spectral libraries, for both large and small sizes.

Authors

Institutions

Publication Details

Journal
Geoderma
Published
2026-05-30
DOI
https://doi.org/10.1016/j.geoderma.2026.117880
Primary Topic
Soil Geostatistics and Mapping
Type
article
Field-Weighted Citation Impact
0.00

Funders

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

Zero-shot inference with Tabular Prior-data Fitted Network (TabPFN) for soil MIR spectral analysis

Yin‐Chung Huang, Wartini Ng, José Padarian, Alex B. McBratney et al.
Geoderma
Soil Geostatistics and Mapping
article

Zero-shot inference with Tabular Prior-data Fitted Network (TabPFN) for soil MIR spectral analysis

Yin‐Chung Huang, Wartini Ng, José Padarian, Alex B. McBratney, Budiman Minasny
article en

Abstract

The Tabular Prior-Data Fitted Network (TabPFN) is a foundation model, a pretrained, transformer-based neural network, designed for prediction tasks on tabular data. Although TabPFN has demonstrated strong performance relative to state-of-the-art baselines, its generalisability to soil spectral datasets of varying sizes remains unclear. This study evaluates the performance of TabPFN and compares it with partial least squares regression (PLSR), Cubist, and convolutional neural network (CNN) for soil spectral analysis using mid-infrared (MIR) spectroscopy. Soil samples from the Kellogg Soil Survey Laboratory were used to predict three soil properties: total carbon (TC), pH, and Olsen method extractable phosphorus (Olsen-P), representing high, medium and low predictability. An internal dataset from Texas (N = 620) and an external dataset from eastern Australia (N = 387) were used for testing. Models were trained using datasets of varying sizes and spectral similarity to the test sets. TabPFN achieved higher accuracy than all the baseline models in most results, with an average RMSE reduction of 74% relative to PLSR and 39% relative to Cubist when predicting TC. Performance gains were particularly pronounced when trained on medium-sized datasets, and TabPFN also exhibited superior generalisability across spectrally distinct training and test data. Soil property predictability influenced model performance across all models, with higher accuracy for TC than for pH and Olsen-P. For uncertainty quantification, TabPFN produced prediction intervals that closely matched the expected coverage in the external test set, indicating reasonable uncertainty generalisation, although quantile calibration was less reliable. Shapley additive explanations (SHAP) revealed that the wavenumbers contributed to the prediction corresponded to known spectral signatures of soil organic and inorganic carbon, supporting the interpretability of TabPFN. Overall, TabPFN demonstrated high predictive accuracy, improved generalisability compared to conventional methods, and useful uncertainty estimates, highlighting its potential for application to soil spectral libraries, for both large and small sizes.

GeodermaVol. 471
The University of Sydney (AU), Sydney Institute of Marine Science (AU)
Department of Climate Change, Energy, the Environment and Water
Openalex Percentile: Top 9%
Soil Geostatistics and Mapping
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.