Search bioRxiv⌕ Search

bioRxiv · 10.64898/2026.02.03.703458

Bayesian neural networks enable inference of complex phylodynamic processes

Abstract

Phylogenetic branching patterns carry essential information about population and diversification dynamic processes, including speciation, extinction, and epidemiological transmission. Phylodynamic models offer a rigorous mathematical framework for quantifying these dynamics from phylogenetic trees. Extensions of these models enable the incorporation of external covariates as predictors of phylodynamic parameters, for instance allowing us to link traits or environmental variables with changes in speciation, extinction, or transmission rates. However, the dependencies between predictors and phylodynamic parameters are typically restricted to linear, additive effects and may thus fail to capture complex, potentially non-linear relationships underlying evolutionary dynamics. To address this limitation, we propose a new framework, BELLA, which leverages unsupervised Bayesian neural networks (BNNs) to flexibly model functional relationships between key phylodynamic parameters and a broad set of predictors, including categorical traits, quantitative variables, and time series data. Based on these covariates, the BNN weights are estimated through Markov chain Monte Carlo and can be inferred jointly with the phylogenetic tree topology and branching times, obtained directly from sequence alignment data. Using extensive simulations, we demonstrate that this approach accurately recovers predictor-parameter relationships, mitigates overfitting, and remains robust across both macroevolutionary and epidemiological contexts. By incorporating tools from explainable artificial intelligence, we further show that our framework reliably identifies the most influential predictors and yields interpretable descriptions of their impact on phylodynamic rates. Finally, we apply our method to two empirical analyses: linking SARS-CoV-2 migration dynamics with travel data during its early spread in Europe, and inferring trait and time-dependent speciation and extinction rates in the Cenozoic diversification of platyrrhines. Our unsupervised BNN framework substantially expands the capabilities of phylodynamic inference providing a powerful and flexible approach to model complex macroevolutionary and epidemiological processes. Significance statementUnderstanding how species diversify or pathogens spread requires linking phylogenetic trees to biological traits and environmental characteristics. We present BELLA, an unsupervised Bayesian neural network that learns complex, nonlinear links between predictors--such as traits or environmental variables--and key rates such as speciation, extinction, transmission, and migration directly from sequence data--which in turn inform on the phylogenetic relationships. BELLA does not require any training data, enabling inferences that were previously not tractable. Across simulated epidemics and macroevolutionary histories, BELLA is more accurate than state-of-the-art linear models relating predictors and rates, while remaining interpretable through explainable artificial intelligence. Empirical applications in epidemiology reveal nonlinear effects of travel among countries on the early spread of SARS-CoV-2 in Europe, while a macroevolutionary application shows selective extinction events in the diversifcation history of New World monkeys. The BELLA framework expands the reach of phylodynamics in biology and public health.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Marino, G., Stolz, U., Valenzuela Agui, C., Stadler, T., Silvestro, D.. 2026-02-04. Bayesian neural networks enable inference of complex phylodynamic processes. https://doi.org/10.64898/2026.02.03.703458

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Geometry of antigenic evolution improves influenza vaccine selection

Anticipating antigenic evolution is essential for selecting effective seasonal influenza A/H3N2 vaccine strains. To this end, we integrated hemagglutination-inhibition and neutralization titers spanning 2002 to 2025 into a unified Bayesian antigenic map. The map resolves twelve antigenic clusters advancing in discrete steps, with several clusters co-circulating in most seasons. In 15 of 21 seasons, the WHO-recommended vaccine belonged to an earlier cluster than the dominant circulating cluster. The direction of each vaccine update relative to recent viral drift predicted vaccine effectiveness one season ahead in out-of-sample forecasts. Antigenic distance, the conventional measure of vaccine-virus match, was weakly associated with effectiveness until update direction was accounted for. Retrospectively ranking candidate strains by predicted effectiveness would have selected a strain predicted to outperform the WHO recommendation in every season, raising mean predicted effectiveness by 10 percentage points.

evolutionary biology↗

Evolutionary replay of duplicate-gene retention across independent whole-genome duplications

Whole-genome duplications repeatedly expose ancestral gene lineages to the same broad evolutionary outcome-retention or loss of duplicated copies-but it remains unclear whether this history replays similarly across evolutionary scales. We placed duplicate retention in shared hierarchical orthologous-group coordinates and compared percentile ranks defined within each event-wide mapped universe. Three independent angiosperm whole-genome duplications showed reproducible replay (global rank effect T-replay = 0.210, bootstrap 95% confidence interval 0.172-0.248; permutation P = 1/100,001). A plant reference-panel score specified before target outcomes were examined predicted retention after the Apple/Pear duplication ({rho} = 0.169, n = 373). Deep transfer was heterogeneous: the teleost-genome-duplication estimate was positive but unresolved ({rho} = 0.107, n = 151, 95% confidence interval -0.050 to 0.260), whereas transfer to the ancient budding-yeast whole-genome duplication (yeast WGD) was supported ({rho} = 0.280, n = 186). Independently reconstructed animal outcomes also replayed between teleost and Stylommatophora duplications (r = 0.226, n = 146, P = 0.00326), although the effect remained below a prespecified strong-effect threshold. A strict plant-animal comparison was limited to 25 deeply one-to-one lineages and was unresolved (r = 0.033, 95% confidence interval -0.303 to 0.340). Thus, ancestral gene-lineage identity contributes reproducibly to duplicate retention after independent whole-genome duplications, but replay is structured by evolutionary lineage and modified by event-specific history rather than governed by one universal gene-fate ranking.

evolutionary biology↗

A Hymenoptera-restricted gene mediating ant castes co-opts deeply conserved machinery to control organ size

Lineage-specific genes are widespread and have been implicated as phenotypic innovation inducers, but how they acquire complex developmental functions remains poorly understood. Ant queens and workers develop dramatically different organ sizes from identical genomes under juvenile hormone (JH) control, yet the molecular effectors translating JH signalling into caste-specific organ growth remain unknown. Here we identify torch, a Hymenoptera-restricted gene, as the most consistently gyne-biased and JH-responsive gene across 68 ant species. Knockdown of torch in virgin queens of Monomorium pharaonis produces a worker-like, multi-organ growth-restricted phenotype. Mechanistically, torch harbours an E-box-like motif activated by the JH receptor Gce-Tai and acts as a GA-repeat-binding transcription factor that regulates Hippo signalling, the deeply conserved organ-size control pathway in animals. Expressing torch heterologously in mice and a growth-restricted Drosophila background shows that the gene retained its general growth-promoting activity across more than 700 million years of animal evolution in lineages that lack the gene, establishing that its function is mediated through conserved rather than ant-specific machinery. A lineage-specific gene can therefore acquire complex morphogenetic function by co-opting ancient organ-size circuitry, providing a general route by which novel genes can drive phenotypic innovation.

evolutionary biology↗