bioRxivEcology
Easy, fast and reproducible Stochastic Cellular Automata with 'chouca'
A. Genin, G. Dupont, D. Valencia, M. Zucconi, M. I. Avila-Thieme, S. Navarrete, E. Wieters
Abstract
Stochastic cellular automata (SCA) are models that describe spatial dynamics using a grid of cells that switch between discrete states over time. They are widely used to understand how small-scale processes scale up to affect ecological dynamics at larger spatial scales, and have been applied to a wide diversity of theoretical and applied problems in all systems, such as arid ecosystems, coral reefs, forests, bacteria, or urban growth. Despite their wide applications, SCA implementations are often ad-hoc, lacking performance, guarantees of correctness and poorly reproducible. De novo implementation of SCA for each specific system and application also represents a major barrier for many practitioners. To provide a unifying, well-tested technical basis to this class of models and facilitate their implementation, we built chouca, an R package that translates definitions of SCA models into compiled code, and runs simulations in an efficient way. chouca supports SCA based on rectangular grids where transition probabilities are defined for each cell, with performance typically two to three orders of magnitude above typical implementations in interpreted languages (e.g. R, Python), all while maintaining an intuitive interface in the R environment. Exact and mean-field simulations can be run, and both numerical and graphical results can be easily exported. Besides providing better reproducibility and accessibility, a fast engine for SCA unlocks novel, computationally intensive statistical approaches, such as simulation-based inference of ecological interactions from field data, which represents by itself an important avenue for research. By providing an easy and efficient entry point to SCAs, chouca lowers the bar to the use of this class of models for ecologists, managers and general practitioners, providing a leveled-off reproducible platform while opening novel methodological approaches.
- research focus: benchmarking
- research focus: software / tool
- approach: deep learning
- approach: statistical model
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
- SRCompiler: Translating Stella dynamic models to open-source R scripts
E. Morales-Castello, C. Bordehore, … D. Garcia-Garcia·bioRxiv·Jan 8, 2024
- Accurate and efficient discretisations for stochastic models providing near agent-based spatial resolution at low computational cost
N. T. Fadai, R. E. Baker, M. J. Simpson·bioRxiv·Sep 24, 2019
- Accelerated Simulations of Chemical Reaction Systems using the Stochastic Simulation Algorithm on GPUs
James C. Pino, Martina Prugger, … Carlos F. Lopez·bioRxiv·Feb 14, 2020
- REDUCED-PRECISION STOCHASTIC SIMULATION FOR MATHEMATICAL BIOLOGY
Tom Kimpson, Mark B. Flegg, Jennifer A. Flegg·bioRxiv·May 6, 2026
- ChemChaste: Simulating spatially inhomogenous biochemical reaction-diffusion systems for modelling cell-environment feedbacks
Connah Johnson, Alexander George Fletcher, Orkun S. Soyer·GigaSciencePeer-reviewed·Jan 1, 2022
- Comparing individual-based approaches to modelling the self-organization of multicellular tissues
James M. Osborne, Alexander G. Fletcher, … David J. Gavaghan·bioRxiv·Sep 9, 2016