Predicting Ecological Interactions Across Space Through Pairwise Integration of Latent Network Patterns
bioRxiv (preprint) · 2025
Read the paper (preprint)Ecological communities are complex and exhibit considerable spatial variability, presenting challenges in accurately understanding these systems. A primary obstacle in ecological research is the existence of ‘missing links’ between species: inevitable unobserved interactions that limit our comprehension of ecological networks and their response to change. While link prediction methods have been developed to address this challenge, most approaches overlook the intrinsic spatial variability of ecological systems.
We introduce a flexible, spatially explicit framework based on matrix decomposition that leverages latent structural patterns to predict missing interactions and their strength, without requiring species traits or environmental data. The framework integrates information from paired auxiliary and target networks (locations) using thresholded SVD for link prediction. We applied it to plant–pollinator networks across the Canary Islands, performing pairwise predictions between locations, comparing them to within-location predictions (as a control), and quantifying how spatial variability influences predictive performance.
Predictions revealed that latent network structure contains substantial predictive information, with F0.5 scores consistently exceeding a random baseline (mean F0.5 = 0.67 ± 0.02 SD), while being less sensitive to interaction strength. The method enabled identifying plausible gaps in the data and producing ecologically coherent predictions. Incorporating information from auxiliary locations enhanced predictive accuracy in certain cases, but success depended on spatial context: predictions were most reliable when derived from nearby, ecologically similar locations, and declined with increasing geographic and ecological distance, consistent with a distance-decay effect.
We conclude that the predictability of missing links is spatially variable, reflecting both network and species-level heterogeneity. These patterns provide insights into network structure and the ecological processes shaping it, complementing trait-based approaches. While network structure offers rich predictive information, spatial context is essential for applying it effectively: ignoring spatial variability can obscure ecological signals and inflate predictive error. Our framework is computationally efficient, transferable, and readily applicable to any system with spatial or temporal replication. It can be used for a variety of ecological contexts, including island systems, fragmented landscapes, and environmental gradients, making it a practical and scalable tool for advancing link prediction in ecology.
Interactive Figures
Predicted Plant–Pollinator Interactions
Explore the full plant × pollinator interaction matrix across all Canary Islands locations, filter by prediction type and confidence threshold, and inspect per-species degree patterns.
Prediction Performance vs. Network Similarity & Distance
Examine how predictive performance (F0.5, F1, PR-AUC) varies with geographic distance and network dissimilarity across all pairwise island comparisons.
Data: plant–pollinator visitation networks from the Canary Islands, originally published by Trøjelsgaard et al. (2015). 39 plant species × 249 pollinator species across 7 island-level locations. Predictions generated via a thresholded softImpute SVD algorithm applied pairwise. Source code available on GitHub.
GitHub