Foundation for unbiased cross-validation of spatio-temporal models for species distribution modeling

Diana Koldasbayeva, Alexey Zaytsev
1/27/2025
27 citations
stat.APcs.LG

Official code: Disha0903/spBlock_cv (1 star, R, MIT, last commit 2025-08-17).

Abstract

Evaluating the predictive performance of species distribution models (SDMs) under realistic deployment scenarios requires careful handling of spatial and temporal dependencies in the data. Cross-validation (CV) is the standard approach for model evaluation, but its design strongly influences the validity of performance estimates.

Show full abstract

When SDMs are intended for spatial or temporal transfer, random CV can lead to overoptimistic results due to spatial autocorrelation (SAC) among neighboring observations. We benchmark four machine learning algorithms (GBM, XGBoost, LightGBM, Random Forest) on two real-world presence-absence datasets, a temperate plant and an anadromous fish, using multiple CV designs: random, spatial, spatio-temporal, environmental, and forward-chaining. Two training data usage strategies (LAST FOLD and RETRAIN) are evaluated, with hyperparameter tuning performed within each CV scheme. Model performance is assessed on independent out-of-time test sets using AUC, MAE, and correlation metrics. Random CV overestimates AUC by up to 0.16 and produces MAE values up to 80 percent higher than spatially blocked alternatives. Blocking at the empirical SAC range substantially reduces this bias. Training strategy affects evaluation outcomes: LAST FOLD yields smaller validation-test discrepancies under strong SAC, while RETRAIN achieves higher test AUC when SAC is weaker. Boosted ensemble models consistently perform best under spatially structured CV designs. We recommend a robust SDM workflow based on SAC-aware blocking, blocked hyperparameter tuning, and external temporal validation to improve reliability under spatial and temporal shifts.

View on arXivView PDF

Code Implementations(1)

MIT
10ROct 18, 20231 years agoMIT

Similar Papers

Cite this paper

@article{koldasbayeva2025foundation,
  title  = {Foundation for unbiased cross-validation of spatio-temporal models for species distribution modeling},
  author = {Diana Koldasbayeva and Alexey Zaytsev},
  year   = {2025},
  eprint = {2502.03480},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.03480v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.03480.svg)](https://codeofpaper.com/paper/2502.03480)

Discussion