Next Article in Journal
Potential of Integrated Nutrient Management to Rehabilitate the Dieback-Affected Mango Cultivar Sammer Bahisht Chaunsa
Previous Article in Journal
Geophysical Prospecting of the Coptic Monastery of Apa Moses Using GPR and Magnetic Techniques: A Case Study, Abydos, Sohag, Egypt
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Pandemic Simulator: An Agent-Based Framework with Human Behavior Modeling for Pandemic-Impact Assessment to Build Sustainable Communities

by
Harshana Weligampola
1,
Lakshitha Ramanayake
2,*,
Yasiru Ranasinghe
3,
Gayanthi Ilangarathna
4,
Neranjan Senarath
2,
Bhagya Samarakoon
2,
Roshan Godaliyadda
2,
Vijitha Herath
2,
Parakrama Ekanayake
2,
Janaka Ekanayake
2,
Muthucumaru Maheswaran
5,
Sandya Theminimulle
6,
Anuruddhika Rathnayake
7,
Samath Dharmaratne
7,
Mallika Pinnawala
8,
Sakunthala Yatigammana
8 and
Ganga Tilakaratne
9
1
Elmore Family School of Electical and Computer Engineering, Purdue University, 610 Purdue Mall, West Lafayette, IN 47907, USA
2
Department of Electrical and Electronic Engineering, University of Peradeniya, Peradeniya 20400, Sri Lanka
3
Department of Electrical and Computer Engineering, Johns Hopkins University, Baltimore, MD 21218, USA
4
Department of Geography, Virginia Polytechnic Institute and State University, Blacksburg, VA 24061, USA
5
Department of Electrical and Computer Engineering, McGill University, Montreal, QC H3A 0C7, Canada
6
Dartford and Gravesham NHS Trust, Dartford DA2 8DA, UK
7
Faculty of Medicine, University of Peradeniya, Peradeniya 20400, Sri Lanka
8
Faculty of Arts, University of Peradeniya, Peradeniya 20400, Sri Lanka
9
Institute of Policy Studies, Colombo 00700, Sri Lanka
*
Author to whom correspondence should be addressed.
Sustainability 2023, 15(14), 11120; https://doi.org/10.3390/su151411120
Submission received: 24 May 2023 / Revised: 2 July 2023 / Accepted: 4 July 2023 / Published: 17 July 2023
(This article belongs to the Section Health, Well-Being and Sustainability)

Abstract

:
It is crucial to immediately curb the spread of a disease once an outbreak is identified in a pandemic. An agent-based simulator will enable policymakers to evaluate the effectiveness of different hypothetical strategies and policies with a higher level of granularity. This will allow them to identify vulnerabilities and asses the threat level more effectively, which in turn can be used to build resilience within the community against a pandemic. This study proposes a PanDemic SIMulator (PDSIM), which is capable of modeling complex environments while simulating realistic human motion patterns. The ability of the PDSIM to track the infection propagation patterns, contact paths, places visited, characteristics of people, vaccination, and testing information of the population allows the user to check the efficacy of different containment strategies and testing protocols. The results obtained based on the case studies of COVID-19 are used to validate the proposed model. However, they are highly extendable to all pandemics in general, enabling robust planning for more sustainable communities.

1. Introduction

It has been more than two years since COVID-19 was declared as a global pandemic, on 11 March 2020, by the World Health Organization (WHO). According to the WHO, the respiratory syndrome Coronavirus 2 (SARS-CoV-2), which was first encountered in December 2019 [1] in Wuhan District of China, has caused 629,370,889 confirmed cases and 6,578,245 deaths as of 7 November 2022. To preclude the spread of COVID-19, governing bodies of cities, states, and countries have adapted various non-pharmaceutical and pharmaceutical interventions [1]. Though most of the attempts have proven to be effective at controlling the pandemic, they have affected the economic and social welfare in numerous ways. Statista, a German company specializing in market and consumer data, states that the world experienced a drop of 3.4% in gross domestic product (GDP) and a 6.57% increment in global unemployment rate in the year 2020. Furthermore, this has affected the lives of human beings, causing degradation in mental health [2], changes in behavior [1], malnutrition due lack of food security [3], etc.
Most of the above-mentioned circumstances could have been avoided or mitigated if the governments were able to impose the interventions in a much more effective manner by considering the balance between socio-economic impact and disease propagation. In addition, these decisions should be made at a more granular manner as opposed to sweeping brute force approaches that were performed mostly based on assumptions. Some countries experienced consecutive waves of an outbreak due to the mismanagement of containment strategies put forth by governments [4,5,6,7]. Imposing and lifting lockdowns, stay-at-home orders, travel restrictions, quarantine measures, and bans on gathering events at the optimum time has a major impact on preventing the further spread of the disease [6,8,9]. The sustainable development goals (SDGs) set forward by United Nations (UN) contain the requirement of having sustainable cities and societies that are inclusive, safe, resilient, and sustainable. This requires the reduction of deaths and the number of people affected by natural disasters while decreasing direct economic losses [10]. Furthermore, it attempts to ensure that the human settlements are adopting and implementing plans towards inclusion, mitigation, adaption, and resilience to disasters in order to develop risk reduction strategies.
In the face of a pandemic such as COVID-19, it is vital to understand the interrelationships among transmission mechanics with each mutation; subtle behavior changes; social interactions during each surge; the impact of numerous containment measures at different administrative levels; and the penetration of vaccinations to build up the resilience towards communicable diseases and make cities, states, or countries sustainable.
Furthermore, discovering vulnerable locations and using an occupation-based vulnerability assessment will assist health care officials in identifying the disease-spread hot-spots in communities, which in turn will support more precise containment, resource allocation, and policy implementation. Occupation is a decisive factor in determining daily routine, as well as the likelihood of being a victim of certain risks [11] (e.g., health sector employees are highly susceptible because they work closely with infected patients); it is necessary to fathom and foresee the relative susceptibility towards the disease for each occupation and determine how an infection cluster might propagate through professions and locations based on the origin or source of infection.
In this paper, our primary objective is to propose an agent-based model that incorporates a novel motion model to mimic human motion in a realistic fashion. Additionally, we aim to develop an environment generator that can create simplified versions of complex environments, striking a balance between simplicity and sufficient complexity so it could be used for efficient information generation in the context of pandemic management. By leveraging the capabilities of this simulator, we strive to improve a proactive response to outbreaks through the application of an agent-based model (ABM). Furthermore, we attempt to make the model more informative and actionable while avoiding excessive complexity, to enhance response strategies in dynamic pandemic situations by accurately emulating real actions. Moreover, we try to develop the ability to model virtual environments that can enact policies and containment strategies proactively, leading to better response measures and policy-making in dynamic pandemic situations.
The PDSIM’s ability to simulate outbreaks, optimize interventions, model variant dynamics, and identify vulnerabilities will contribute to the development of sustainable strategies for pandemic management. Through conducting simulations pertaining to different strategies, the governing bodies can make informed decisions that protect public health, maintain societal functioning, and prioritize the needs of vulnerable communities. These efforts ultimately foster long-term sustainability in the face of outbreaks and pandemics.

Contribution

In PDSIM we introduce a more robust approach to modeling the complex movement dynamics of the population while considering individuals’ occupations. We provide a user interface that allows for the creation of more realistic environments and incorporates behavior modeling techniques. Additionally, PDSIM enables the conversion of a person’s experiences, expressed through a language, into a probabilistic model, enhancing the ability to accurately represent real-world scenarios.
The behavior of a population is commonly modeled using agent-based models (ABMs). In ABMs, the random walk has been widely utilized as a simple form of mobility [12]. However, when analyzing a person’s movement at a macroscopic level, it does not exhibit the characteristics of a truly random or pseudo-random walk. Instead, it follows a hybrid mechanism where individuals make macroscopic-level decisions regarding their next target location before moving, while concurrently exhibiting more random-like movements within specific locations. In order to capture this behavior, PDSIM employs a combination of random walk within specific locations, and discrete state transitions based on decision-making for movement between locations.
Additionally, the proposed simulator allows for the customization of the probability distributions of each occupation class, which are related to the decision-making process mentioned above. The probability matrices are tuned to accommodate the specific behavior patterns of occupation classes. The tuning of the parameters can be achieved from data extracted through a survey that is conducted on the behavior patterns of people in the region of interest.
When modeling the disease propagation dynamics, it is crucial to consider the mode of transportation used by the agents. To build a resilient and sustainable transport system and to rebuild trust in public transport [13], it is important to understand the role of mobility amidst a pandemic such as COVID-19. Even though Refs. [14,15,16] use scenarios that are based on complex intervention strategies, they miss the important interactions that occur when the agents use different movement methods, especially public transportation systems. PDSIM has been designed to incorporate the micro-level interactions occurring within public places, work places, transportation networks, and events, subjected to the level of social distance practiced. This enables the assessment of the impact of human behavior at a granular level on disease propagation.
PDSIM can serve as a valuable tool for simulating various containment strategies and exploring the spread of the disease and its impact on the society, thereby enabling policymakers to make well-informed decisions of when and how the strategies should be imposed. A summary of the major contributions of PDSIM is given below,
  • A hybrid movement model with realistic motion simulation incorporating real human-like behavior and decision making for inter and intra-location movement.
  • Occupation-specific motion and daily routine generation through the “daily routine generator” of a simulation engine, based on probabilistic models that are tuned at an occupation level. A unique and easily tune-able probabilistic function to derive the agent motion pattern based on their occupation characteristics.
  • A novel location occupancy mechanic to determine how long someone stays at a given location prior to location state transition determines the next target location. This mechanism stabilizes the location state transition by allowing it to trigger only when a decision to leave is taken, thus injecting a more human-like decision making process into the motion model.
  • An environment generator that uses a tree structure to build diverse surroundings that are highly scaleable and adaptable such that it enables the user to develop urban or other environments based on demographics and focus (manufacturing, commercial, residential, etc.). In addition, zones have been added to the environment, substantially simplifying it while maintaining a realistic emulation impact evaluation.
  • The incorporation of public and private transport systems into the simulation environment, enabling the ability to simulate the impact of public transport in disease propagation.
  • The ability to simulate super-spreader events (large gatherings); testing and vaccination protocols; the social distancing and hygiene (mask-wearing and sanitizing) of people; and multiple types of containment policies, and assess their impact on disease propagation.
  • The ability to design detailed variants, different communicable diseases, environment, and people (age factors, immunity, hygiene, etc.) based on disease transmission models.

2. A Brief Review on Epidemic Models

The potential to gain insights into the dynamics of infectious diseases and their impact on the population has made mathematical modeling a critical tool in epidemiology [17,18]. By systematically representing reported cases and deaths through historical data replication, mathematical modeling helps predict the number of infected patients and identifies long-term disease-spread behavior. This allows policymakers to prepare for worst-case scenarios and implement strategies for disease prevention while considering the social and economic well-being of the population.
The available mathematical models for pandemic simulation can be classified into two main types: compartment models and agent-based models (ABMs). The most commonly used simple compartment models divide the population into compartments representing different states. These compartments are often assigned to Susceptible, Infected, and Recovered (SIR) statistics, while dynamics between them are modeled using differential equations [19]. Despite the use of compartment models to simulate epidemics initiated with [20], they have evolved significantly through the introduction of more detailed compartments and conditions used to analyze the dynamics more comprehensively [21]. The SIR models have been further expanded to include SEIR and SEQIR models, which incorporate compartments for the exposed and quarantined population [20,22]. Improvements in the classical epidemic SEIR models have been made through the incorporation of multistage time-delay control models (MTCM) for COVID-19 transmission, resulting in better simulation results [23]. Furthermore, [13] incorporates an activity-based transport model to simulate the spread of the disease on a regional scale. These models have been used to evaluate the efficacy of contact tracing [24] and other interventions, ensuring the sustainability of communities against pandemic scenarios [13,25].
Compared to compartment models, agent-based models (ABMs) offer a more detailed approach to modeling the population while paying attention to each agent. ABMs are advantageous when investigating individual behavior and the spread of diseases as well as for capturing variations in demographic, social, and economic elements within a population [26]. ABMs have been used to simulate the spread of infectious diseases in various environments, ranging from workplaces and households to large cities, under different control strategies [14]. Several agent-based influenza pandemic models have been repurposed to simulate the spread of COVID-19 transmission and the impact of social distancing measures in different countries [27,28]. Moreover, new ABMs have been developed to evaluate the impact of social distancing, contact tracing [29,30], and super-spreading events [31].
The PDSIM is a comprehensive and versatile model, distinguishing it from alternative models presented in the literature. The unique features of the proposed architecture compared to the existing simulation models are presented in Table 1. Most models in the literature focus on analyzing specific aspects of a pandemic, such as disease propagation [32], intervention effectiveness [5], and transportation [13,33,34]. However, the PDSIM takes a multi-dimensional approach, accounting for numerous key variables associated with pandemic spread. The PDSIM includes features such as disease propagation modeling, hygiene simulation, recreational activities, testing protocols, vaccination and containment strategies, which are common to the prior models. It also introduces novel features, such as generative realistic human motion, public transportation systems, unique and detailed daily routines, and super-spreader events, which are critical in analyzing pandemic behavior.
Moreover, the ability of the PDSIM to easily calibrate the motion model and construct an environment to match the demographics and dynamics of a specific region of interest makes it a versatile tool compared to other replicator models that require a vast database of real data specific to the environment being simulated. This integrated model is extremely useful for decision-makers who must balance multiple priorities and objectives in response to a pandemic. Additionally, a tool with this potential can identify pandemic preparedness and the effectiveness of policymakers’ responses, providing insight into more effective decision-making to enhance the community’s sustainability against future pandemics.

3. Materials and Methods

PDSIM is an agent-based model where an agent represents a person in a community that is divided into occupational categories. The movement patterns of each agent are mainly driven by their occupational class. During the simulation, each agent will follow a unique trajectory shaped by the occupation of the individual. The simulation’s study population can be easily adjusted to reflect specific demographics and focus on the environment of interest. Furthermore, PDSIM is capable of simulating the disease transmission between agents concurrently, accounting for the disease progression inside the body of an infected agent until recovery or death. The agents are modeled to respond to factors such as time, disease infection, lockdown/quarantine measures, and public events.
The PDSIM provides the flexibility to adjust parameters through an interface to tune the simulator in order to mimic different real-world environments with their inherent features. These parameters will directly affect the simulation by varying intrinsic properties of agents, locations, and movement methods. In addition, the capability to adjust disease-related parameters allows the user to analyze the effect of different variants and their effect on disease spread.
The following sections will include an in-depth discussion on the modeling of the PDSIM. The initial section will focus on how COVID-19 disease propagation is modeled in the simulator and on the mechanisms used to model the transmission of the disease. Afterwards, the modeling of the environment and people will be discussed, including the modeling of mobility for agents based on factors such as occupation, the state of the day, and containment strategies imposed by the governing bodies. Then, in the Interventions section, the tools that can be used to carry out experiments with the simulator, where the user can change the social distancing protocols, hygiene practices enforced in different locations, testing protocols, vaccination strategies, isolated areas, and various social events, are presented. Next, an illustration of the additional features included in PDSIM where users can easily calibrate and run simulations while visualizing and interpreting the outputs using an intuitive UI, is included.

3.1. Disease Propagation

The population was separated into different categories representing the disease state, namely, susceptible, infected, recovered, and dead. Depending on the indications of symptoms, the infected category was further divided into asymptomatic and symptomatic states. The progression from one state to another is illustrated in Figure 1. The symptomatic state is separated into mild, severe, and critical stages ( S D ) to evaluate the severity of the infection. The probability values for progression from each state and each age group are given in Table 2.
The PDSIM provides the flexibility to adjust parameters such as the incubation period, the ratio of asymptomatic agents from all infected agents, and the probability functions related to disease severity, allowing the user to introduce and analyze the behavior of existing and potential variants. This could eventually assist the health care providers and the governing bodies of the city/country to impose containment strategies to effectively control the spread of the disease. Furthermore, PDSIM can also be used to assess the impact of different types of pandemics and disease variants to identify the classes or communities that need more assistance and protection to plan accordingly while building-up resilience.

3.2. Transmission of Disease

Current studies have proven that the transmission of COVID-19 can happen just before developing symptoms as well as when symptoms are visible, given that the people were in contact for a prolonged period. Even though asymptomatic agents are capable of transmitting the disease, the relative transmissibility of asymptomatic patients is lower compared to symptomatic patients. To mimic the lower likelihood of coming into contact with infectious aerosols from an infected individual, a decaying function is used as the transmission probability variation with distance. The simulator provides the flexibility of introducing new variants of COVID-19 allowing the user to adjust parameters such as transmissibility, infectability, and the transmission probability variation with distance.

3.3. Environment Structure

In order to test the effectiveness of the containment strategies on an environment using a simulation model, the virtual model of the environment should represent the infrastructure of the actual environment, to some extent. However, depending on the type of environment, the locations that need to be included can vary. Modeling all these locations for different environments is a tedious task. Therefore, PDSIM has pre-built locations separated into several classes that can be used to model complex environments by defining the location details and connecting these locations using a hierarchical structure.

3.3.1. Locations and Functionality

A location is defined as a land area with a boundary and performs as a specific place essential for an agent to follow its daily routine. A location can overlap another location (i.e., land areas are not mutually exclusive), and a location does not change its shape with time. In PDSIM, a circle or polygon represents a location. The environment builder offered by PDSIM allows users to construct customized environments using a range of fundamental building blocks. Moreover, it encompasses a collection of 43 pre-modeled environments, which span from individual units such as “homes”, “hospitals”, and “parks” to more complex compound environments such as “residential zones”, “educational zones”, “urban blocks”, and “dense districts”. This comprehensive selection empowers users to leverage these readily available environments when developing specific simulations.

3.3.2. Hierarchical Modeling of the Environment/World Using Locations

The tree structure used to model the environment is shown in Figure 2. The structuring is carried out in such a way that it realizes agent movement in the best method as a tree traversal. If an agent is traveling from the house to a shop in the town, then he/she must leave the node corresponding to the house and enter the residential zone. Next, the agent has to travel to the network representing the city prior to entering the desired building.
Furthermore, this tree structure provides the flexibility to design different environments by adding and removing blocks. The district illustrated in Figure 2 consists of two urban towns and a single rural town depicted using different color schemes. The rural setting does not contain many sub-sections, while the urban setting contains many sectors such as garment sectors, commercial sectors, and residential sectors, which further detail the structure of the urban town. The selected commercial sector is made out using six buildings. A building is constructed as a collection of diverse rooms, which is considered to be the basic building block of the environment. Once an environment is built, it can be used as a building block to build a much larger environment. This structure further simplifies the modeling of the environment of interest while preserving the tendency to successfully simulate the impact assessment on a given location.
Table 3 represents the final step of building a dense district through a hierarchical approach. The dense district is made using five urban blocks and three rural blocks. The urban block can be made following the composition of zones mentioned in Table 3. The zones are built in the previous level by using several buildings and settings unique to the focus of the zone. As an example, a residential zone will consist of homes (10), residential parks (1), a bus station, a three-wheeler park, and a gathering place.

3.4. Agents

An agent in PDSIM represents one person in the real world. To predict and investigate the disease’s spread, the accurate modeling of human mobility is required. In the real world, the mobility of people is greatly shaped by their occupations. Owing to this fact, the agents are categorized depending on the occupation category/functionality in society. Different agent classes such as commercial workers, hospital workers, administrative officials, students, and elderly citizens are presented in PDSIM allowing users to customize the population as needed. In the PDSIM, the simulation’s population composition can be easily customized through the user interface. Users can modify the demographics to match the actual population characteristics of the environment. Furthermore, the PDSIM allows for the inclusion of new occupational classes by specifying probability matrices related to motion and other parameters. This adaptability of the model allows for its effective application in various scenarios, accommodating different population characteristics and specific areas of interest. By tailoring the simulation to specific contexts, the model becomes highly flexible and applicable to a wide range of scenarios.
An agent class has properties such as age and gender that can be initialized at the start, to represent the demographics of a given region. Each agent is assigned a location modeled as a home and working place for the entirety of the simulation. In a high-level picture, an agent should go to the working place in the morning from home and come back home in the evening on weekdays, and they will not return to the working place on the weekends. If a simple daily routine for each agent is initialized, then agents in the same class will have similar routines. This repetition is avoided by assigning each agent to different working places and homes. Further, the routes are perturbed by various daily chores that people are doing. For example, some people visit supermarkets when returning home from the workplace or visit the hospital, school, markets, etc. The set of locations an agent visits in a daily routine is determined through a discrete pseudo-random sequence generated based on an agent’s probability of being at a given location at a given time. This helps in achieving more individualized randomness among agents of the same class.
Moreover, an agent has other fuzzy parameters such as immunity, body temperature, hygienic behavior, and social and physical characteristics, which are used for the disease simulation and daily routine adjustments to promote uniqueness further. When an agent gets infected, the information about the source of infection, the infected place, and the time are logged to analyze the disease’s spread. Additionally, the test result is stored in the agent if an agent has been tested for COVID-19 using a given testing procedure. Additionally, the position at each time step, the locations that they travelled to, the movement methods used, and the close contacts at each time step will be stored for further analysis.

3.5. Mobility

It is imperative to make sure that the movement of the agents in PDSIM resembles the real-world motion of people. Usually, movement is modeled as a random variation of the position in 2D space. However, in the real world, most people move in a combined discrete and random fashion, which is illustrated in Figure 3. The discrete movement is a result of moving between different locations.
In PDSIM several strategies are used for moving agents according to the aforementioned combined discrete and random motion. At the beginning of a given day, a daily routine for each agent will be initialized based on the day of the week and the type of containment policies applied on that day. For example, a person of a particular occupation changes their daily routine if a lockdown measure is applied to the population on the weekend. As people decide on the location to visit before the movement, in between locations movement is adapted to be discrete. On the contrary, the in-location movement of a human is dependent on the sudden decision. Hence, it is modeled to be a random motion.
The following sections are dedicated to elucidating the methodologies used for daily routine initialization and for unique mobility pattern generation, as well as for describing the movement systems used in the PDSIM.

3.5.1. Daily Routes Initialization

At the beginning of the day, each agent should decide which locations they should visit throughout the day. Next, arrange them in a discrete sequence as the agent’s daily routine. The goal of the simulator is to move the agent from the starting location to the end location, passing through all intermediate locations of the sequence. This route contains locations that the agent should visit and a corresponding leaving time for each location. If an agent visits a particular place, the agent should stay there until the leaving time following a specific movement pattern. When it is time to leave the location, the agent will use a preferred movement system for moving to the next location.
Building the daily routine for an agent according to the aforementioned method gives arise to two central problems:
  • To what location will an agent be more likely to go at a given time of the day?
  • How long will an agent stay at a particular location?
To solve these problems, two probability matrices are introduced. These matrices are used to decide an agent’s tendency to visit a particular location at a given time (visit-probability matrix V ) and how long that agent will stay at that location (occupancy-probability matrix O ).
The probability of going to a particular location at a given time of a day is provided by the location visit-probability matrix V . Each agent class (based on their occupation) has a unique V ( n L × 1440 ) matrix where n L is the number of different types of locations and 1440 is the number of minutes in a day. To understand how the simulator selects a location using the V , let us consider two location types (at n L = 2 ): “home” and “classroom”.
When initializing the daily routine, to decide where an agent would be at time t, PDSIM extracts the visit probabilities of all potential locations for an agent based on V , as illustrated in Figure 4. Then, the location is selected, giving higher priority to the places having a high visit probability. In order to perform this selection, the visit probabilities at time t are sorted in descending order, and a random number is selected from the exponential probability distribution illustrated in Figure 4 (the motivation for selecting an exponential distribution with 0.2 rate parameter is to increase the chance of picking a location with large probability values). Finally, the location type is selected by projecting the random number onto the horizontal axis.
According to the example in Figure 4, if the randomly generated number is between 0 and x, we select the “classroom” location type as the next location type of the daily routine. If it is between x and x + y , the “home” location type will be selected. The extracted visit-probability values are stacked along the x-axis, as illustrated in Figure 4.
A visualization of the visit-probability matrix for the student class is illustrated in Figure 5, where the time of the day (minutes) is given on the x-axis, and the y-axis represents different location types using location numbers (location no.).
The intensity of the color shown in the color bar on the right indicates the likelihood of visiting a particular location represented by a number between 0 and 1, where a higher value means that the agent is more likely to visit that location. In PDSIM, an agent has its own home, workplace, and weekend home location, and its visit-probability values are represented through the rows corresponding to location nos. 26, 24, and 25, respectively, in Figure 5. Therefore, when initializing the daily routine, if one of these unique locations is selected as the following location, PDSIM will choose the specific location assigned to the particular agent instead of the closest location of the selected location type. For the student example in Figure 4, visit-probability values for these unique locations are illustrated in the first three rows.
The above-mentioned unique and fixed places for an agent further assures the generation of non-identical routines for agents. For example, consider two agents from classes X and Y (two agents are x 1 and y 1 ). Then, the route for x 1 is not the same as y 1 ’s route because their home and working place are different. Thus, they will take different paths, and they might go to different intermediate locations as well. When considering two agents from the same class X (two agents are x 2 and x 3 ), let the home and working place of two agents be h 2 , h 3 and w 2 , w 3 from location classes H and W. Even though the location classes of the two agents are similar, the locations that they visit will be different. For example, the route of x 2 can be h 2 w 2 h 2 , and the route of x 3 can be h 3 w 3 r h 3 where r is a retail shop.
The location occupancy-probability matrix O gives the probability of a particular agent staying in a location. Each agent class (based on their occupation) has a unique O ( n L × 1440 ) matrix. The use of O removes the Markov-ness (dependency on the previous location) of our daily routines. It removes the potential for unstable oscillations among locations through a subtle manoeuvre. In addition, the time spent at a location is easily understandable graphically.
Let us assume that “classroom” has been selected as the next location type, and a specific location of that type has been chosen to add to the daily routine. Now, it is necessary to decide how long an agent will stay in that particular location. This duration of staying varies with the type of agent (occupation) and the location where the agent will stay. Thus, O defines the probability of the agent staying in each location type for a given duration. The selection process of duration for “classroom” is illustrated in Figure 6, where a random period is selected according to the shown probability distribution. Thus, the chosen random duration for the agent who will go to “classroom” should be a value most likely around 0, 40, or 80 min. This gives a more realistic duration for a student staying in a classroom where it can be assumed that a single subject will be taught for multiple 40-min periods.
For the same student class, the overall occupancy-probability matrix O is given in Figure 7, where the duration of staying in a location (in minutes) is provided in the x-axis, and the y-axis represents different location types as Location No. The intensity of the color given in the color bar on the right indicates the likelihood of staying in a particular location for a given period, where a higher value means that the agent is more likely and vice versa. The duration of staying in a location can be selected by randomly choosing a duration based on the probability density function of the O matrices’ corresponding row designated for that particular location. Both V and O mentioned above can be redefined for specific days. For example, on the weekend, people’s daily routine is very different from a weekday and more similar to a holiday. Therefore, there are multiple matrices for different types of days, and they are selected according to the day of the week.

3.5.2. Mobility Patterns

As mentioned in the previous section, the movement can be categorized into two types: intra-location movement and inter-location movement. Intra-location movement pattern mainly depends on the location type. The movement of an agent can vary from being stationary to high mobility. The random movement can be controlled by increasing or decreasing the velocity randomly for horizontal and vertical directions.
When moving between locations, an agent must initially move to the existing point of the current location. Then, the agent will travel toward the next location. Unlike the stochastic movement explained earlier, as the agent has a target position that they should reach, the agent should move towards the entrance point of the next location in a predefined line between two locations.
Figure 8a illustrates a part of the environment in a particular simulation. It shows the path taken by an agent inside a location (intra-location motion) and the path taken when moving in between two locations. The circular shapes represent different places in the environment (a room, building, etc.). Figure 8c shows an actual path taken by a person in the real world on a particular day. The path taken by an agent in the simulator, as illustrated in Figure 8b, is similar to the real-world path, where one can see a stochastic motion when a person is occupied with a specific task inside a location and a discrete movement, or a “jump”, where people are moving between two locations.
Even though these two movement methods can model the basic movements of an agent, one should consider more factors associated with the mobility of an agent to simulate disease transmission properly. For example, the moving speed can vary from each movement system. Additionally, if the agent uses a vehicle for movement, it can be isolated from other agents using another vehicle. Therefore, different movement systems are introduced in PDSIM to tackle some of these problems.

3.5.3. Movement Systems

The movement characteristics of an agent when moving around a location are different from the movement when an agent is moving from one location to another. For example, when an agent is in a building, the agent can walk around slowly while interacting with other agents in the building, but when an agent moves between two cities, the agent may use a private vehicle and he/she will have very few interactions with agents they encounter. However, if the agent uses a public transportation method such as a bus, the agent will interact with other passengers in the same vehicle. In the stated scenarios, unique movements, interactions, and disease transmission dynamics vary.
In PDSIM at the beginning of the simulation, each agent is assigned to a particular movement system responsible for the agent’s movement. This is randomly selected from a set of movement methods assigned for a given occupation. The set of movement methods reflects the agent’s occupation and economic standing (e.g., the administrative agent is likely to use their private vehicle, whereas an average commercial worker might use public transport vehicle). The movements can vary from simple walking in a building or driving a car to a more complex movement system where one agent transports several other agents, similar to a bus driver. In every location change of an agent, they are assigned to a movement system and subjected to that system’s disease transmission dynamics.
The simulator consists of two central movement systems. Independent Movement Systems (IMS) operate independently of other movement systems. Independent movement methods such as walking or traveling using a personal vehicle fall into this category. If an agent who is using an IMS intends to move to another location or roam around, he/she can initiate the movement without waiting for transport.
If an agent is moved by a transporter, then it is modeled under Dependent Movement Systems (DMS). In this, transporter agents are responsible for moving other agents around the environment. Some examples of these movement systems are buses and taxis. In these systems, travellers cannot move unless they enter a vehicle driven by a particular transporter agent. Transporter agents follow a specific daily routine where they move, passing different locations. When these transporter agents approach a specific location, if there are travellers who want to travel to a destination where the driver agent is also going, those travellers will latch onto the transporter agent. The maximum capacity that a transport agent can move at a time is assigned based on the mode of transport (vehicle). For example, a taxi driver can accommodate up to 3 passenger agents, and a bus driver can accommodate up to 60 passengers. Therefore, in contrast to the previously mentioned IMS, agents cannot immediately move when they want to travel to another location. They have to wait at a “stand/stop” until public transport is available, much like in reality. When an agent reaches the destination location, the movement system will be changed to the settings used in the destination location. If a location is quarantined or isolated, the agents will not be able to leave the location until the containment is lifted off.
Each agent has a preferred movement mode. Therefore, all agents will not use the same movement system when traveling between locations. This preference will be overridden if the locations enforce a default movement system through an overriding level. In that case, the agents cannot use their favourite method, but they should compel with the regulations in the location. For example, movement systems implemented for walking, cars, and buses can have an overriding level of 1, 4, and, 9, respectively. This ensures that the car owners will use their vehicles even though traveling by bus is an option, but they cannot use the car in a walking area such as a park.
The proposed movement system ties well with the combined random and discrete motion style. This novel system is used to realistically model the paths taken by agents in collaboration with other features of PDSIM. Furthermore, this enables the assessment of vulnerabilities in the transport sector and helps to determine the effectiveness of social distancing practices in public transport.

3.6. Interventions

PDSIM provides additional features on top of the mobility and disease propagation models to include different dynamics of the society into the simulation. These additional features can be utilized in implementing policies to improve the resilience of the environment to diseases such as COVID-19.

3.6.1. Physical Distancing

The distance between two people directly impacts how the disease will spread. Different levels of social distancing practices are implemented in different locations. In the real world, some places such as supermarkets, hospitals, and banks impose social distancing protocols inside their premises. The agent in PDSIM will maintain social distancing, adhering to the protocol implemented by the locations, unless the agent’s personal opinion overrides it.
The physical distancing intervention can be used to identify the effectiveness of social distancing measures for different locations. Furthermore, this enables the user to implement different regulation measures to gauge their impact for a given location and identify the general variation of the infection statistics.

3.6.2. Hygiene

The hygiene practices of individuals play a crucial role in preventing the spread of diseases on a major scale. However, it is important to recognize that the likelihood of individuals following hygienic practices can vary significantly from person to person. During the COVID-19 pandemic, many locations and establishments implemented essential hygienic measures, such as the use of hand sanitisers, frequent hand-washing with soap, and wearing face masks. These practices were made mandatory before entering certain places to minimize the risk of infection. In line with this real-world scenario, PDSIM has introduced a property that reflects the hygiene level of an agent within the simulation. When setting the parameters for the simulation, the parameter related to the level of hygiene can be altered to reflect the hygiene practices followed by agents. Through this, different levels of hygiene can be assigned to each agent class (occupational class) available in the simulation. Agents with lower values of this property are assumed to adhere more strictly to hygienic measures, while those with higher values may be less inclined to follow them consistently. The agents with less hygiene have a high probability of getting infected and are prone to spread the disease to other agents upon contact. Moreover, to capture the impact of implementing and promoting good hygiene practices, certain locations within the simulation can actively boost the hygiene levels of agents present in those areas. By simulating variations in individual hygiene practices, PDSIM provides a comprehensive framework for studying the dynamics of disease transmission and evaluating the effectiveness of interventions aimed at promoting better hygiene practices.

3.6.3. Testing, Diagnosis, Quarantine, and Isolation of Positives Agents

PDSIM tries to realistically perform the testing and diagnosis of infected agents. Testing is carried out randomly in the medical zones. If an agent is symptomatic, there is a higher chance of selecting the particular agent when randomly selecting the agents for testing. Moreover, a limit is assigned for the number of tests carried out in a single test center on a given day. Once an agent is tested, there is a predefined lag prior to receiving the test results. Different testing methods such as PCR and the antigen test are designed with different testing accuracies to imitate the real-world scenario. Once an agent has tested positive for COVID-19, PDSIM either sends that patient to a COVID-19 treatment center or they are treated at their quarantined home.

3.6.4. Contact Tracing

When a susceptible agent is infected with COVID-19 by another infected agent, the information about the infected source is stored to trace the contact. Further, the place and time information are used to analyze the vulnerable locations and identify critical periods when the disease spread. This will be helpful in understanding the mechanics of disease propagation based on location and occupation.

3.6.5. Vaccines and Treatments

PDSIM allows the user to schedule vaccination events and define a limit of the age group that will be vaccinated at a particular event. Users can define vaccination events that store the dates of the vaccination and the limit of the age group that will be vaccinated. During an event, the unvaccinated agent will be randomly selected from the given age group and vaccinated. Vaccination will increase the immunity of the agents, making them resistant to the disease and less likely to spread the disease. In PDSIM, the immunity achieved through vaccination will decay by 1% each day [46]. This is equivalent to a reduction of the immunity boost given by vaccine to half through a period of two months). A vaccinated person is eligible for a second dose if the immunity boost falls low. PDSIM provides the opportunity to analyze the effect of the vaccination. The user can compare different vaccination strategies and different vaccines to select the optimum strategy, which decreases the spread and the casualties of the disease.

3.6.6. Simulating Different Types of Social Events (Super Spreader Events)

Throughout the world, it has been observed that most of the new waves of COVID-19 started from a gathering event held when the containment measures were relaxed by the governing bodies of the locality. These sudden outbreaks were reinforced with different variants that spread faster and more severely and caused massive societal disruptions. PDSIM provides the ability to design this kind of large gathering as super spreader events specifying the time, duration, maximum capacity, and characteristics of the people who might enter the event.
Adding super spreader events makes it possible to assess the effect of organizing such large events in a pandemic situation and analyze the overall statistical trends, such as the generation of new waves, because events create opportunities that enable interactions between isolated groups of people who otherwise do not interact.

3.7. Data-Input User Interface (UI)

PDSIM allows the user to update the basic parameters of the simulation, such as the number of simulation days, infection radius, incubation period, and demographic information, through a UI.
Furthermore, the user is able to design the environment through the UI. Users can create a wide array of environments that would best reflect the societies they hope to simulate and use them to replicate similar locations and variants that make the overall location structure. Additionally, the users can update the characteristics of each population group and define the custom immunity levels, tendency to follow guidelines, preferential modes of transport, practice of good hygiene in certain groups, and social distancing likelihood, which are critical to disease spread. The UI provides the flexibility to easily add any interventions to the simulation using events such as gathering events, variant breed events, containment events, and vaccination events.
If V and O are initiated using real-world survey data to mimic the behavior of people in a certain locality or an occupation, PDSIM can be used to forecast the disease propagation patterns. Then, the results can be used to identify vulnerable locations and occupation classes to test the effectiveness of the containment strategies. Further, the users can observe how the mindset of the population changes with the pandemic. The outcomes of these simulations will assist the authorities when preparing for waves of such communicable diseases and allow them to make better decisions to prevent the spread of the disease.

3.8. Software Architecture

The PDSIM simulation engine was developed using Python 3.7 with the support of additional libraries. Libraries NumPy 1.19.5 (numpy.org, accessed on 1 August 2020) and Pandas 1.3.5 (pandas.pydata.org, accessed on 1 August 2020) were used for data manipulation, storing, and loading. Additionally, to parallelize the computational processes and increase the speed of calculation, a multiprocessing library was used. The simulation parameter adjustment, initialization, and execution, and the results of visualization, are made using the front end, developed using ReactJS. The source code for PDSIM is available in GitHub. PDSIM is fully open-source, and you can find more information at ai4covid.lk/simulator, with complete documentation and a comprehensive set of tutorials. A simple web app for PDSIM has been developed based on React.js (Node.js 16.16.0) (for the frontend), Flask 2.3.2 (for communicating between the frontend and the backend), and Gunicorn/NGINX (for running the server).

4. Results and Discussion

In this section, the operation of PDSIM is validated through the results obtained through simulations. Furthermore, the operation and effectiveness of the disease-related dynamics are observed, and their applicability to mitigating disease spread amidst a pandemic is discussed. In addition, PDSIM is used to compare the disease spread within the population by initializing the simulations by spawning infected agents among different classes of agents, for 120 days.
Initially, the disease transmission between different groups of agents was studied considering different occupations and age groups. For that purpose, the number of infection events per infected person in each group was calculated with respect to other groups. For example, considering a grouping method by occupation, if there are 10 infected students on a given day, we estimate how many others in each occupation were infected by all 10 students and normalize them by the number of students. These values were calculated for each day and averaged to obtain the mean infections from one occupation to another within a day. Similarly, the average number of infection events per day was calculated for all occupations, and it is illustrated in Figure 9. This can be used to observe the transmission of the disease from one occupation class to another. This will aid healthcare workers and governments in identifying potential groups who are susceptible to infection when an infected cluster is formed among a particular set of agents.
Furthermore, the granularity provided by the PDSIM enables intensive analysis to be carried out in terms of disease spread in a community. Through the infection propagation tree diagrams illustrated in Figure 10, it allows the user to trace the infection transmission events. Figure 10a manifests the capability of the PDSIM to pin point the disease transmission path among agents, while Figure 10b tracks where the infected contact happened. Once an environment is modeled and the demographic information is fed, the data provided by these propagation diagrams after simulation will help governments to identify the next vulnerable groups and locations, so that pin-point containment can be carried out rather than using city-wide lockdown strategies, which affect the social and economical state of the community. The sector (educational, transportation, commercial, etc.) for which the cluster-initiated PDSIM can be used to identify how the infections are spread to the other sectors and locations is shown by summarizing the infection tree diagrams.
Figure 11a,b summarizes the cumulative number of infected cases from different occupations reported in the first 30 days when a simulation is initiated by infecting agents from the transportation sector and education sector, respectively. Observing the diagrams, it can be seen that the cluster initiated among the tuk-tuk drivers and bus drivers has rapidly spread to other occupation classes. Additionally, the pie charts encapsulate the infection summary with regard to locations. From this, the users can identify the most vulnerable locations once an outbreak occurs within a certain group of people. According to Figure 11c, most of the infections happen within educational zones and industrial zones when a cluster is initiated in transportation sector. However, for an outbreak started in an educational sector, the second highest number of infectious contacts is reported inside residential zones, as shown in Figure 11d. The information conveyed from these types of analyses can be used by healthcare officials and governments to identify the locations within a city that are prone to spread the disease. By knowing these, the officials can build up resilience within them by using proper policies. Once the susceptible locations are identified and isolated, simple measures such as improving hygienic practices and social distancing protocols can make an immense impact by reducing the disease spread. These will eventually make the community safe against the pandemic, enabling the uninterrupted operation of the essential industries and services, thus making the community sustainable.
The ability to build complex environments through a simpler hierarchical tree structure allows for the easy customization of the environment through the environment builder to build different types of cities such as industrial cities, sparse districts, slums, or suburbs. As a result, an infection cluster’s propagation dynamics among different types of cities can be analyzed using the PDSIM similar to those in Figure 10 and Figure 11. In this way, we can understand how the disease spreads in diverse environments once an infected cluster that has originated in a particular group of people can be predicted. For instance, a state government can identify the most vulnerable cities by taking factors such as demography and focus into account. Hence, decisions can be taken on a micro level to prevent outbreaks and mitigate the rapid spread of disease once an outbreak occurs in different cities, making them resilient toward the pandemic.
Next, the impact of the disease propagation modeling carried out according to Figure 1 is observed through the violin diagram that is illustrated in Figure 12. This provides an overview of the time taken by the disease to progress from one state to another. The data observed are illustrated in Figure 12, where a kernel density estimation for each disease state is shown on top of a box and whisker diagram. This provides invaluable information such as the death ratio; incubation period; severity; and, most importantly, how long a wave would last. This highlights the importance of the violin plot in order to identify the essential characteristics of the dynamics of a given pandemic. The information on the time taken for disease state transmission can be considered as inherent to different variants. This allows policymakers to foresee the threat and allocate resources feasibly. For example, the health services can use the simulation results to predict the time window that will report a higher number of critical cases and strengthen their infrastructure.
After that, the effect of implementing different scenarios such as gathering, vaccination, and containment events on the dynamics of the disease spread is explored.
Initially, a simulation was carried out to mimic the normal behavior prior to the pandemic without any containment strategies or other protocols.
To investigate the response to super spreader events, several gathering events were scheduled on the 20th day of the simulation with a maximum capacity of 20 people per event. Then, the variation of the number of infections was observed by varying the number of events, being 5 and 10 in consecutive simulations. Figure 13 illustrates the simulated results, which show the anticipated spike in the total number of infections and new infections after a gathering event is held. In addition, it can be seen that the number of new cases correlates with the number of gathering events held.
To analyze the effect of different containment strategies’ ability to curb disease spread, different containment policies were imposed on the 20th day of the simulation, and the number of infected people for the following days was observed.
First, the simulation was carried out without interventions as the baseline observation. Next, a separate simulation with lockdown as the containment strategy was carried out. According to Figure 14, it can be observed that when a lockdown containment is applied, it immediately reduces the number of new infections. However, the number of new infections is not reduced to zero because disease transmissions happen between people in a home where an infected person is living. It was observed that the lockdown containment procedure reduces the total infections by around 40% when compared with the simulation that does not implement any containment measures. Thereafter, a simulation was carried out in which a quarantine containment strategy starts from day 20. During this, people who tested positive for COVID-19 were quarantined in their respective households. According to Figure 14, it can be seen that the reduction of new infections is minimal when compared with the lockdown containment strategy. When quarantine containment is implemented, those identified as infected agents will be home quarantined, which results in quarantining other members of the particular household. Therefore, there is a disease transmission within the house, but it is contained. Consequently, a small increment in the number of infected agents due to the disease spreading from unidentified infected agents as well as within-house infections in a quarantine containment strategy can be observed. The total number of infected agents was reduced by around 23% compared with the simulation with no containment measures. According to Figure 14, it can be seen that the number of new infections with a roster-based containment strategy has an average total infection count below the normal case but with high variance. This is because more infections occur at home, and those infected at home go outside and infect other people, increasing the number of new cases. The ability of the PDSIM to capture this sensitive information allows it to be used to test the effectiveness of different containment strategies prior to imposing them.
Mitigating the rapid spread of the pandemic it is vital when seeking to conduct social distancing and vaccination strategies optimally. Figure 15 shows the days and how vaccination is carried out for the population. The dashed line indicates the initiation of vaccination for a particular age group. The vaccination program will be conducted every day after initiation. The first dose of vaccination will be given to all agents. The second dose of the vaccination will be provided after a certain number of days when the immunity boost of the first dose is below a threshold value. The vaccine’s efficacy can be adjusted as a hyper-parameter to vary the number of new infections further. Figure 15 compares the number of infected people under vaccination and without vaccination scenarios. The ability to compare the effect of vaccination depending on the dates, order of vaccination, type of vaccination, and social distancing protocols can be used to make the vaccination program more effective.
One of the significant turning points in the COVID-19 pandemic is the introduction of different variants of the disease by mutation. This spreads more severe variants such as the “delta variant” or a more transmittable variant like the “omicron variant”. To realize the behavior of the variants modeled through PDSIM, two tests were conducted by introducing a more transmittable variant and a more severe variant to the population independently. Then, the total number of cases using the simulation is observed.
According to the illustration in Figure 16, the number of infected patients for the severe variant did not increase as rapidly as the more transmittable variant. However, the number of people in the critical state increased in the severe variant, and consequently the number of deaths reported increased after a few days.
The Results and Discussion section presents a robust and impactful analysis of the simulation outcomes, offering valuable insights for pandemic management and policymaking. The qualitative and quantitative data derived from the simulations highlight the PDSIM’s proficiency in generating informative outputs that are directly applicable to real-world scenarios. The model effectively identifies vulnerable locations and individuals, providing a comprehensive analysis of outbreak dynamics based on different origins. Moreover, the assessment of varying parameters and interventions reveals influential factors, enhancing the model’s robustness. This capability positions the PDSIM as a powerful tool for exploring hypothetical scenarios, assessing their effectiveness and evaluating their potential impact before implementing them in real-life situations. The findings of this analysis underscore the value of the PDSIM as a practical and reliable simulator for informed decision-making in pandemic management.

5. Implementation Strategies and Conclusions

The COVID-19 pandemic has disrupted the social and economic well-being of many countries across the world. In the aftermath of consecutive waves, some countries faced dire consequences as the disease management strategies and policy implications were not effectively used to contain the disease. The PDSIM addresses the research problem of improving outbreak response through an agent-based model (ABM) by proposing a simulator that incorporates a novel motion model for realistic human motion and an environment builder for complex environment modeling.
The cities, states, and countries in different parts of the world exhibit diversity in terms of infrastructure and demography. Understanding this diversity and the inherent features of the population is imperative as the strategies to control the pandemic will vary accordingly. For example, containment measures needed to be taken in a large industrial district will differ from the measures needed in a suburban residential district. Through its environment builder, PDSIM grants the opportunity to design cities with different demographics and infrastructure and compare the robustness or the versatility of the cities in terms of being sustainable amidst a pandemic to make them more resilient, inclusive, and sustainable.
The ability to spawn infected agents amongst different categories of people (students, government workers, etc.) allows the user to simulate the disease propagation and its effect on the population by varying the initial cluster of infected agents. Furthermore, the potential to see how occupations are linked through interactions allows us to identify the susceptible groups for disease transmission. In addition, the ability to extract and analyze the signatures of different pandemics and variants (using the violin plot) enables more robust resource allocation to be carried out in order to make healthcare services resilient and inclusive. From the outcomes, the PDSIM provides the opportunity to identify vulnerabilities and the groups of people and locations that are more susceptible to the pandemic. Furthermore, it grants the opportunity to determine the sectors that are more susceptible (transport, education, manufacture, etc.) to the disease. As a result, policymakers can impose strategies effectively to mitigate the spread and casualties of the disease. Simulated results will help to build resilience among vulnerable groups of people and locations. The analysis of disease propagation allows for the implementation of precise containment measures that enable the community to function normally ensuring both social and economic sustainability.
In addition, the competency to simulate the effectiveness of vaccination and other containment measures will provide insight into the outcomes of this decision, prior to them being implemented in the real world. The capability to simulate different variants and diseases allows the policymakers to understand the current threats, extrapolate the pandemic’s characteristics for future threats, and take necessary actions to control the disease spread, while minimizing its impact on society, eventually making it and the environment inclusive, safe, resilient, and sustainable.
However, it is important for the users to be aware of the limitations associated with the PDSIM. While the simulator offers valuable capabilities, there are certain factors to be considered. The accuracy of simulation outcomes heavily depends on the assumptions and parameterization set by the user. Therefore, caution should be exercised to avoid using outdated assumptions and parameters and to ensure the reliability of the input data. Furthermore, the PDSIM’s computational demands can be significant, particularly when dealing with large-scale simulations or complex environments, potentially limiting its practical application in certain settings or necessitating high-performance computing resources.
In conclusion, the PDSIM framework with human behavior modeling offers a groundbreaking approach to pandemic-impact assessment and sustainable community building. Integrating agent-based modeling provides a dynamic tool for understanding and predicting the effects of pandemics on communities. This framework empowers decision-makers to make informed choices, allocate resources effectively, and develop strategies for mitigation. With its holistic approach, the PDSIM recognizes the interconnectedness of health, social, economic, and environmental factors in building sustainable communities. As we continue to face the challenges of pandemics, the PDSIM has the potential to revolutionize our understanding and response, leading to resilient and thriving societies.

Author Contributions

Conceptualization, H.W., Y.R., R.G., V.H. and P.E.; Methodology, H.W., L.R. and P.E.; Software, H.W.; Validation, L.R., Y.R. and N.S.; Formal analysis, H.W. and N.S.; Investigation, H.W., G.I. and B.S.; Resources, H.W., Y.R., G.I., B.S., J.E., M.M., S.T., A.R., S.D., M.P., S.Y. and G.T.; Data curation, Y.R., G.I. and J.E.; Writing—original draft, L.R., N.S. and B.S.; Visualization, H.W., L.R. and N.S.; Supervision, G.I., R.G., V.H., P.E., J.E. and M.M.; Project administration, R.G., V.H., P.E. and J.E.; Funding acquisition, J.E. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by International Development Research Centre, Canada, grant number 109586-001.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

PDSIM is fully open-source, more information on this can be found at ai4covid.lk/simulator, with complete documentation and a comprehensive set of tutorials.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Benita, F. Human mobility behavior in COVID-19: A systematic literature review and bibliometric analysis. Sustain. Cities Soc. 2021, 70, 102916. [Google Scholar] [CrossRef]
  2. Ma, L.; Huang, Y.; Liu, T. Unequal impact of the COVID-19 pandemic on mental health: Role of the neighborhood environment. Sustain. Cities Soc. 2022, 87, 104162. [Google Scholar] [CrossRef] [PubMed]
  3. Fore, H.H.; Dongyu, Q.; Beasley, D.M.; Ghebreyesus, T.A. Child malnutrition and COVID-19: The time to act is now. Lancet 2020, 396, 517–518. [Google Scholar] [CrossRef] [PubMed]
  4. Ruiu, M.L. Mismanagement of COVID-19: Lessons learned from Italy. J. Risk Res. 2020, 23, 1007–1020. [Google Scholar] [CrossRef]
  5. Kaxiras, E.; Neofotistos, G. Multiple epidemic wave model of the COVID-19 pandemic: Modeling study. J. Med. Internet Res. 2020, 22, e20912. [Google Scholar] [CrossRef]
  6. Zhou, Y.; Rahman, M.M.; Khanam, R. The impact of the government response on pandemic control in the long run—A dynamic empirical analysis based on COVID-19. PLoS ONE 2022, 17, e0267232. [Google Scholar] [CrossRef]
  7. Jiao, J.; Shi, L.; Zhang, Y.; Chen, H.; Wang, X.; Yang, M.; Yang, J.; Liu, M.; Sun, G. Core policies disparity response to COVID-19 among BRICS countries. Int. J. Equity Health 2022, 21, 9. [Google Scholar] [CrossRef]
  8. Lavell, A.; Mansilla, E.; Maskrey, A.; Ramirez, F. The Social Construction of the COVID-19 Pandemic: Disaster, Risk Accumulation and Public Policy. Red de Estudios Sociales en Prevención de Desastres En América Latina (LA RED). 2020. Available online: https://www.desenredando.org/covid19/Social-construction-of-the-COVID19-pandemic-disaster-risk-accumulation-public-policy-RNI-LA-RED-22-04-2020.pdf (accessed on 8 March 2023).
  9. Han, E.; Tan, M.M.J.; Turk, E.; Sridhar, D.; Leung, G.M.; Shibuya, K.; Asgari, N.; Oh, J.; García-Basteiro, A.L.; Hanefeld, J.; et al. Lessons learnt from easing COVID-19 restrictions: An analysis of countries and regions in Asia Pacific and Europe. Lancet 2020, 396, 1525–1534. [Google Scholar] [CrossRef]
  10. Ibn-Mohammed, T.; Mustapha, K.; Godsell, J.; Adamu, Z.; Babatunde, K.; Akintade, D.; Acquaye, A.; Fujii, H.; Ndiaye, M.; Yamoah, F.; et al. A critical analysis of the impacts of COVID-19 on the global economy and ecosystems and opportunities for circular economy strategies. Resour. Conserv. Recycl. 2021, 164, 105169. [Google Scholar] [CrossRef]
  11. Mutambudzi, M.; Niedzwiedz, C.; Macdonald, E.B.; Leyland, A.; Mair, F.; Anderson, J.; Celis-Morales, C.; Cleland, J.; Forbes, J.; Gill, J.; et al. Occupation and risk of severe COVID-19: Prospective cohort study of 120 075 UK Biobank participants. Occup. Environ. Med. 2021, 78, 307–314. [Google Scholar] [CrossRef]
  12. Giacopelli, G. A Full-Scale Agent-Based Model to Hypothetically Explore the Impact of Lockdown, Social Distancing, and Vaccination During the COVID-19 Pandemic in Lombardy, Italy: Model Development. JMIRx Med. 2021, 2, e24630. [Google Scholar] [CrossRef] [PubMed]
  13. Kilani, M.; Diop, O.; Diop, N. Using Transport Activity-Based Model to Simulate the Pandemic. Sustainability 2023, 15, 2257. [Google Scholar] [CrossRef]
  14. Kerr Cliff, S.R. Covasim: An agent-based model of COVID-19 dynamics and interventions. PLoS Comput. Biol. 2021, 17, e1009149. [Google Scholar] [CrossRef]
  15. Gabler, J.; Raabe, T.; Röhrl, K. People Meet People: A Microlevel Approach to Predicting the Effect of Policies on the Spread of COVID-19. 2020. Available online: https://ssrn.com/abstract=3738841 (accessed on 12 March 2023).
  16. Trivedi, A.; Sreenivas, N.K.; Rao, S. Modeling the Spread and Control of COVID-19. Systems 2021, 9, 53. [Google Scholar] [CrossRef]
  17. Wei, X.; Wang, L.; Jia, Q.; Xiao, J.; Zhu, G. Assessing different interventions against Avian Influenza A (H7N9) infection by an epidemiological model. One Health 2021, 13, 100312. [Google Scholar] [CrossRef]
  18. Salje, H.; Tran Kiem, C.; Lefrancq, N.; Courtejoie, N.; Bosetti, P.; Paireau, J.; Andronico, A.; Hozé, N.; Richet, J.; Dubost, C.L.; et al. Estimating the burden of SARS-CoV-2 in France. Science 2020, 369, 208–211. [Google Scholar] [CrossRef]
  19. Atkeson, A. On using SIR models to model disease scenarios for COVID-19. Q. Rev. 2020, 41, 1–35. [Google Scholar] [CrossRef]
  20. Kermack, W.O.; McKendrick, A.G.; Walker, G.T. A contribution to the mathematical theory of epidemics. Proc. R. Soc. London. Ser. Contain. Pap. Math. Phys. Character 1927, 115, 700–721. [Google Scholar] [CrossRef]
  21. Tsori, Y.; Granek, R. Epidemiological model for the inhomogeneous spatial spreading of COVID-19 and other diseases. PLoS ONE 2021, 16, e0246056. [Google Scholar] [CrossRef]
  22. Berger, D.; Herkenhoff, K.; Huang, C.; Mongey, S. Testing and reopening in an SEIR model. Rev. Econ. Dyn. 2022, 43, 1–21. [Google Scholar] [CrossRef]
  23. Wu, Z.; Wang, Y.; Gao, J.; Song, J.; Zhang, Y. A Multistage Time-Delay Control Model for COVID-19 Transmission. Sustainability 2022, 14, 14657. [Google Scholar] [CrossRef]
  24. Keeling, M.J.; Hollingsworth, T.D.; Read, J.M. Efficacy of contact tracing for the containment of the 2019 novel coronavirus (COVID-19). J. Epidemiol. Community Health 2020, 74, 861–866. [Google Scholar] [CrossRef] [PubMed]
  25. Gaspar, R.M.; Prasetyo, Y.T.; Mariñas, K.A.; Persada, S.F.; Nadlifatin, R. Exploring Consumers’ Intention to Use Bikes and E-Scooters during the COVID-19 Pandemic in the Philippines: An Extended Theory of Planned Behavior Approach with a Consideration of Pro-Environmental Identity. Sustainability 2023, 15, 5193. [Google Scholar] [CrossRef]
  26. Bedoya-Maya, F.; Calatayud, A.; Giraldez, F.; Sánchez González, S. Urban mobility patterns and the spatial distribution of infections in Santiago de Chile. Transp. Res. Part A Policy Pract. 2022, 163, 43–54. [Google Scholar] [CrossRef]
  27. Ferguson, N.; Laydon, D.; Nedjati Gilani, G.; Imai, N.; Ainslie, K.; Baguelin, M.; Bhatia, S.; Boonyasiri, A.; Cucunuba Perez, Z.; Cuomo-Dannenburg, G.; et al. Report 9: Impact of Non-Pharmaceutical Interventions (NPIs) to Reduce COVID-19 Mortality and Healthcare Demand. 2020. Available online: https://spiral.imperial.ac.uk/handle/10044/1/77482 (accessed on 20 December 2022).
  28. Rockett, R.J.; Arnott, A.; Lam, C.; Sadsad, R.; Timms, V.; Gray, K.A.; Eden, J.S.; Chang, S.; Gall, M.; Draper, J.; et al. Revealing COVID-19 transmission in Australia by SARS-CoV-2 genome sequencing and agent-based modeling. Nat. Med. 2020, 26, 1398–1404. [Google Scholar] [CrossRef]
  29. Aleta, A.; Martin-Corral, D.; Pastore y Piontti, A.; Ajelli, M.; Litvinova, M.; Chinazzi, M.; Dean, N.E.; Halloran, M.E.; Longini, I.M., Jr.; Merler, S.; et al. Modelling the impact of testing, contact tracing and household quarantine on second waves of COVID-19. Nat. Hum. Behav. 2020, 4, 964–971. [Google Scholar] [CrossRef]
  30. Kretzschmar, M.E.; Rozhnova, G.; Bootsma, M.C.; van Boven, M.; van de Wijgert, J.H.; Bonten, M.J. Impact of delays on effectiveness of contact tracing strategies for COVID-19: A modelling study. Lancet Public Health 2020, 5, e452–e459. [Google Scholar] [CrossRef]
  31. Lau, M.S.; Grenfell, B.; Thomas, M.; Bryan, M.; Nelson, K.; Lopman, B. Characterizing superspreading events and age-specific infectiousness of SARS-CoV-2 transmission in Georgia, USA. Proc. Natl. Acad. Sci. USA 2020, 117, 22430–22435. [Google Scholar] [CrossRef]
  32. Butt, A.; Ahmad, W.; Rafiq, M.; Baleanu, D. Numerical analysis of Atangana-Baleanu fractional model to understand the propagation of a novel corona virus pandemic. Alex. Eng. J. 2022, 61, 7007–7027. [Google Scholar] [CrossRef]
  33. Haddad, H.; Bouyahia, Z.; Horchani, L. On the Sustainability of Shared Mobility Since COVID-19: From Socially Structured to Social Bubble Vanpooling. Sustainability 2022, 14, 15764. [Google Scholar] [CrossRef]
  34. Wang, Z.; Yang, J.; Zhang, Q.; Wang, L. Risk-Aware Travel Path Planning Algorithm Based on Reinforcement Learning during COVID-19. Sustainability 2022, 14, 13364. [Google Scholar] [CrossRef]
  35. Kuzdeuov, A.; Baimukashev, D.; Karabay, A.; Ibragimov, B.; Mirzakhmetov, A.; Nurpeiissov, M.; Lewis, M.; Varol, H.A. A network-based stochastic epidemic simulator: Controlling COVID-19 with region-specific policies. IEEE J. Biomed. Health Inform. 2020, 24, 2743–2754. [Google Scholar] [CrossRef]
  36. Kompella, V.; Capobianco, R.; Jong, S.; Browne, J.; Fox, S.; Meyers, L.; Wurman, P.; Stone, P. Reinforcement learning for optimization of COVID-19 mitigation policies. arXiv 2020, arXiv:2010.10560. [Google Scholar]
  37. Ng, K.Y.; Gui, M.M. COVID-19: Development of a robust mathematical model and simulation package with consideration for ageing population and time delay for control action and resusceptibility. Phys. D Nonlinear Phenom. 2020, 411, 132599. [Google Scholar] [CrossRef] [PubMed]
  38. Lemaitre, J.C.; Grantz, K.H.; Kaminsky, J.; Meredith, H.R.; Truelove, S.A.; Lauer, S.A.; Keegan, L.T.; Shah, S.; Wills, J.; Kaminsky, K.; et al. A scenario modeling pipeline for COVID-19 emergency planning. Sci. Rep. 2021, 11, 7534. [Google Scholar] [CrossRef]
  39. Gorji, H.; Arnoldini, M.; Jenny, D.; Hardt, W.D.; Jenny, P. Dynamic modelling to identify mitigation strategies for the COVID-19 pandemic. Swiss Med. Wkly. 2021, 151, w20487. [Google Scholar] [CrossRef]
  40. Chao, S.P. Simplified model on the timing of easing the lockdown. Chin. J. Phys. 2021, 70, 170–181. [Google Scholar] [CrossRef]
  41. Hinch, R.; Probert, W.J.; Nurtay, A.; Kendall, M.; Wymant, C.; Hall, M.; Lythgoe, K.; Bulas Cruz, A.; Zhao, L.; Stewart, A.; et al. OpenABM-Covid19—An agent-based model for non-pharmaceutical interventions against COVID-19 including contact tracing. PLoS Comput. Biol. 2021, 17, e1009146. [Google Scholar] [CrossRef]
  42. Kuzdeuov, A.; Karabay, A.; Baimukashev, D.; Ibragimov, B.; Varol, H.A. A Particle-Based COVID-19 Simulator with Contact Tracing and Testing. IEEE Open J. Eng. Med. Biol. 2021, 2, 111–117. [Google Scholar] [CrossRef]
  43. Barak, O.; Gavish, N.; Hari, L.P.; Shohat, T. Simulator of Interventions for COVID-19. 2020. Available online: https://applied-math.net.technion.ac.il/files/2020/06/Covid_simulator.pdf (accessed on 22 February 2022).
  44. Mellacher, P. COVID-town: An integrated economic-epidemiological agent-based model. arXiv 2020, arXiv:2011.06289. [Google Scholar]
  45. Shamil, M.S.; Farheen, F.; Ibtehaz, N.; Khan, I.M.; Rahman, M.S. An agent-based modeling of COVID-19: Validation, analysis, and recommendations. Cogn. Comput. 2021, 13, 1–12. [Google Scholar] [CrossRef] [PubMed]
  46. Ledford, H.; Cyranoski, D.; Van Noorden, R. The UK has approved a COVID vaccine—Here’s what scientists now want to know. Nature 2020, 588, 205–206. [Google Scholar] [CrossRef] [PubMed]
Figure 1. A graphical representation of the disease state propagation diagram. Lognormal (logN) values displayed on the edges represent the time taken for the disease state transition.
Figure 1. A graphical representation of the disease state propagation diagram. Lognormal (logN) values displayed on the edges represent the time taken for the disease state transition.
Sustainability 15 11120 g001
Figure 2. Hierarchical connection of locations to model the environment.
Figure 2. Hierarchical connection of locations to model the environment.
Sustainability 15 11120 g002
Figure 3. Illustration of the difference between completely random movement and a combined random and discrete movement.
Figure 3. Illustration of the difference between completely random movement and a combined random and discrete movement.
Sustainability 15 11120 g003
Figure 4. Selection of the next location to visit using the visit-probability matrix. (A) Visit probability as a heat diagram. (B) Visit probability for Home and Classroom. (C) Sorting of Probabilities. (D) Selection of place through an exponential functions.
Figure 4. Selection of the next location to visit using the visit-probability matrix. (A) Visit probability as a heat diagram. (B) Visit probability for Home and Classroom. (C) Sorting of Probabilities. (D) Selection of place through an exponential functions.
Sustainability 15 11120 g004
Figure 5. Location visit-probability matrix for a student.
Figure 5. Location visit-probability matrix for a student.
Sustainability 15 11120 g005
Figure 6. Selection of the duration of staying in a location using the occupancy-probability matrix. (A) Heat Diagrams for Occupancy Probability with time (B) Variation of probability of staying with time.
Figure 6. Selection of the duration of staying in a location using the occupancy-probability matrix. (A) Heat Diagrams for Occupancy Probability with time (B) Variation of probability of staying with time.
Sustainability 15 11120 g006
Figure 7. Probability of staying in a given location by a student in PDSIM.
Figure 7. Probability of staying in a given location by a student in PDSIM.
Sustainability 15 11120 g007
Figure 8. (a) Part of the map view of the simulated environment and examples of agents moving in the environment. Lines represent the paths taken by different agents. (b) A path history of an agent on a particular day in PDSIM. Lines represent the paths taken by the agent. (c) A path history of a real person on a particular day where GPS locations were recorded using Google. Lines represent the paths taken by the person.
Figure 8. (a) Part of the map view of the simulated environment and examples of agents moving in the environment. Lines represent the paths taken by different agents. (b) A path history of an agent on a particular day in PDSIM. Lines represent the paths taken by the agent. (c) A path history of a real person on a particular day where GPS locations were recorded using Google. Lines represent the paths taken by the person.
Sustainability 15 11120 g008
Figure 9. Infection events are stratified by the occupation of source and recipient. (Occupations are labeled as Numbers as in Table 4.
Figure 9. Infection events are stratified by the occupation of source and recipient. (Occupations are labeled as Numbers as in Table 4.
Sustainability 15 11120 g009
Figure 10. (a) Part of a disease propagation tree diagram for the analysis of infection spread. (b) Part of a location tree diagram. Lines represent the paths taken by the agent.
Figure 10. (a) Part of a disease propagation tree diagram for the analysis of infection spread. (b) Part of a location tree diagram. Lines represent the paths taken by the agent.
Sustainability 15 11120 g010
Figure 11. (a) Infection count variation for a cluster started within transportation sector. (b) Infection count variation for a cluster started within education sector. (c) Percentage of infections that occurred at a location from the total number of infections for a cluster started in transportation sector (d) Percentage of infections that occurred at a location from the total number of infections for a cluster started in education sector.
Figure 11. (a) Infection count variation for a cluster started within transportation sector. (b) Infection count variation for a cluster started within education sector. (c) Percentage of infections that occurred at a location from the total number of infections for a cluster started in transportation sector (d) Percentage of infections that occurred at a location from the total number of infections for a cluster started in education sector.
Sustainability 15 11120 g011
Figure 12. Violin plot of the time took to progress the disease from one state to another after infection.
Figure 12. Violin plot of the time took to progress the disease from one state to another after infection.
Sustainability 15 11120 g012
Figure 13. Effect of holding gathering events on day 20 of the simulation.
Figure 13. Effect of holding gathering events on day 20 of the simulation.
Sustainability 15 11120 g013
Figure 14. Effect of implementing different containment strategies where all other parameters are kept constant.
Figure 14. Effect of implementing different containment strategies where all other parameters are kept constant.
Sustainability 15 11120 g014
Figure 15. Effect of social distancing and vaccinating protocols.
Figure 15. Effect of social distancing and vaccinating protocols.
Sustainability 15 11120 g015
Figure 16. The variation in total number of cases and number of deaths when different variants of the disease were introduced independently.
Figure 16. The variation in total number of cases and number of deaths when different variants of the disease were introduced independently.
Sustainability 15 11120 g016
Table 1. Comparison of disease simulators found in the literature with ours.
Table 1. Comparison of disease simulators found in the literature with ours.
Simulation MethodSimulatorFeatures
Disease ProgressionRealistic Human MotionHygiene SimulationPublic Transport SystemRecreational ActivityTesting ProtocolVaccination StrategyContainment StrategyContact TracingFriendly User InterfaceDetailed Daily RoutinesEconomical ImpactSuper Spreader Event Simulation
Compartment modelsA network-based stochastic epidemic simulator [35]
Pandemic simulator [36]
Kermack–McKendrick model [37]
A scenario modeling pipeline for COVID-19 emergency planning [38]
Dynamic modeling to identify mitigation strategies for the COVID-19 pandemic [39]
Simplified model on the timing of easing the lockdown [40]
Agent-based modelsCovasim [14]
OpenABM-Covid19 [41]
A particle-based COVID-19 simulator [42]
Simulator of interventions for COVID-19 [43]
People meet people [15]
COVID-town [44]
Agent-based modeling of COVID-19 [45]
Social bubble vanpooling (SBV) [33]
A road network impedance matrix based on SUMO simulation [34]
PDSIM(Ours)
Table 2. Disease state progression probabilities for different age groups.
Table 2. Disease state progression probabilities for different age groups.
0–910–1920–2030–3940–4950–5960–6970–7980–8990+
p a s y m 0.50.450.40.350.30.250.20.150.10.1
p s e v 0.00050.001650.00720.02080.03430.07650.13280.206550.24570.2457
p c r i t 0.000030.000080.000360.001040.002160.009330.036390.089230.17420.1742
p d e a 0.000020.000020.00010.000320.000980.002650.007660.024390.082920.08292
Table 3. Hierarchical modeling of dense district-final step.
Table 3. Hierarchical modeling of dense district-final step.
EnvironmentComponents
Dense DistrictsUrban Block-5, Rural Blocks-3
Residential Zone-2, Commercial Zone-1,
Rural BlockMedical Zone-1, Education Zone-1, and
Agricultural Zone-1
Residential Zone-3, Commercial Zone-2,
Urban BlockMedical Zone-1, Education Zone-1,
Administrative Zone-1, and Industrial Zone-1
Table 4. Occupation labels.
Table 4. Occupation labels.
OccupationNumberOccupationNumber
Admin Workers1Livestock Cultivators9
Bank Workers2Medical Workers10
Bus Drivers3Plant Cultivators11
Commercial Workers4Retail Shop Workers12
State Workers5Retired13
Garment Admins6Students14
Garment Workers7Teachers15
Infants8Tuk-Tuk Drivers16
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Weligampola, H.; Ramanayake, L.; Ranasinghe, Y.; Ilangarathna, G.; Senarath, N.; Samarakoon, B.; Godaliyadda, R.; Herath, V.; Ekanayake, P.; Ekanayake, J.; et al. Pandemic Simulator: An Agent-Based Framework with Human Behavior Modeling for Pandemic-Impact Assessment to Build Sustainable Communities. Sustainability 2023, 15, 11120. https://doi.org/10.3390/su151411120

AMA Style

Weligampola H, Ramanayake L, Ranasinghe Y, Ilangarathna G, Senarath N, Samarakoon B, Godaliyadda R, Herath V, Ekanayake P, Ekanayake J, et al. Pandemic Simulator: An Agent-Based Framework with Human Behavior Modeling for Pandemic-Impact Assessment to Build Sustainable Communities. Sustainability. 2023; 15(14):11120. https://doi.org/10.3390/su151411120

Chicago/Turabian Style

Weligampola, Harshana, Lakshitha Ramanayake, Yasiru Ranasinghe, Gayanthi Ilangarathna, Neranjan Senarath, Bhagya Samarakoon, Roshan Godaliyadda, Vijitha Herath, Parakrama Ekanayake, Janaka Ekanayake, and et al. 2023. "Pandemic Simulator: An Agent-Based Framework with Human Behavior Modeling for Pandemic-Impact Assessment to Build Sustainable Communities" Sustainability 15, no. 14: 11120. https://doi.org/10.3390/su151411120

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop