bioRxiv Science⌕ Search

Biology subjects

Guillera-Arroita, G.

Publications and source records attributed to Guillera-Arroita, G..

2 recordsLinked to original sources

Modelling species presence-only data with random forests

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

ecology↗

blockCV: an R package for generating spatially or environmentally separated folds for k-fold cross-validation of species distribution models

O_LIWhen applied to structured data, conventional random cross-validation techniques can lead to underestimation of prediction error, and may result in inappropriate model selection.\nC_LIO_LIWe present the R package blockCV, a new toolbox for cross-validation of species distribution modelling.\nC_LIO_LIThe package can generate spatially or environmentally separated folds. It includes tools to measure spatial autocorrelation ranges in candidate covariates, providing the user with insights into the spatial structure in these data. It also offers interactive graphical capabilities for creating spatial blocks and exploring data folds.\nC_LIO_LIPackage blockCV enables modellers to more easily implement a range of evaluation approaches. It will help the modelling community learn more about the impacts of evaluation approaches on our understanding of predictive performance of species distribution models.\nC_LI

ecology↗