bioRxivEcology
Modelling species presence-only data with random forests
R. Valavi, J. Elith, J. J. Lahoz-Monfort, G. Guillera-Arroita
Abstract
O_LIThe Random Forest (RF) algorithm is an ensemble of classification or regression trees, and is a widely used and high-performing machine learning technique. It is increasingly used for species distribution modelling (SDM). Many researchers use implementations of RF in the R programming language with default parameters to analyse species presence-only data together with background samples. However, there is good evidence that RF with default parameters does not perform well with such species "presence-background" data. This is often attributed to the typical disparity between the number of presence and background samples also known as class imbalance, and several solutions have been proposed. C_LIO_LIHere, we first set the context: the background sample should be large enough to represent all environments in the region. We then aim to understand the drivers of poor performance of RF with presence-background data, and explain, test and evaluate suggested solutions. Using simulated and real species data, we compare performance of default RF with other weighting and sampling approaches. C_LIO_LIWe show that class overlap is an important driver of poor performance, alongside class imbalance. The results demonstrate clear evidence of improvement in the performance of RFs when class imbalance is explicitly managed by sampling methods or when the overfitting commonly associated with overlapping classes is avoided by forcing shallow trees. C_LIO_LIPresence-background data is a particular version of class imbalance in which class overlap is highly likely and extreme imbalance exists. Without compromising the environmental representativeness of the sampled background, we show several approaches to fitting RF that ameliorate the effects of imbalance and overlap, and allow excellent predictive performance. Understanding the problems of RF in presence-background data allows new insights into how best to fit models, and should guide future efforts to best deal with such data. C_LI
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- RUSBoost: A suitable species distribution method for imbalanced records of presence and absence. A case study of twenty-five species of Iberian bats
J. Carrasco, F. Lison, A. Weintraub·bioRxiv·Oct 6, 2021
- Flexible Methods for Species Distribution Modeling with Small Samples
Brian Maitner, Robert L. Richards, … Cory Merow·EcographyPeer-reviewed·Jan 21, 2026
- Preferential sampling for presence/absence data and for fusion of presence/absence data with presence-only data
A. Gelfand, S. Shirota·bioRxiv·Sep 7, 2018
- A joint distribution framework to improve presence-only species distribution models by exploiting opportunistic surveys
J. M. Escamilla Molgora, L. M. Sedda, … P. M. Atkinson·bioRxiv·Jun 28, 2021
- Data quantity is more important than its spatial bias for predictive species distribution modelling
W. B. Gaul, D. Sadykova, … J. M. Yearsley·bioRxiv·May 24, 2020
- A machine learning method for estimating the probability of presence using presence-background data
Y. WANG, C. Samarasekara, L. Stone·bioRxiv·Mar 29, 2022