Preprint Article Version 2 Preserved in Portico This version is not peer-reviewed

SamPy: A New Python Library for Stochastic Spatial Agent-Based Modeling in Epidemiology of Infectious Diseases

Version 1 : Received: 25 November 2022 / Approved: 30 November 2022 / Online: 30 November 2022 (03:07:20 CET)
Version 2 : Received: 30 November 2022 / Approved: 1 December 2022 / Online: 1 December 2022 (02:09:32 CET)

How to cite: Viard, F.; Acheson, E.; Allibert, A.; Sauve, C.; Leighton, P. SamPy: A New Python Library for Stochastic Spatial Agent-Based Modeling in Epidemiology of Infectious Diseases. Preprints 2022, 2022110556. https://doi.org/10.20944/preprints202211.0556.v2 Viard, F.; Acheson, E.; Allibert, A.; Sauve, C.; Leighton, P. SamPy: A New Python Library for Stochastic Spatial Agent-Based Modeling in Epidemiology of Infectious Diseases. Preprints 2022, 2022110556. https://doi.org/10.20944/preprints202211.0556.v2

Abstract

Agent-based models (ABMs) are computational models for simulating the actions and interactions of autonomous agents in time and space. These models allow users to simulate the complex interactions between individual agents and the landscapes they inhabit and are increasingly used in epidemiology to understand complex phenomena and make predictions. However, as the complexity of the simulated systems increases, notably when disease control interventions are considered, model flexibility and processing speed can become limiting. Here we introduce SamPy, an open-source Python library for stochastic agent-based modeling of epidemics. SamPy is a modular toolkit for model development, providing adaptable modules that capture host movement, disease dynamics, and disease control interventions. Memory optimization and design provide high computational efficiency allowing modelling of large, spatially-explicit populations of agents over extensive geographical areas. In this article, we demonstrate the high flexibility and processing speed of this new library. The version of SamPy considered in this paper is available at https://github.com/sampy-project/sampy-paper .

Keywords

Agent-based-model; epidemiology; python; zoonotic diseases

Subject

Medicine and Pharmacology, Epidemiology and Infectious Diseases

Comments (1)

Comment 1
Received: 1 December 2022
Commenter: Francois Viard
Commenter's Conflict of Interests: Author
Comment: The paper content did not change, but I noticed a few typos in the abstract as displayed on the website. I am just correcting those.
+ Respond to this comment

We encourage comments and feedback from a broad range of readers. See criteria for comments and our Diversity statement.

Leave a public comment
Send a private comment to the author(s)
* All users must log in before leaving a comment
Views 0
Downloads 0
Comments 1
Metrics 0


×
Alerts
Notify me about updates to this article or when a peer-reviewed version is published.
We use cookies on our website to ensure you get the best experience.
Read more about our cookies here.