tool · draft

MATSim EpiSim

Open-source epidemic simulation from TU Berlin that adds an infection model to MATSim's simulated daily movements, so infections happen where simulated people actually meet; validated against COVID-19 in Berlin.

People & societyMovement & logistics

What is reusable: open sourceunknown dataAPI unknownopen participation AGPL-3.0Berlin results were published at covid-sim.info.

EpiSim takes the output of a MATSim transport simulation, a record of where every simulated person was and when over a day, and runs an epidemic on top of it.1,3 Two people who are in the same place at the same time can infect each other.3 The chance depends on how long they were together, the size of the room and how often its air is changed, whether they wore masks, and whether they were indoors or out.3,4 Infected people then follow a disease course taken from the literature, through symptoms, hospital, intensive care and quarantine.3

The Transport Systems Planning and Transport Telematics group at Technische Universität Berlin built it during the COVID-19 pandemic and announced it in October 2020.1,3 The main paper, by Sebastian A. Müller, Kai Nagel and six co-authors, appeared in PLOS ONE in October 2021.4 It describes a model of Berlin validated against the city's infection curve, in which changes in how often people went out came from mobile phone data.4 The model estimated the effect of contact reductions, school closures and holidays, masks, and leisure moving indoors in autumn.4 One finding is that cutting contacts has diminishing returns: the first half of the reduction does much more than the second.4 The authors write that the results can be used to inform political decisions.4

The core code is a Java library under AGPL-3.0, with a separate example project that runs a provided Berlin scenario and shows how to make an input file from any existing MATSim scenario.1,2 A user needs Java and Maven, and a MATSim run of their own region is the large piece of work.1 The repository is still being updated as of October 2026.2

What sets EpiSim apart from epidemic models built on contact matrices is that the contacts come from a model of people's daily routes and activities.4 Its limit is the same: it is only as good as the transport model underneath.

form
open-source Java extension to MATSim
group
People and populations
homepage
https://github.com/matsim-org/matsim-episim-libs
licence
AGPL-3.0
cost
free

uses this engine, platform or technique

  • MATSim tool draft

    Open-source framework for large-scale agent-based transport simulation, maintained by its contributors and the MATSim Association; simulates every traveller's day on a road and public-transport network.

    open sourceopen participation

does a similar job

  • JUNE tool draft

    Open-source framework, kept by the IDAS-Durham group, that simulates epidemics through the daily life of a virtual population built from fine-grained census data; first applied to COVID-19 in England.

    open sourceopen dataAPIopen participation

Tags: epidemic model, agent-based, COVID-19, mobility, Berlin

staging: drafts and proposals shown