Hiring in life sciences? Share your open positions with our professional community. Read more Close

Advertisement

Accounting for spatial dependence in random forests improves ecological understanding and enhances prediction.

Created on 06 Nov 2026

Authors

Matthew J Heaton, Michael Dumelle, Kelvyn K Bladen, Ryan A Hill, Jake S Rhodes

Published in

Ecology. Volume 107. Issue 11.

Abstract

Random forests (RFs) are widely used in ecology to model complex, nonlinear relationships among environmental variables and to summarize fitted relationships through variable importance and interactions. However, many ecological datasets, particularly observational data collected across space, exhibit spatial dependence. If this spatial dependence is ignored, RFs can incorrectly attribute importance to predictors that serve at least partly as proxies for spatial location. In this study, we evaluate how accounting for spatial dependence changes both predictive performance and ecological interpretation. Using simulations with known data-generating mechanisms and an analysis of 1061 North American river catchments, we compare standard RFs, RFs with spatial residual modeling, and a model-agnostic spatial decorrelation transformation. The simulations show that spatially structured noise variables and raw coordinates can receive inflated importance in standard RF workflows, whereas decorrelation reduces these artifacts and recovers the relevant predictors more consistently. In the river flow application, decorrelation improves held-out prediction and shifts interpretation from broad spatially smooth gradients toward hydrologic and soil variables with more direct mechanistic links to flow seasonality.

PMID:
42989813
Bibliographic data and abstract were imported from PubMed on 06 Nov 2026.

Read full publication at:
Please sign in to see all details.

Advertisement

Stats

  • Community rating n/a 0 votes
  • Reviewers' rating n/a 0 votes
  • Your rating

1-terrible, 9-excellent. How would you rate this publication? Sign in in to submit your rating.

  • Recommendations n/a n/a positive of 0 vote(s)
  • Views 14
  • Comments 0

Recommended by

  • No recommendations yet.

Post a comment

You need to be signed in to post comments. You can sign in here.

Comments

There are no comments yet.

Advertisement