Machine learning algorithms to infer trait-matching and predict species interactions in ecological networks
Abstract
Ecologists have long suspected that species are more likely to interact if their traits match in a particular way. For example, a pollination interaction may be more likely if the proportions of a bee’s tongue fit a plant’s flower shape. Empirical estimates of the importance of trait-matching for determining species interactions, however, vary significantly among different types of ecological networks. Here, we show that ambiguity among empirical trait-matching studies may have arisen at least in part from using overly simple statistical models. Using simulated and real data, we contrast conventional generalized linear models (GLM) with more flexible machine learning (ML) models (random forest, boosted regression trees, deep neural networks, convolutional neural networks, support vector machines, naive Bayes, and k-nearest-neighbor), testing their ability to predict species interactions based on traits, and infer trait combinations causally responsible for species interactions. We found that the best ML models can successfully predict species interactions in plant-pollinator networks, outperforming GLMs by a substantial margin, and can also better identify the causally responsible trait-matching combinations than GLMs. In two case studies, the best ML models successfully predicted species interactions in a global plant-pollinator database and inferred ecologically plausible trait-matching rules for a plant-hummingbird network from Costa Rica, without any prior assumptions about the system. We conclude that flexible ML models offer many advantages over traditional regression models for understanding interaction networks, and anticipate that these results extrapolate to other ecological network types.
What the paper shows and why it matters (AI-generated)
Empirical studies of whether species traits predict their interactions — a bee's tongue length matching a flower's shape, for instance — have long given inconsistent results, and this paper tests whether that inconsistency is ecological or just a modelling artefact. Flexible machine-learning models substantially outperform standard generalized linear models at the same task, on both simulated data and a real Costa Rican plant-hummingbird network, suggesting at least some of the earlier inconsistency reflects models too simple to detect trait relationships that were there all along. It's become one of the more heavily cited entries in ecological network methods, with over 150 papers now using ML for interaction or food-web link prediction.