bioRxivEcology
Predicting predator-prey interactions in terrestrial endotherms using random forest
J. Llewelyn, G. Strona, C. R. Dickman, A. Greenville, G. Wardle, M. S. Y. Lee, S. Doherty, F. Shabani, F. Saltre, C. J. A. Bradshaw
Abstract
Species interactions play a fundamental role in ecosystems. However, few ecological communities have complete data describing such interactions, which is an obstacle to understanding how ecosystems function and respond to perturbations. Because it is often impractical to collect empirical data for all interactions in a community, various methods have been developed to infer interactions. Machine learning is increasingly being used for making interaction predictions, with random forest being one of the most frequently used of these methods. However, performance of random forest in inferring predator-prey interactions in terrestrial vertebrates and its sensitivity to training data quality remain untested. We examined predator-prey interactions in two diverse, primarily terrestrial vertebrate classes: birds and mammals. Combining data from a global interaction dataset and a specific community (Simpson Desert, Australia), we tested how well random forest predicted predator-prey interactions for mammals and birds using species ecomorphological and phylogenetic traits. We also tested how variation in training data quality--manipulated by removing records and switching interaction records to non-interactions--affected model performance. We found that random forest could predict predator-prey interactions for birds and mammals using ecomorphological or phylogenetic traits, correctly predicting up to 88% and 67% of interactions and non-interactions in the global and community-specific datasets, respectively. These predictions were accurate even when there were no records in the training data for focal species. In contrast, false non-interactions for focal predators in training data strongly degraded model performance. Our results demonstrate that random forest can identify predator-prey interactions for birds and mammals that have few or no interaction records. Furthermore, our study provides guidance on how to prepare training data to optimise machine-learning classifiers for predicting species interactions, which could help ecologists (i) address knowledge gaps and explore network-related questions in data-poor situations, and (ii) predict interactions for range-expanding species.
- research focus: host-pathogen & immune response
- research focus: ecology & biodiversity
- research focus: benchmarking
- approach: machine learning (classical)
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
- Ecological Interactions and the Netflix Problem
P. Desjardins-Proulx, I. Laigle, … D. Gravel·bioRxiv·Mar 19, 2017
- Advancing ecological networks: moving beyond binary classification to probabilistic interactions.
M. Philippe-Lesaffre·bioRxiv·Feb 7, 2024
- Predicting direct and indirect non-target impacts of biocontrol agents using machine-learning approaches
H. Kotula, G. Peralta, … J. Tylianakis·bioRxiv·Nov 24, 2020
- Abundance redistribution increases predator-prey interaction potentials among North American birds
Heng-xing Zou, Chia Hsieh, … Brian Weeks·bioRxiv·Oct 6, 2026
- Through the Random Forest: Ontogeny as a study system to connect prediction to explanation
S. Simon, P. Glaum, F. S. Valdovinos·bioRxiv·Aug 11, 2022
- Fine scale prediction of ecological community composition using a two-step sequential machine learning ensemble
I. Civantos, J. Garcia-Algarra, … I. Bartomeus·bioRxiv·Mar 24, 2021