Demonstrates network reconstruction in ecological studies, implying improved data interpretation.
Network analysis is a powerful framework for investigating complex systems across disciplines, including ecology. However, ecological network data are often incomplete or error‐prone due to sampling limitations, detection failures and taxonomic uncertainty—leading to missing (false negative) and spurious (false positive) links that obscure structure and hinder inference. The hierarchical stochastic block model (HSBM), particularly in its degree‐corrected form, is among the most effective tools for reconstructing networks under such uncertainty. Despite its robustness, the primary implementation of HSBM in the Python‐based graph‐tool library has remained largely inaccessible to ecologists. Here, we introduce sabinaHSBM , the first R package that makes degree‐corrected HSBM broadly available through a user‐friendly, flexible workflow. By bridging a gap between advanced network modelling and widely used ecological analysis tools, sabinaHSBM facilitates network reconstruction and link prediction from binary data. The workflow involves three main steps: (1) preparing input data, (2) estimating posterior link probabilities and (3) reconstructing the network. The package supports detection of undocumented and spurious links, exploration of hierarchical structure and propagation of uncertainty throughout. Key features include cross‐validation, flexible thresholding, probabilistic evaluation metrics and two link prediction methods: estimating all link probabilities or identifying undocumented ones. We illustrate the package's functionality through a case study using a published global dataset of carnivore–parasite associations, showing that inferred groupings are phylogenetically clustered. To assess predictive accuracy, we examined the top 10 highest probability links identified by the model and found published evidence for eight, despite their absence from the original dataset. This highlights the model's ability to recover biologically meaningful but unrecorded interactions. By providing the first accessible R workflow for HSBM‐based network reconstruction, sabinaHSBM enables researchers to quantify uncertainty and recover overlooked interactions in ecological networks.
No takes yet. Share an insight, caveat, or question.
Lima et al. (2026) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: