Skip to main content
Elsevier - PMC COVID-19 Collection logoLink to Elsevier - PMC COVID-19 Collection
. 2021 Nov 10;207:108495. doi: 10.1016/j.buildenv.2021.108495

ArchABM: An agent-based simulator of human interaction with the built environment. CO2 and viral load analysis for indoor air quality

Iñigo Martinez a,, Jan L Bruse a, Ane M Florez-Tapia a, Elisabeth Viles b,c, Igor G Olaizola a
PMCID: PMC8579709  PMID: 34785852

Abstract

Recent evidence suggests that SARS-CoV-2, which is the virus causing a global pandemic in 2020, is predominantly transmitted via airborne aerosols in indoor environments. This calls for novel strategies when assessing and controlling a building’s indoor air quality (IAQ). IAQ can generally be controlled by ventilation and/or policies to regulate human–building-interaction. However, in a building, occupants use rooms in different ways, and it may not be obvious which measure or combination of measures leads to a cost- and energy-effective solution ensuring good IAQ across the entire building. Therefore, in this article, we introduce a novel agent-based simulator, ArchABM, designed to assist in creating new or adapt existing buildings by estimating adequate room sizes, ventilation parameters and testing the effect of policies while taking into account IAQ as a result of complex human–building interaction patterns. A recently published aerosol model was adapted to calculate time-dependent carbon dioxide (CO2) and virus quanta concentrations in each room and inhaled CO2 and virus quanta for each occupant over a day as a measure of physiological response. ArchABM is flexible regarding the aerosol model and the building layout due to its modular architecture, which allows implementing further models, any number and size of rooms, agents, and actions reflecting human–building interaction patterns. We present a use case based on a real floor plan and working schedules adopted in our research center. This study demonstrates how advanced simulation tools can contribute to improving IAQ across a building, thereby ensuring a healthy indoor environment.

Keywords: Agent-based modeling, Indoor air quality, Building ventilation, Aerosol model, Building design, Simulation

1. Introduction

1.1. Motivation

Evidence is growing that the virus SARS-CoV-2 that caused a global pandemic in 2020 can be transmitted via inhalation of virus-containing aerosols [1], [2], [3] and recent studies point towards increased infection risk indoors [4], [5], [6], [7]. For these reasons, the concept of indoor air quality (IAQ) is currently under scrutiny. IAQ is typically determined by air temperature, humidity, and pollutant concentration in closed environments [8], [9]. Due to SARS-CoV-2’s significant impact on population health around the globe, authors are calling for taking into consideration the concentration of airborne pathogens or quanta (viral load, i.e., a physical measure of infectious material being present, [10]) when evaluating IAQ [11], [12], [13]. Further, official bodies and organizations are updating their guidelines, standards, and regulations in this regard [9], [14], [15]. It is therefore evident that IAQ will need to play a more important role when designing a new building or adapting an existing building. After all, one room with bad IAQ alone may lead to a significant health risk for building occupants.

IAQ is ultimately a product of human interaction in a closed environment as temperature, humidity, and pollutants will rise with the number of occupants and with time if no measure is taken. Generally, IAQ can be controlled via engineering measures (ventilation, air filtration, air disinfection, larger rooms, etc.) or by applying policies or conventions to regulate human interaction in a room (restrict access, limit residence time, etc.). However, all these measures come at a cost or have external constraints, and it is not always obvious which combination of measures will lead to a cost and energy-effective solution that ensures good IAQ throughout the entire building given its use. Novel tools and innovative approaches are therefore necessary [6] to design future buildings and adapt already existing buildings such that they can provide significantly improved IAQ, thereby ensuring a healthy, comfortable and productive indoor environment.

To address this challenge, we propose ArchABM, a novel agent-based simulator designed to assist architects, engineers, and building managers to estimate adequate room sizes, determine adequate ventilation parameters or test the effect of policies while taking into account IAQ across the entire building as a result of complex human–building interaction patterns. In addition, ArchABM can assist in simulating various scenarios to make more informed decisions. Its agent-based engine allows for simulating complex interaction patterns of agents (i.e., occupants) in various rooms, taking into account daily schedules, policies/conventions, and a random factor of agents deciding when to go where and with whom.

To address the call for an “updated” IAQ taking into account airborne virus transmission, we adapted a recently published aerosol model tuned to SARS-CoV-2 [16] and can compute time-dependent carbon dioxide (CO2) concentrations and virus quanta levels [3] produced by occupants in rooms. Further, the amount of CO2 inhaled by an agent throughout the day and the number of quanta inhaled by each agent are calculated to reflect a potential physiological response. Both result from the interaction patterns created by all agents acting and interacting in the defined environment. The CO2 level calculations for a specific room were validated by using a well-documented case study from the literature [17] that reported accurate CO2 concentrations over the course of a day in an office.

ArchABM is flexible with regard to the aerosol model thanks to its modular architecture, which allows for the implementation of further models calculating other metrics of interest such as temperature, humidity, or even transmission metrics for other types of viruses. Furthermore, ArchABM is dynamic in the sense that any number of rooms (“places”), agents (“people”) and actions (“events”) can be defined in a configuration file in order to reflect various human–building-interaction patterns. Aggregation categories for places (“building”) and people (“departments”) exist as well. Relevant examples could include buildings designed for any type of work, hospitals or nursing homes, or buildings from the educational sector, to name a few. Note that one ArchABM simulation simulates how agents (occupants) follow or take part in events (activities) occurring in various places as defined in the configuration file over the course of one day. This means that long-term effects from one day to another are not modeled. However, as there is a random component associated with agents’ actions and interactions throughout the day, simulation output parameters such as inhaled CO2 and virus quanta levels for individual agents as well as accumulated CO2 and virus levels for individual places will differ from simulation to simulation, even if the configuration file is not changed. The simulation engine that powers ArchABM is event-driven, resulting in higher computational performance compared to traditional continuous time-stepped ABMs, as an unnecessary update of all components (agents and their environment) at each time step is avoided — components are only updated when an event is triggered. This allows running a high number of simulations Srun (i.e. simulate a high number of individual days of agents interacting in the given environment) for a given configuration file, enabling in-depth statistical analyzes of output parameter distributions when comparing different simulation scenarios.

To demonstrate ArchABM’s capabilities, we present a human–building-interaction use case for an office scenario with 14 rooms and 60 agents, based on an real floor plan and close-to-real working schedules adopted in our research center. We thereby investigate the impact of (a) building-related measures, (b) policy-related measures, and (c) a building-policy combined case on IAQ in individual locations and the overall building, as well as their effects on individual people in terms of inhaled CO2 and virus quanta.

ArchABM is ready for use as an open source Python library, is available to the public on the official Python Package Index (PyPI) repository1  [18] and comes with a full documentation.2  [19] All data generated in this study is openly accessible via Mendeley Data.3  [20]

1.2. Related work

Agent-based models (ABMs) can simulate actions and interactions of autonomous agents within a pre-defined computational environment to calculate outcomes describing how the overall system behaves [21]. Since the onset of the pandemic induced by SARS-CoV-2, many studies have been published employing ABMs to model virus transmission dynamics, thereby mainly focused on simulating the effects of policy changes or strategies such as the implementation of social distancing measures or travel restrictions. Most of these studies, however, focus on larger, macro-scale scenarios, in which agents act and interact within an environment representing an entire country, a region, or a city [22], [23], [24].

Regarding indoor environments, studies involving ABMs have predominantly analyzed university buildings and campuses, supermarkets, or public spaces such as museums, yet mainly apply exposure-time and contact-distance-based or traditional compartmental SEIR (Susceptible, Exposed, Infected, Recovered) [10], [25] virus transmission models to calculate the number of infected people after a given time [26], [27], [28], [29], [30]. IAQ and, specifically, possible airborne transmission via aerosols is often not taken into account. Some other studies apply (pedestrian) movement models to simulate indoor movement patterns without taking into account virus-related parameters [31], [32]. When simulating indoor environments, only a few recent studies explicitly address airborne transmission via aerosols in their ABM [33], [34], [35], [36]. While these studies use sophisticated aerosol models, most of them focus on modeling one single room as the simulation environment (simplified supermarket, choir practice, restaurant, classroom) without taking into account the complex human–building-interaction patterns that may emerge when agents move around a building to different rooms for carrying out diverse activities while being in contact with other agents. Furthermore, most of these studies investigate the impact of policy-based measures (such as wearing a mask) on infection risk and do not analyze the impact of building-related measures on IAQ, such as natural or mechanical ventilation [9], or varying ventilation rates or room sizes.

In the building domain, ABMs have been employed to model building occupants’ energy use [37], [38] and IAQ in terms of CO2 and other parameters [39], [40], [41]. However, again these studies are typically constrained to simulating one single room which agents can enter and leave and do not consider possible airborne virus transmission. ArchABM tries to address these issues by providing an easy-to-use and easy-to-install, fast, and flexible agent-based simulator that can simulate complex human–building-interaction patterns while calculating relevant IAQ parameters that take potential airborne virus transmission into account.

2. Methods

2.1. Agent-based simulator

In this article, a novel event-based multi-agent simulation framework is proposed to simulate complex human interaction patterns with and within the built environment and to calculate IAQ metrics and physiological responses. This section summarizes the key features of the proposed framework and formalizes its main components: events, places, people and aerosol model.

Agent-based simulators can be implemented in two ways: (a) continuous simulation and (b) event-based simulation. Continuous simulations have a fixed time-step, and the system state is updated in every step. For these simulations, it is critical to select an appropriate period parameter, which indicates how much time elapses between state updates. Furthermore, these simulations can be highly inefficient, as there may not be any changes from one step to the next. Conversely, in discrete event-based simulations, the system is only updated when a new event occurs. The simulator processes new events in sequential order as they are fired or triggered by the simulated entities or agents. An event-based approach is followed for this work.

Engine.

The simulator was implemented using Python 3.7.9 [42]. An object-oriented paradigm was adopted, where each agent is a class instance. The engine was developed on top of the SimPy 4.0.1 [43] library, a process-based discrete-event simulation framework. Under this paradigm, processes are used to model the behavior of active components, such as users. Processes live in an environment and interact with the environment and with each other via events. The most important event type for our application is the timeout, which allows a process to sleep for the given time, determining the duration of the activity. Events of this type are triggered after a certain amount of simulated time has passed.

Components.

The simulator’s core is composed of a discrete event-based engine that manages every activity carried out by the agents during their life-cycle using a priority event queue, ordered by time. The main building blocks of the simulator are depicted in Fig. 1. The event-based engine is at the core of the simulator and is fed by events produced by the agents. During the simulation execution, events are handled sequentially, in chronological order. Whenever any agent does an action or takes a decision, it generates and inserts new events into the priority queue. As actions and activities occur, each event is registered on the simulation history to be further exploited for visualization and data analysis purposes.

Fig. 1.

Fig. 1

ArchABM main components: event-based engine, places, people, events and aerosol model.

The workflow of the simulator is described as follows: first, Simpy’s environment is created, and the provided configuration data is used to generate events, places, and people, as well as to initialize the aerosol model. People are introduced into the environment at the start of the day, and their goal is to complete events until the end of the day arrives (see Fig. 3).

Fig. 3.

Fig. 3

Illustration of a daily schedule example that can be simulated in ArchABM. The radial graph shows the activities’ probability density along the day. Colors represent different activities. For instance, lunch is concentrated at noon and coffee breaks during the morning and afternoon, whereas meetings and office work happen uniformly throughout the day. (For interpretation of the references to color in this figure legend, the reader is referred to the web version of this article.)

An event is an activity that takes place at a specific physical location for a finite time. Event models (for example: work, meeting, coffee, lunch, etc.) are restricted to a schedule, a set duration, and a number of repetitions. The schedule specifies the times when an activity is permitted to take place. Lower and upper bounds apply to both the duration τ and the number of repetitions. Concerning the aerosol model, the mask efficiency is also indicated for each activity. Activities invoked by an individual but involving many people, such as meetings, can also be defined. These are called collective events.

The event generation process selects the next activity based on the priority values of each event model. Priority values are used to weigh the importance of each event model rather than sampling from a uniform discrete distribution. The priority value is determined by a piecewise linear function (Fig. 2), which is parametrized by the (a) minimum number of repetitions r, (b) maximum number of repetitions R, and (c) the event repetition count e.

Fig. 2.

Fig. 2

The priority function weighs the importance of each event based on the number of event repetitions e.

A place is an enclosed section of a building designed for specific activities and is defined by the following parameters: building, departments allowed to enter, area and height (or volume), capacity N, and natural λa and mechanical λr ventilation rates. Note that in the following we understand natural ventilation as the introduction of outdoor air into a building driven by naturally produced pressure differentials [9], opposed to mechanical ventilation, i.e., recirculation of indoor air by mechanical means such as air conditioning (AC) but without outdoor air supply.

Regarding the people dimension, specific departments or groups need to be defined, each one associated with a building and some people. Finally, the aerosol model estimates the indoor aerosolized virus quanta concentration, based on adjustable parameters such as room size, number of exposed subjects, inhalation volume, and aerosol production from breathing and vocalization, among others. The aerosol model is thoroughly explained in Section 2.2.

Performance.

In order to analyze ArchABM’s computational performance, several simulations were computed with a different number of people and places, as illustrated in Fig. 4. A grid of values for the number of people {6, 30, 60, 120, 300, 600, 1200, 2400} and the number of places {15, 20, 25, 30, 35} was established. The computational time required to compute 24 h of simulated time is measured. In order to yield stable results, the simulations are repeated 20 times. The number of people is indeed the most influential parameter concerning the simulator’s performance. Using the number of people as the predictor, the univariate linear regression model applied to the response variable time yields a slope parameter of 2.4 10−3 seconds per person. Thus, on average, ArchABM is able to run 24 h of simulated time with 1000 people and 20 places in approximately 2.4 s.

Fig. 4.

Fig. 4

ArchABM computational time performance for different scenarios. The linear regression yields a slope parameter of 2.4 10−3 seconds/simulated person.

2.2. Aerosol model

Several models have been proposed to simulate the airborne transmission of SARS-CoV-2, [16], [44], [45]. Among these models, the model developed by Peng et al. at the University of Colorado, [16], calculates both the virus quanta concentration and the CO2 mixing ratio present in a specific place. The virus quanta is defined as the dose of airborne droplet nuclei required to cause infection in 63% of susceptible people [3], and the CO2 mixing ratio refers to the amount of CO2, measured in parts-per-million (ppm), present in the air. These two metrics provide an overall picture of IAQ, which is why this model was selected for ArchABM.

2.2.1. Standard model by Peng and Jimenez [16]

Recent studies suggest that indoor CO2 measurements hold promise to be used as a proxy for the mass monitoring of indoor aerosol transmission risk for SARS-CoV-2 and other respiratory viruses, [16], [46], [47], [48]. The aerosol model presented by Peng and Jimenez [16] derives analytical expressions of CO2 based risk proxies, assuming the social distance is maintained. The relative infection risk in a given environment scales with excess CO2 level, and thus, keeping CO2 as low as possible is essential to reducing the likelihood of infection.

The aerosol model [16] considers some parameters to be constant across the entire building, as shown in Table 1. These constant values, breathing or virus related, are based on the study undertaken by Peng and Jimenez, [16]. On the contrary, certain parameters are specified for each place, such as volume, ventilation, or the number of people present, as shown in Table 2.

Table 1.

Aerosol model parameters: values assumed to be constant across the entire building.

Notation Units Value
Building related
Background CO2 concentration CO2(back) ppm 415
Pressure P atm 0.95
Temperature T °C 20

Breathing related
Mean breathing flow rate Qb m3/h 0.52
CO2 emission rate (1 person)
at 273 K and 1 atm
CO2(rate) L/s 0.005

SARS-CoV-2 virus related
Quanta exhalation rate Q quanta/h 25
Decay rate of virus k h−1 0.62
Deposition to surfaces λdep h−1 0.3
Quanta enhancement due to variants Qe 1

Simulation related
Fraction of people using mask mf % 100
Table 2.

Aerosol model parameters: variable building- and simulation-related parameters to be defined by the ArchABM user.

Notation Units
Building related
Volume of place V m3
Outdoor, or natural, air exchange rate λa h−1
Recirculating, or mechanical, air exchange rate λr h−1

Simulation related
Mask efficiency me %
Number of people N
Number of infected people Ni
Time of exposure τ h

From the infection probability point of view, the model considers enclosed spaces, in which virus-containing aerosols are assumed to be rapidly uniformly mixed compared to the time spent by the occupants in the spaces [16]. It states that the probability p for a single person to be infected is related to the number of quanta n of virus inhaled, and according to the Wells–Riley model of aerosol infection [49] can be calculated as p=1en.

When p is low, as it should be for a safe environment, the use of the Taylor expansion for an exponential allows approximating p as pn.

The quanta inhaled per person n (in quanta units) considers the average quanta concentration Cavg [quanta/m3], the mean breathing flow rate Qb defined in Table 2, as well as the exposed time τ, the mask efficiency, me, and the fraction of people using masks, mf:

n=CavgQbτ(1memf) (1)

Note that assuming a constant mf = 100% = 1 as defined in Table 1 means that one can control whether masks are being used by setting me either to 0 (no masks used) or to a value referring to low (0.3), medium (0.5) or high (0.75) mask efficiency, following [16], [45]. The aerosol quanta concentration increases with time from an initial value of zero following a f(x)=1ex function, which is the standard dynamic response of a well-mixed indoor volume to a constant input source, [50]. The average quanta concentration, Cavg, is calculated as follows:

Cavg=EλV11eλτλτ (2)

where E is the net emission rate in [quanta/h] units, and λ the total first order loss rate in [h1] units:

E=Q(1memf)NiQe (3)
λ=λa+λr+λdep+k (4)

λr in Eq. (4) is the recirculating, or mechanical, ventilation, and has to do with the flow rate of the AC system, QAC, the filter efficiency, ɛfilter, the removal in ducts, ɛducts, and additional removal measures, ɛextra:

λr=QACVmin{ɛfilter+ɛducts+ɛextra,1} (5)

The model also calculates the CO2 mixing levels reached within the specified area, given that there are no other significant CO2 sources or sinks, i.e., indoor excess CO2 production, relative to the outdoor background level, is only due to human exhalation and its loss is ventilation, [16]:

CO2CO2(emit)3.6106λaV1(1eλaτ)λaτ+CO2(back) (6)

The CO2(emit) represents the total amount of CO2 emitted by all people present, and is calculated by taking into account the CO2 emission rate for one person as defined in Table 1, at nominal temperature and pressure conditions (273 K, 1 atm). This value should be adjusted to the pressure and temperature of the building being simulated and multiplied by the number of people present:

CO2(emit)=CO2(rate)NP(273.15+T)273.15 (7)

2.2.2. Extended model for ArchABM

The model developed by Peng and Jimenez [16] provides equations for a single event of a given duration. However, ArchABM simulates an entire day through short-term events. As a result, there must be some continuity, i.e., a transition from a static model that assumes an initial clean environment towards a dynamic and continuously adapting model that considers how the previous state affects the next state.

According to Eq. (2), the quanta concentration can only increase during an event. However, in the scenario presented by ArchABM, people are moving between different locations and when no contagious people are present the quanta concentration should decay (see Eq. (8)), due to the total removal rate, λ, which takes into account the ventilation rates, λa and λr, as well as the decay rate of the virus, k, along with its deposition rate to surfaces, λdep (see Eq. (4)). Eq. (2) was adapted to account for this fact:

CavgEλV11eλτλτ+Cavgeλτ (8)

The quanta inhaled per person n is calculated as in Eq. (1), but considering the updated expression for the quanta Cavg in Eq. (8).

The CO2 level formulated in Eq. (6) follows a similar adaptation process. In the original aerosol model, the CO2 concentration can only increase when people are present and are breathing for a specified time. However, when simulating a day through short-term events, the model should also consider the scenario of these people leaving the room and the effect of the ventilation. The CO2 concentration rates should decrease if the ventilation continues and the room is empty. Therefore, the extended CO2 mixing equation now takes the previous state into account:

CO2CO2(emit)3.6106λaV1(1eλaτ)λaτ+CO2(back)+CO2CO2(back)eλaτ (9)

With these modified equations, the ArchABM simulator can estimate the CO2 mixing ratio level [ppm] at each place as well as the quanta concentration Cavg [quanta/m3], providing an overall picture of the IAQ distribution per room throughout the day.

2.3. Simulator input and outputs

In order to run a simulation, information about the event types, people, places, and the aerosol model must be provided to the ArchABM framework:

  • Events input parameters: name ( Inline graphic ), schedule ( Inline graphic ), duration range ( Inline graphic ), number of repetitions ( Inline graphic ), mask efficiency ( Inline graphic ), and collective ( Inline graphic ).

  • Places input parameters: name ( Inline graphic ), activity ( Inline graphic ), building ( Inline graphic ), department ( Inline graphic ), area ( Inline graphic ), height ( Inline graphic ), capacity ( Inline graphic ), natural ventilation ( Inline graphic ), and mechanical ventilation ( Inline graphic ).

  • People input parameters: name ( Inline graphic ), building ( Inline graphic ), and department ( Inline graphic ).

  • Aerosol model input parameters: included on Table 1, Table 2

Regarding ArchABM’s output, whenever a new event occurs, the simulator saves the state of each person and each place in the simulation history data structure. The following attributes are stored:

  • Places output metrics: place ID ( Inline graphic ), number of people ( Inline graphic ), number of infected people ( Inline graphic ), CO2 level ( Inline graphic ), and quanta level ( Inline graphic ).

  • Person output metrics: person ID ( Inline graphic ), simulation time ( Inline graphic ), place ID ( Inline graphic ), event ID ( Inline graphic ), CO2 level at current place ( Inline graphic ), and quanta inhaled during the event ( Inline graphic ).

In this way, ArchABM provides full tractability of the places visited by every person, their physiological responses as well as the instantaneous IAQ at each place.

2.4. Experimental setup

The simulated configuration is based on the real floor plan of one building of our research center, as shown in Fig. 5. It should be noted that the floor plan is only shown for illustration purposes and is not required to run the simulator. As explained in Section 2.1, the simulator only requires information about the types of events that can occur, places’ spatial parameters (area & capacity), the number of people initially present and the aerosol model physical parameters. The events and places defined for this simulation are summarized in Table 3, Table 4. There are five types of events: work, meeting, coffee, restroom, and lunch. Meetings and lunch activities are regarded as collective events. Each event model is limited to a certain schedule, duration τ, and a number of repetitions. For each event model, the mask efficiency me is also defined.

Fig. 5.

Fig. 5

Building floor plan used in the experiments.

Table 3.

Event parameters for the baseline case.

Activity Schedule Duration
τ [h]
Repetitions
[times]
Mask Eff.
me [%]
Collective
Work 8:00–17:00 0.5–1 0– 0 ×
Meeting 9:00–16:00 0.3ˆ–1.5 0–5 0
Coffee 10:00–10:30
15:00–16:00
0.083ˆ–0.25 0–2 0 ×
Restroom 8:00–17:00 0.05–0.1 0–4 0 ×
Lunch 13:00–15:00 0.3ˆ–0.75 1–1 0

Table 4.

Place parameters for the baseline case.

Area [m2] People N Capacity [people] λa [h−1] λr [h−1] Departments
allowed
Activity
Offices Work
Open Office 330 48 60 1.5 0 D1, D2, D3, D4
IT Office 52 7 10 1.5 0 D4
Chief Office A 21 2 5 1.5 0 D5, D6, D7
Chief Office B 21 2 5 1.5 0 D5, D6, D7
Chief Office C 24 1 5 1.5 0 D5, D6, D7

Meeting rooms Meeting
Meeting Room A 16 6 0.5 0 All except D4
Meeting Room B 16 6 0.5 0 All except D4
Meeting Room C 11 4 0.5 0 All except D4
Meeting Room D 66 24 1.5 0 All

Coffee rooms Coffee
Coffee A 25 10 1.5 0 All
Coffee B 55 20 1.5 0 All

Restrooms Restroom
Restroom A 20 4 0.5 0 All
Restroom B 20 4 0.5 0 All except D7

Lunch room
Lunch 150 60 1.5 0 All Lunch

The floor area of each location was measured, and the volume V was estimated assuming a height of 2.7 m. The initial number of people present N, the maximum number of people that can fit in the room, and the ventilation rates (both mechanical λr, i.e., without outdoor air supply, and natural λa, i.e., with outdoor air supply) are also defined. Meeting rooms A, B, C, and restrooms A and B are subject to poor natural ventilation, as they are oriented towards the interior of the building and do not have direct access to a window.

There are 60 people distributed in 7 different departments: D1, D2, and D3 have 16 people each; D4 refers to 7 Information Technology (IT) workers, and D5, D6, D7 hold the head of departments and the Chief Executive Officer (CEO), with 2, 2, and 1 people respectively. Each place is only accessible to people from specific departments. This is determined by the “departments allowed” parameter on Table 4. The IT office, for example, is only accessible to members of the IT department D4. Due to accessibility limitations (no unisex bathrooms), one of the restrooms (restroom B) is open to all departments except D7 (CEO). Note that departments D1–D4 can work in the open office for extended periods of time throughout the day, whereas managers (departments D5–D7) can only walk through and cannot work or meet with employees from departments D1–D4 in the open office. The number of infected people Ni is set to 3 in all the proposed scenarios. The aerosol model parameters are described in Section 2.2.1.

2.4.1. Measures

The following section describes what actions can be implemented to control indoor air quality and reduce CO2 and quanta concentration levels.

Building-related.

Architects and engineers can increase the space’s area and/or height during the design stage and create open spaces or more separated workspaces. The ventilation strategy can also be changed through mechanical systems like air conditioning (AC) or portable high-efficiency particulate air (HEPA) filters, or through natural ventilation, obtaining outdoor air exchange through windows or doors.

Company policy-related.

Physical measures include mandatory masks, locking/restricting access to small rooms, or renting additional rooms. Other measures entail reducing the number of people working from the office through remote shifts, reducing the number or duration of meetings, restricting movements between buildings or departments, and, in some cases, prohibiting eating lunch in the office to avoid no-mask scenarios. This latter possibility, however, may be unrealistic.

2.4.2. Experiments

ArchABM can help to quantify the impact of some of these building- and company policy-related measures. Therefore, the proposed experiments are defined in this section.

Baseline case — no measures.

A baseline case with no measures and reduced ventilation is first studied. The events’ parameters are summarized in Table 3, where an schedule is set for each event type, along with their minimum and maximum duration τ, and the number of repetitions. The mask is not used anywhere (me=0). Meetings and the lunch activity are considered to be collective events.

Places’ parameters are summarized in Table 3. The capacity refers to the maximum number of people that can be present in that specified space. A low natural ventilation rate is established (λa=1.5, and λa=0.5 for poor ventilated rooms) and there is no mechanical ventilation (λr=0).

Building-related.
  • 1.

    Larger building: each room’s area (and thus each room’s volume) is increased by 20%. This measure needs to take into account the increase in costs, which according to [51] would mean an increase of almost 20% in the final construction costs as well.

  • 2.

    Separate workspaces: the open office is divided into three identical offices, each one with 110 m2, 16 people (48/3), and a capacity of 20 (60/3).

  • 3.

    Better natural ventilation: windows are opened everywhere except in restrooms for better outdoor air supply. λa is increased up to 5 h1.

  • 4.

    Better mechanical ventilation: the flow rate QAC of the AC system is incremented, assuming a 20% filter efficiency ɛfilter, a 10% of removal in ducts ɛducts and no additional ɛextra removal measures. According to [51], adding AC to the building would mean an increase of 14% in the building overall costs. According to Eq. (5), the values resulting for λr are summarized in Table 5:

Table 5.

Parameters for a better mechanical ventilation experiment involving AC with air recirculation, but no outdoor air supply.

QAC [m3/h] λr [h−1]
Offices
Open Office 1000 0.337
IT Office 300 0.641
Chief Office A 300 1.587
Chief Office B 300 1.587
Chief Office C 300 1.38ˆ

Meeting rooms
Meeting Room A 300 2.083ˆ
Meeting Room B 300 2.083ˆ
Meeting Room C 300 3.03ˆ
Meeting Room D 1000 1.68

Coffee
Coffee A 300 1.3ˆ
Coffee B 1000 2.02ˆ

Restrooms
Restroom A 0 0
Restroom B 0 0

Lunch
Lunch 1000 0.740ˆ
Policy-related.
  • 1.

    Shifts between workers: this would imply a reduction in the number of people present in each room. For this experiment, the population is reduced by 40%, resulting in 29 people in the open office, 4 in the IT Office, and 1 in each chief office, summing up to 36 people. This measure also entails a non-quantifiable cost to the company.

  • 2.

    Limit duration of events: the duration of meetings is limited to a maximum of 30 min, setting τ=[0.3ˆ0.5] h. The duration of coffee breaks would be limited to 5 min, meaning τ=0.083ˆ h, and lunch would be of 20 min, τ=0.3ˆ h.

  • 3.

    Use of masks: in this case, the mask use is mandatory, meaning that mf=1 and the mask efficiency, me, is set to 0.75 in the offices and meeting rooms, to 0.5 in the restrooms, to 0.3 for coffee breaks and leaving it at 0 for lunch breaks, representing the absence of masks while eating.

Combined case.

Finally, in order to quantify the impact of implementing both building and policy measures, the experiments of better natural ventilation and limit events duration are combined in a new experiment.

2.5. Statistical analysis

The results of the described experiments are evaluated with regard to three levels: places, people (i.e., departments), and the entire building. In terms of outcome parameters related to IAQ at the place-level, the maximum CO2 level (concentration in ppm) and the maximum virus quanta level (concentration in ppm) reached during the day per place are calculated. In terms of physiological response outcome at person-level, the time-weighted average inhaled CO2 over the day and the maximum quanta inhaled at the end of the day per person are used. At the building level, volume-weighted average maximum CO2 is reported in terms of IAQ parameters per experiment, where volume refers to the volume of each place. To summarize physiological response parameters on the building level, the maximum quanta level at the end of the day is averaged over all people.

Prior to further statistical analyzes of these outcome parameters, we conducted a set of trial simulations to determine an adequate number of simulation runs Srun. Note that one simulation, i.e. one simulation run refers to simulating agents’ actions and interactions in the given environment as defined in the input configuration file over the course of one day. Certain ABMs are prone to be statistically underpowered as they may require much computational time and effort to complete one single simulation [52]. This promotes Type-I errors of not detecting an actual effect. ArchABM is computationally efficient and takes less than a second on a standard laptop to complete one simulation with the given baseline configuration, which could encourage running many simulations. This, however, may lead to overpowered analyzes, promoting Type-II errors of detecting a non-existent effect. For this, we ran each of the nine experimental configurations from Srun = 10 up to Srun = 1000 simulations in unitary steps and repeated each setting 100 times (e.g., we computed a set of 100 simulations for each Srun). For every single simulation, we computed further the coefficient of variation (CV[53], defined as the ratio of the standard deviation of a sample to its mean for each of the four critical outcome parameters (maximum CO2 and quanta level per place and mean inhaled CO2 and inhaled quanta per department). Low consecutive CVs imply the stability of the results. Therefore, CVs were plotted for all simulation sets over Srun for all outcome parameters, and convergence of CV towards a stable range was visually assessed. The resulting plots are detailed in the Appendix Fig. A.15. Following this analysis, the adequate Srun was 500 for all experiments.

Fig. A.15.

Fig. A.15

Results for determining an adequate number of simulation runs Srun. The Coefficient of Variation (CV) was plotted for 100 repetitions of the same simulation configuration using different number of simulation runs. A stable CV was reached for Srun=500 simulation runs.

Each experimental configuration is compared to the baseline experiment to determine whether significant differences were achieved for all four outcome parameters. We hypothesized for each of the experimental configurations that the respective measures would positively impact IAQ and physiologic response, i.e., would yield lower CO2 and quanta levels in places and lower inhaled CO2 and quanta amounts in people compared to baseline. To test this hypothesis, we first apply the Shapiro–Wilk test of normality to the respective distributions. Then, for normally distributed data, Welch’s t-test is used to compute a p-value, and the effect size [54] is calculated using Cohen’s d. For not normally distributed data, Mann–Whitney U-test is used to compute a p-value, and the Wilcoxon test is used to calculate the effect size. Finally, the percentage difference between means is reported. A statistically significant difference between distributions, however, is only assumed whenever the p-value is below 0.001 and the effect size is moderate (between 0.5 and 0.8) or large (greater than 0.8). Fig. 6 provides a visual summary of the statistical analyzes performed. All statistical tests are performed using R v3.6.3 [55].

Fig. 6.

Fig. 6

Statistical comparison of two distributions (baseline vs experiment). The legend is annotated to aid in the interpretation of subsequent figures.

Note that for all quanta-related outcome parameters calculated in places, all simulation runs that yield a final quanta level of zero at the end of the day are excluded from all experiments. The reason is that otherwise, the quanta level distributions end up being bi-modal, with a skew towards zero. This happens predominantly for the chief offices if no infected person ever enters the office throughout the day. Having run each experimental configuration for many runs, we assume this to occur in the same frequency throughout all experiments – including the baseline experiment – which makes each experiment comparable to baseline when removing these simulations. In this way, only relevant simulations in which quanta levels rose due to an infected being present are considered.

3. Results and discussion

3.1. Validation experiment

Recently, efforts have been made to analyze CO2 levels inside buildings, and many studies can be found in the literature [17], [39], [46]. The study of Candanedo et al. [17], presents measurements4 of CO2 during a day in an office with two people present. Replicating their presented parameters for office room area and volume, timetable, and people present, we compare their data, which is available, to the results produced by ArchABM. This comparison is presented in Fig. 7. In the real measurements, the CO2 level begins to rise shortly before 8:00 a.m., when the room is first occupied. When the second occupant arrives just past 9:00 a.m., the slope of the CO2 readings increases. Between 11:00 a.m. to 1:00 pm natural ventilation increases, obtaining outdoor air supply through door opening and/or occupants leaving, and thus the CO2 decreases. Also, when the room is not occupied around 1:00–1:30 p.m., the CO2 sensors register a slight drop in their readings. For this simulation, a constant outdoor air exchange rate of 0.25 h1 was set. It can be observed that the simulated data follow the measurements presented by Candanedo et al. [17] in a satisfactory manner, and as a result, we proceeded with the experiments proposed in Section 2.4.2.

Fig. 7.

Fig. 7

ArchABM validation experiment with empirical data registered by Candanedo et al. [17] using a Telaire 6613 sensor with range 0–2000 ppm and 1 ppm resolution. The blue shadow represents the accuracy of the sensor: ±30 ppm at 400–1250 ppm and 5% of reading ±30 ppm at 1250–2000. (For interpretation of the references to color in this figure legend, the reader is referred to the web version of this article.)

3.2. Results for baseline experiment

The results of a single simulation with the baseline configuration are presented in this section. Fig. 8(a) summarizes the types of events (coffee, lunch, meetings, go to the restroom, do office work) performed by all occupants throughout the day, while Fig. 8(b) shows a detailed breakdown of the activities performed by each person throughout the day.

Fig. 8.

Fig. 8

Baseline experiment results: activities throughout the day and quanta inhaled per person. (For interpretation of the references to color in this figure legend, the reader is referred to the web version of this article.)

As it can be observed on Fig. 8(b), agents are strictly adhering to the specified schedule, with two coffee breaks, one main lunch event, and meetings, restrooms, and work events spread throughout the day. The three randomly infected people are also highlighted in Fig. 8(b). The amount of quanta inhaled per person is depicted in Fig. 8(c). Each line represents a person, and the red dotted lines indicate the three infected people. The color of the line represents the activity that each agent is performing. For instance, meetings and lunch activities primarily contribute to quanta inhalation between the agents. The total quanta inhaled by each person at the end of the day is shown in Fig. 8(d), and the three infected people are highlighted with red dots.

From the places perspective, ArchABM also offers the possibility of tracking the CO2 and quanta concentration levels (Fig. 9). Examining the CO2 level at each place throughout the day (Fig. 10.a), it can be observed that the meeting rooms accumulate the highest CO2 concentration throughout the day. The coffee places rapidly accumulate CO2 during the coffee events, but the air quality is restored between the coffee breaks. Other rooms, for example, restrooms and office places show a more constant CO2 level. The distribution of CO2 concentration can directly be observed in Fig. 9(b), where a box-plot is overlaid on top of a violin plot. A similar interpretation can be concluded with the quanta concentration for this simulation run.

Fig. 9.

Fig. 9

Baseline experiment results: indoor air quality at place-level with CO2 and quanta levels.

Fig. 10.

Fig. 10

Baseline experiment metrics related to IAQ at place-level overlaid on the floorplan.

In addition, metrics related to IAQ at the place level have been overlaid on the floor plan, as shown in Fig. 10. Concerning the CO2 level, meeting rooms are highlighted as the worst locations. With regard to the quanta level, meeting rooms B and C come out worst in this case. These results demonstrate ArchABM’s capabilities of detecting “hotspots” in terms of high CO2 and virus quanta concentrations (in our case meeting rooms and the coffee place) across the entire building.

It should be noted that the results in this section refer to a single simulation run and that the quanta-related metrics are very dependent on the randomly selected infected people. However, the high computational performance of ArchABM allows running multiple simulations, as is explained in the following section.

3.3. Results for further experiments

The impact of different building-related and company policy-related measures are presented in this section. As it was explained in Section 2.4.2, nine experiments are proposed, including the baseline case and the combined building-policy case. The results of the described experiments are evaluated with regard to three levels: places, people (i.e., departments), and the entire building.

3.3.1. Results for places

In terms of outcome parameters related to IAQ at the place-level, the maximum CO2 level (concentration in ppm) and the maximum virus quanta level (concentration in ppm) reached during the day per place are calculated. This section examines the results from a location standpoint (Fig. 11, Fig. 12), and we will concentrate solely on differential aspects between places at each experiment. The analysis of these results takes into account the statistical significance of the hypothesis tests explained in Section 2.5.

Fig. 11.

Fig. 11

Indoor air quality at place-level: probability density function of the maximum CO2 level (concentration in ppm) at each place after Srun=500 simulation runs.

Fig. 12.

Fig. 12

Indoor air quality at place-level: probability density function of the maximum virus quanta level (concentration in quanta) at each place after Srun=500 simulation runs.

Maximum CO2 level.

Designing a 20% larger building (i.e. increasing each room’s area by 20%) reduces the maximum level of CO2 in every room, and especially affects the meeting rooms, where the reduction nearly doubles when compared to the rest of the building. Separate workspaces have a significant impact only in the IT office and the open office. This strategy, in particular, lowers the maximum level of CO2 in the IT office by up to 11% while increasing it by 2% in the open office. Designing better natural ventilation systems greatly improves the indoor air quality in terms of CO2 level, particularly in meeting rooms. Improved mechanical ventilation systems, on the other hand, have no effect on CO2 levels due to the way they were implemented in the model (no air exchange/replacement).

The strategy of working in shifts affects the entire building, except for the chiefs’ rooms, and reduces the maximum CO2 level of the meeting rooms in particular. Shortening the duration of events produces interesting results in terms of CO2. People are not allowed to take long coffee breaks, lunch activities or meetings, so they spend more time in other places (for instance, chiefs, IT office, open office and restrooms), where the CO2 level rises. Establishing a mandatory mask policy has no effect on the CO2 level as the model does not take mask filtration into account for CO2 calculations. Finally, the combination of improved natural ventilation and events duration limitation corresponds to the confluence of the aforementioned observations about these experiments.

Maximum quanta level.

The design of a larger building in terms of room area reduces the maximum quanta level in every room by up to 18%. Separate workspaces have a significant impact exclusively in the open office, which is divided into three distinct spaces according to this strategy. This building configuration specifically raises the maximum quanta level in the open office by up to 57%. This increase in the mean quanta level is due to the fact that in this experiment, one of the three spaces is more likely to be highly contaminated, which raises the mean value. Better natural ventilation system design improves indoor air quality in terms of quanta, especially in meeting rooms. Installing better mechanical ventilation systems reduces quanta concentration levels in all rooms, with a greater impact in chief offices and meeting rooms.

The strategy of working in shifts increases the prevalence of the virus, affecting the quanta levels of the entire building as we kept the number of infected people constant in our experiments. Larger spaces where a large number of people can congregate (such as the lunch room and the largest meeting room D) are particularly affected. Limiting the duration of events produces the same results as analyzing the CO2 level under this strategy. People spend more time in other places (for example, chiefs, it office, open office, and restrooms, where the quanta level increases) because they are not allowed to take long coffee breaks, lunch activities, or meetings. Establishing a mandatory mask policy affects every area in the building, except the lunch room, and has a greater effect on the quanta level of the chief offices and meeting rooms. Combining the experiment of improved natural ventilation with the limitation of events’ duration produces very similar results to the former experiment. However, in this case there is a slight improvement in the quanta level in the coffee places and the lunch room.

3.3.2. Results for people/departments

In terms of physiological response outcome at person-level, the time-weighted average inhaled CO2 over the day and the maximum quanta inhaled at the end of the day per person are used. This section examines the results from a departmental viewpoint (Fig. 13), and we will concentrate solely on differential aspects between departments at each experiment. Once again, the analysis of these results takes into account the statistical significance of the hypothesis tests explained in Section 2.5.

Fig. 13.

Fig. 13

Physiological response outcome at person-level: probability density function of the time-weighted average inhaled CO2 over the day and the maximum quanta inhaled at the end of the day per person.

Working in shifts reduces the average of CO2 level inhaled by all departments, but particularly in departments D1, D2, and D3. This difference is clearly explained by the fact that in this experiment the number of people in these departments gets reduced, and thus, the emitted CO2 decreases as well. Nonetheless, in terms of quanta level in this shift-work strategy, maintaining a constant number of infected people while reducing the total number of people increases the virus prevalence among the population, which has the greatest impact on the IT office department. As a consequence, the quanta level at the department D4 (IT office) is increased by 38%, while the rest of the departments suffer an increase of 15 to 25%, approximately.

Limiting the duration of events has a similar effect with respect to the average CO2 level inhaled across departments, with an average reduction of 5 to 9 percent. However, in terms of maximum quanta inhaled at the end of the day per person, this strategy has the greatest impact on departments D5, D6 and D7, which represent chief officers. In comparison to departments D1–D4, the reduction in average quanta inhaled by departments D5–D7 is nearly doubled. Interestingly, other ABM-based studies found similar results when analyzing the duration of classes in schools [36], where shorter classes were preferable. The remaining experiments (larger building, separate workspaces, better natural ventilation, better mechanical ventilation, and wearing masks), do not show any differential aspects among departments, however, wearing masks has the largest impact on reducing quanta levels across all departments. The benefit of wearing masks indoors has been found in several other studies applying ABMs [26], [34].

3.3.3. Results for whole building

At the building level, volume-weighted average maximum CO2 is reported in terms of IAQ parameters per experiment, where volume refers to the volume of each place. To summarize physiological response parameters on the building level, the maximum quanta level at the end of the day is averaged over all people. Once more, the analysis of these results takes into account the statistical significance of the hypothesis tests explained in Section 2.5, which has been included on Fig. 14

Fig. 14.

Fig. 14

Results at building level: Indoor air quality is measured by the volume-weighted average maximum CO2. Physiological response outcome is measured by the maximum quanta level inhaled at the end of the day averaged over all people.

Concerning the building-related measures, increasing each room’s area by 20% reduces, on average, the maximum CO2 level by 8% and the maximum quanta level by 17%. However, the cost of these solutions must be carefully considered, and in some cases, they are not a financially viable option. Creating separate workspaces does not affect either the CO2 nor quanta levels at the building level. However, the results from the perspective of the place claim that it affects the modified spaces. Increasing the natural ventilation, the outdoor air exchange rate, reduces, on average, the maximum CO2 level by 29% and the maximum quanta level by 54%. This measure improves the IAQ of the building and is a crucial parameter to control the indoor air quality, as expected. Increasing the mechanical ventilation rate improves the quanta level by 33% but does not modify the CO2 concentration level, as there is no outdoor air supply, the air is merely recirculated. Although virus quanta can be removed from recirculated air, the CO2 level remains unchanged.

Regarding the company policy-related measures, working in shift reduces, on average, the maximum CO2 level by 14%, but increases the maximum quanta level by 19%. These results can be explained by the fact that maintaining a constant number of infected people while reducing the total number of people increases the virus prevalence among the population. Thus, it is expected to observe the quanta level increase in this experiment. Constraining the events’ duration reduces, on average, the maximum CO2 level by 4% and the maximum quanta level by 23%. This reflects the fact that the quanta level is directly related to the meeting events and rooms and that limiting their duration can be an easy-to-apply and effective strategy to reduce the quanta concentration indoors. Establishing a mandatory mask policy has no effect on the CO2 level but almost completely eliminates the quanta concentration from the building, as predicted by the aerosol model developed by Peng and Jimenez [16]. Other ABM models from the literature, such as [33], [34], [35], [36], have made similar observations regarding the use of masks.

Combining better natural ventilation and limiting the duration of meetings and lunch events has a significant effect on both CO2 and quanta levels. This case combines the most promising measures from the above experiments and reduces, on average, the maximum CO2 level by 31% and the maximum quanta level by 65%.

3.4. Strengths, limitations and future work

In this study, we present a novel agent-based simulator framework, ArchABM, designed to model complex human–building interaction patterns for evaluating the impact of building-related and policy-related measures on a building’s IAQ in terms of CO2 and virus quanta levels and the respective physiological response of occupants. While the application of ABMs in the building domain has grown in recent years, few studies specifically focus on IAQ, and only very recent studies consider the latest call to include potential airborne virus transmission in their models. Furthermore, to the best of our knowledge, no other ABM-based approach has been published that allows for an easy-to-setup simulation of complex, realistic human–building interaction patterns resulting from occupants following their daily schedule across an entire building and adhering to conventions or local policies while at the same time including a random component.

When designing a building or adapting an existing building to improve IAQ for its occupants on a broad scale, cost and energy efficiency are critical considerations. For example, a large, perfectly ventilated room may not be necessary depending on the given human interaction with this room. At the same time, it may be futile to optimize one room’s ventilation system under great (engineering and monetary) efforts when occupants later get infected in another, overlooked room such as a coffee kitchen. ArchABM was designed to provide a general overview and optimize the entire building based on its intended use. Simulations performed with ArchABM can assist in unveiling such “hotspots” with poor IAQ or “oversized” rooms and allows playing with a combination of (likely costly) building-related measures and (potentially less expensive) policy-related measures that may lead to significantly improved IAQ. Thanks to ArchABM’s good computational performance, results can be evaluated quickly and with a high number of simulation repetitions, which allows extracting statistically valid conclusions for decision-makers.

We present here a realistic use case applying ArchABM, based on a real floor plan with realistic room sizes, number of people, and workday routines, which results in a series of interaction patterns that in turn lead to different IAQ distributions in different rooms. While some of the investigated measures resulted in expected outcomes in terms of CO2 and virus quanta levels (such as masks having a positive effect on quanta levels and inhaled quanta), ArchABM allows quantifying and comparing these effects in detail — revealing, for example, that relatively “simple” measures such as improved natural ventilation (increase outdoor air supply by opening windows) or reducing the duration of events have a relatively significant positive impact. Results from our simulations further show how poor IAQ in terms of CO2 and virus quanta levels can be detected for each room in the building, highlighting in our case that in particular meeting rooms are problematic in terms of IAQ. ArchABM allows combining, testing and quantifying a set of various measures, whose outcome may not be easy to predict, taking into account the use of the entire building by its occupants. Combining better natural ventilation with limiting meeting duration, for instance, could decrease average CO2 levels on the building level by 31% and average virus quanta levels by 68%. In those scenarios, ArchABM can provide valuable quantitative insights to architects, engineers, or building and human resource managers.

3.4.1. IAQ including aerosols

IAQ in this study has been principally defined by pollutant concentration. A recently published aerosol model calculating both the amount of exhaled and inhaled CO2, as well as virus quanta (here for SARS-CoV-2), was adapted to account for the dynamics of people entering and leaving different rooms over a day to be applicable in our agent-based simulation. ArchABM’s calculations regarding CO2 levels in a room were validated against a well-documented case from the literature where CO2 was measured, and recorded [17]. Validating inhaled CO2 and in particular accumulated and inhaled virus quanta levels is to date as complex as to measure virus concentrations in a room reliably. Regarding SARS-CoV-2, this is currently a critical research topic, and viable options may become available in the future. For now, we have to rely on the applied aerosol model, which in any case has been validated against real cases of SARS-CoV-2 transmissions [50]. We would like to point out that here we deliberately refrained from calculating parameters such as “infection risk” as we understand that it is still not fully known which amount of virus quanta leads to which amount of risk. We therefore only report virus quanta levels for rooms and inhaled quanta for occupants. ArchABM being flexible and modular, and available as an Open Source Python library, it is straightforward to adapt the current SARS-CoV-2 aerosol model or another model related to airborne virus transmission. The same applies to extending the definition of the calculated IAQ in order to include other relevant parameters such as temperature, or humidity [17] — this can be addressed in future work.

3.4.2. Localized air flow

Compared to other ABM-related studies using aerosol models for indoor environments, to the best of our knowledge, this study is the first to analyze differences between mechanical and natural ventilation configurations which apply varying ventilation rates. One limitation of the aerosol model included in ArchABM though is related to the nature of ventilation, which removes both CO2 and virus quanta from a room over time. Here, we assume homogeneous mixing of air constituents and do not take into account airflow direction or any localized airflows induced either by people or the ventilation itself, depending on the room geometry or interference with objects or occupants in the room. This is currently another important research topic, with authors conducting detailed (mostly Computational Fluid Dynamics (CFD)-based) studies of indoor airflows and different ventilation systems [13], [47], [48], [56], [57]. Evidence suggests that the position of ventilation inlets and outlets, as well as occupants’ individual positions relative to an infected person play an important role in airborne virus transmission [13], [36]. Accounting for these complex air flow-related effects is generally difficult in agent-based models as computational efforts even for a single room are typically high. However, recent studies suggest model adjustments taking into account airflow directions or locally spread quanta [35], [36].

3.4.3. Agent characteristics

Regarding the agents’ (i.e., building occupants’) characteristics used in this study, future work could involve varying agents’ profiles in order to account for different types of respiratory activities (speaking, shouting, breathing, etc.), respiratory parameters (e.g., inhalation rate) or activity level (resting, standing, walking, etc.) [3]. Even varying individual agent behavior based on agent physical perception or physiology may be added [39], [58]. Yet, adding such complexities to the model will result in performance loss and may reduce the comprehensibility and explainability of the model’s output. For certain applications, such a level of detail regarding “agent microdynamics” may not be necessary.

3.4.4. Building optimization

ArchABM’s good computational performance and standard output format (JavaScript Object Notation, JSON) make it attractive for coupling with advanced optimization methods such as Reinforcement Learning [8] or more traditional Knapsack [59], or Design of Experiments approaches [60], with which optimal room sizes and distributions or ventilation configurations could be estimated based on simulated human–building behavior. We believe there is an immense potential for future studies to explore such building design optimization in order to find cost and energy-effective solutions that at the same time provide good IAQ across the entire building — given its use.

4. Conclusion and summary

In this study, we present a novel, fast and open source agent-based modeling framework, ArchABM, which allows for simulating complex human–building-interaction patterns to estimate IAQ across the entire building, while taking into account potential airborne virus concentrations. A recently published aerosol model for SARS-CoV-2 was adapted to calculate time-dependent carbon dioxide (CO2) and virus quanta concentrations in each room as a measure of IAQ as well as inhaled CO2 and virus quanta for each agent (occupant) over the course of a day as a measure of physiological response. ArchABM was then applied to simulate a realistic office scenario including 14 rooms and 60 agents to investigate the impact of building-related measures and policy-related measures on overall IAQ and physiological response of occupants. Results allowed determining critical and not-so-critical rooms in terms of IAQ and allowed for a quantitative assessment of the impact of single and combinations of measures on IAQ and physiological response, suggesting that improved natural ventilation, limiting meeting duration and wearing masks were among the most effective measures.

The pandemic caused by SARS-CoV-2 has demonstrated that we need to focus more on improving IAQ in order to avoid risking occupants’ health. We believe that advanced simulation tools such as ArchABM can provide novel insights and moreover may assist stakeholders in finding cost and energy effective solutions, ensuring good IAQ across a building, while taking into account how single rooms are actually used. Using ArchABM in optimization scenarios may even lead to new ways of designing future buildings that provide healthier indoor environments.

Declaration of Competing Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Acknowledgments

The authors would like to thank Asier Aguirre Martínez and Egoitz Bizkarguenaga Agirre for their help in obtaining realistic room sizes, floor plans and work schedules for the use case of our research center. The authors further thank the anonymous Reviewers for their insightful comments that helped to improve the manuscript.

Footnotes

Appendix. Estimating number of simulations with coefficient of variation

References

  • 1.Zhang R., Li Y., Zhang A.L., Wang Y., Molina M.J. Identifying airborne transmission as the dominant route for the spread of COVID-19. Proc. Natl. Acad. Sci. 2020;117(26):14857–14863. doi: 10.1073/PNAS.2009637117. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Somsen G.A., van Rijn C., Kooij S., Bem R.A., Bonn D. Small droplet aerosols in poorly ventilated spaces and SARS-CoV-2 transmission. Lancet. Respir. Med. 2020;8(7):658–659. doi: 10.1016/S2213-2600(20)30245-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Buonanno G., Stabile L., Morawska L. Estimation of airborne viral emission: Quanta emission rate of SARS-CoV-2 for infection risk assessment. Environ. Int. 2020;141 doi: 10.1016/j.envint.2020.105794. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Li Y., Qian H., Hang J., Chen X., Cheng P., Ling H., Wang S., Liang P., Li J., Xiao S., Wei J., Liu L., Cowling B.J., Kang M. Probable airborne transmission of SARS-CoV-2 in a poorly ventilated restaurant. Build. Environ. 2021;196 doi: 10.1016/J.BUILDENV.2021.107788. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Blocken B., van Druenen T., Ricci A., Kang L., van Hooff T., Qin P., Xia L., Ruiz C.A., Arts J.H., Diepens J.F., Maas G.A., Gillmeier S.G., Vos S.B., Brombacher A.C. Ventilation and air cleaning to limit aerosol particle concentrations in a gym during the COVID-19 pandemic. Build. Environ. 2021;193 doi: 10.1016/J.BUILDENV.2021.107659. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Agarwal N., Meena C.S., Raj B.P., Saini L., Kumar A., Gopalakrishnan N., Kumar A., Balam N.B., Alam T., Kapoor N.R., Aggarwal V. Indoor air quality improvement in COVID-19 pandemic: Review. Sustainable Cities Soc. 2021;70 doi: 10.1016/J.SCS.2021.102942. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Azuma K., Yanagi U., Kagi N., Kim H., Ogata M., Hayashi M. Environmental factors involved in SARS-CoV-2 transmission: effect and role of indoor environmental quality in the strategy for COVID-19 infection control. Environ. Health Prev. Med. 2020;25(1):1–16. doi: 10.1186/S12199-020-00904-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Valladares W., Galindo M., Gutiérrez J., Wu W.C., Liao K.K., Liao J.C., Lu K.C., Wang C.C. Energy optimization associated with thermal comfort and indoor air control via a deep reinforcement learning algorithm. Build. Environ. 2019;155:105–117. doi: 10.1016/J.BUILDENV.2019.03.038. [DOI] [Google Scholar]
  • 9.ASHRAE . 2021. Standards 62.1 & 62.2. URL https://www.ashrae.org/technical-resources/bookstore/standards-62-1-62-2. [Google Scholar]
  • 10.Noakes C.J., Beggs C.B., Sleigh P.A., Kerr K.G. Modelling the transmission of airborne infections in enclosed spaces. Epidemiol. Infect. 2006;134(5):1082–1091. doi: 10.1017/S0950268806005875. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Morawska L., Allen J., Bahnfleth W., Bluyssen P.M., Boerstra A., Buonanno G., Cao J., Dancer S.J., Floto A., Franchimon F., Greenhalgh T., Haworth C., Hogeling J., Isaxon C., Jimenez J.L., Kurnitski J., Li Y., Loomans M., Marks G., Marr L.C., Mazzarella L., Melikov A.K., Miller S., Milton D.K., Nazaroff W., Nielsen P.V., Noakes C., Peccia J., Prather K., Querol X., Sekhar C., Seppänen O., Tanabe S.I., Tang J.W., Tellier R., Tham K.W., Wargocki P., Wierzbicka A., Yao M. A paradigm shift to combat indoor respiratory infection. Science. 2021;372(6543):689–691. doi: 10.1126/SCIENCE.ABG2025. [DOI] [PubMed] [Google Scholar]
  • 12.Melikov A.K. COVID-19: Reduction of airborne transmission needs paradigm shift in ventilation. Build. Environ. 2020;186 doi: 10.1016/J.BUILDENV.2020.107336. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Barbosa B.P.P., de Carvalho Lobo Brum N. Ventilation mode performance against airborne respiratory infections in small office spaces: limits and rational improvements for Covid-19. J. Braz. Soc. Mech. Sci. Eng. 2021;43(6) doi: 10.1007/S40430-021-03029-X. [DOI] [Google Scholar]
  • 14.ECDC - European Center for Disease Prevention and Control . 2020. Heating, ventilation and air-conditioning systems in the context of COVID-19: first update changes to the current update. [Google Scholar]
  • 15.WHO - World Health Organization . 2021. Roadmap to improve and ensure good indoor ventilation in the context of COVID-19; p. 38. [Google Scholar]
  • 16.Peng Z., Jimenez J.L. 2020. Exhaled CO2 as COVID-19 infection risk proxy for different indoor 1 environments and activities 2 3. MedRxiv. [DOI] [PubMed] [Google Scholar]
  • 17.Candanedo L.M., Feldheim V. Accurate occupancy detection of an office room from light, temperature, humidity and CO2 measurements using statistical learning models New Energy Efficient Demonstration for Buildings-NEED4B View project Accurate occupancy detection of an office room fro. Energy Build. 2016;112:28–39. doi: 10.1016/j.enbuild.2015.11.071. [DOI] [Google Scholar]
  • 18.Vicomtech . 2021. archABM - Agent based simulation for architectural spaces. URL https://pypi.org/project/archABM/ [Google Scholar]
  • 19.Vicomtech . 2021. archABM code repository. URL https://github.com/Vicomtech/ArchABM/ [Google Scholar]
  • 20.Martinez I.n., Bruse J.L., Florez A.M., Olaizola I.G. 2021. Building air quality and pandemic risk simulation, 1. URL https://data.mendeley.com/datasets/cx3byrjx7b/1. [DOI] [Google Scholar]
  • 21.Giabbanelli P.J., Gray S.A., Aminpour P. Combining fuzzy cognitive maps with agent-based modeling: Frameworks and pitfalls of a powerful hybrid modeling approach to understand human-environment interactions. Environ. Model. Softw. 2017;95:320–325. doi: 10.1016/j.envsoft.2017.06.040. [DOI] [Google Scholar]
  • 22.Chang S.L., Harding N., Zachreson C., Cliff O.M., Prokopenko M. Modelling transmission and control of the COVID-19 pandemic in Australia. Nature Commun. 2020;11(1) doi: 10.1038/s41467-020-19393-6. arXiv:2003.10218. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Kirpich A., Koniukhovskii V., Shvartc V., Skums P., Weppelmann T.A., Imyanitov E., Semyonov S., Barsukov K., Gankin Y. Development of an interactive, agent-based local stochastic model of COVID-19 transmission and evaluation of mitigation strategies illustrated for the state of Massachusetts, USA. PLoS One. 2021;16(2) doi: 10.1371/journal.pone.0247182. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Inoue H., Todo Y. The propagation of economic impacts through supply chains: The case of a mega-city lockdown to prevent the spread of COVID-19. PLoS One. 2020;15(9) doi: 10.1371/journal.pone.0239251. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Silva P.L., Batista P.V., Lima H.S., Alves M.A., Guimaraes F.G., Silva R.C. COVID-ABS: An agent-based model of COVID-19 epidemic to simulate health and economic effects of social distancing interventions. Chaos Solitons Fractals. 2020;139 doi: 10.1016/j.chaos.2020.110088. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.D’Orazio M., Bernardini G., Quagliarini E. 2020. How to restart? An agent-based simulation model towards the definition of strategies for COVID-19 “second phase” in public buildings. arXiv:2004.12927. [Google Scholar]
  • 27.D. Simeone, A. Fioravanti, U.M. Coraglia, S. Cursi, A simulation model for building use re-thinking after the COVID-19 emergency.
  • 28.Ying F., O’Clery N. Modelling COVID-19 transmission in supermarkets using an agent-based model. PLoS One. 2021;16(4 April) doi: 10.1371/journal.pone.0249821. arXiv:2010.07868. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Ronchi E., Lovreglio R. EXPOSED: An occupant exposure model for confined spaces to retrofit crowd models during a pandemic. Saf. Sci. 2020;130 doi: 10.1016/j.ssci.2020.104834. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Vezeteu P.V., Nastac D.I. 2020 IEEE 26th International Symposium for Design and Technology in Electronic Packaging, SIITME 2020 - Conference Proceedings. Institute of Electrical and Electronics Engineers Inc.; 2020. Simulating the evolution of infectious agents through human interaction; pp. 43–46. [DOI] [Google Scholar]
  • 31.T. Yeung Cho, R. Bardhan, M. Jiayu Pan, M.B. Tze Yeung Cho, Redesigning the working space for social distancing: Modelling the movement in an open-plan office, in: CIBSE Technical Symposium, 2021, pp. 13–14.
  • 32.Xu Q., Chraibi M. On the effectiveness of the measures in supermarkets for reducing contact among customers during COVID-19 period. Sustainability. 2020;12(22):9385. doi: 10.3390/SU12229385. [DOI] [Google Scholar]
  • 33.Antczak T., Skorupa B., Szurlej M., Weron R., Zabawa J. 2021. Simulation modeling of epidemic risk in supermarkets: Investigating the impact of social distancing and checkout zone design; pp. 26–33. [DOI] [Google Scholar]
  • 34.Farthing T.S., Lanzas C. 2021. When can we stop wearing masks? Agent-based modeling to identify when vaccine coverage makes nonpharmaceutical interventions for reducing SARS-CoV-2 infections redundant in indoor gatherings. MedRxiv. [DOI] [Google Scholar]
  • 35.Altamimi T., Khalil H., Rajus V.S., Carriere R., Wainer G. 2021. Cell-DEVS models with BIM integration for airborne transmission of COVID-19 indoors. [Google Scholar]
  • 36.Zafarnejad R., Griffin P.M. Assessing school-based policy actions for COVID-19: An agent-based analysis of incremental infection risk. Comput. Biol. Med. 2021;134 doi: 10.1016/J.COMPBIOMED.2021.104518. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Azar E., Menassa C. Agent-based modeling of occupants and their impact on energy use in commercial buildings. J. Comput. Civ. Eng. 2012;26:506–518. doi: 10.1061/(ASCE)CP.1943-5487.0000158. [DOI] [Google Scholar]
  • 38.Papadopoulos S., Azar E. Integrating building performance simulation in agent-based modeling using regression surrogate models: A novel human-in-the-loop energy modeling approach. Energy Build. 2016;128:214–223. doi: 10.1016/J.ENBUILD.2016.06.079. [DOI] [Google Scholar]
  • 39.Jia M., Srinivasan R.S., Ries R., Weyer N., Bharathy G. A systematic development and validation approach to a novel agent-based modeling of occupant behaviors in commercial buildings. Energy Build. 2019;199:352–367. doi: 10.1016/J.ENBUILD.2019.07.009. [DOI] [Google Scholar]
  • 40.Uddin M.N., Wang Q., Wei H.H., Chi H.L., Ni M. Building information modeling (BIM), system dynamics (SD), and agent-based modeling (ABM): Towards an integrated approach. Ain Shams Eng. J. 2021 doi: 10.1016/J.ASEJ.2021.04.015. [DOI] [Google Scholar]
  • 41.Moglia M., Cook S., McGregor J. A review of agent-based modelling of technology diffusion with special reference to residential energy efficiency. Sustainable Cities Soc. 2017;31:173–182. doi: 10.1016/J.SCS.2017.03.006. [DOI] [Google Scholar]
  • 42.Van Rossum G., Drake F.L. CreateSpace; Scotts Valley, CA: 2009. Python 3 Reference Manual. [Google Scholar]
  • 43.N. Matloff, Introduction to discrete-event simulation and the simpy language, Davis, CA. Dept of Computer Science. University of California At Davis. Retrieved on August 2 (2009), 2008, pp. 1–33.
  • 44.Bazant M.Z., Bush J.W.M. A guideline to limit indoor airborne transmission of COVID-19. Proc. Natl. Acad. Sci. 2021;118(17) doi: 10.1073/pnas.2018995118. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.Lelieveld J., Helleis F., Borrmann S., Cheng Y., Drewnick F., Haug G., Klimach T., Sciare J., Su H., Pöschl U. Model calculations of aerosol transmission and infection risk of COVID-19 in indoor environments. Int. J. Environ. Res. Public Health. 2020;17(21):8114. doi: 10.3390/ijerph17218114. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Di Gilio A., Palmisani J., Pulimeno M., Cerino F., Cacace M., Miani A., de Gennaro G. CO2 Concentration monitoring inside educational buildings as a strategic tool to reduce the risk of Sars-CoV-2 airborne transmission. Environ. Res. 2021 doi: 10.1016/j.envres.2021.111560. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Pang Z., Hu P., Lu X., Wang Q., O’neill Z., Walker’ J.M. 2021. A smart CO2-based ventilation control framework to minimize the infection risk of COVID-19 in public buildings. [Google Scholar]
  • 48.Bhagat R.K., Wykes M.S.D., Dalziel S.B., Linden P.F. Effects of ventilation on the indoor spread of COVID-19. J. Fluid Mech. 2020;903 doi: 10.1017/JFM.2020.720. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49.Riley R.L., Mills C.C., O’Grady F., Sultan L.U., Wittstadt F., Shivpuri D.N. Infectiousness of air from a tuberculosis ward. Ultraviolet irradiation of infected air: comparative infectiousness of different patients. Am. Rev. Respir. Dis. 1962;85:511–525. doi: 10.1016/s0196-6553(97)90057-2. [DOI] [PubMed] [Google Scholar]
  • 50.Miller S.L., Nazaroff W.W., Jimenez J.L., Boerstra A., Buonanno G., Dancer S.J., Kurnitski J., Marr L.C., Morawska L., Noakes C. Transmission of SARS-CoV-2 by inhalation of respiratory aerosol in the Skagit Valley Chorale superspreading event. Indoor Air. 2021;31(2):314–323. doi: 10.1111/ina.12751. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51.2021. Costmodelling - Typical building costs. URL https://costmodelling.com/building-costs. [Google Scholar]
  • 52.Seri R., Secchi D. How many times should one run a computational simulation? Underst. Complex Syst. 2017:229–251. doi: 10.1007/978-3-319-66948-9_11. [DOI] [Google Scholar]
  • 53.Lee J.S., Filatova T., Ligmann-Zielinska A., Hassani-Mahmooei B., Stonedahl F., Lorscheid I., Voinov A., Polhill G., Sun Z., Parker D.C. The complexities of agent-based modeling output analysis. J. Artif. Soc. Soc. Simul. 2015;18(4) doi: 10.18564/JASSS.2897. [DOI] [Google Scholar]
  • 54.Secchi D., Seri R. Controlling for false negatives in agent-based models: a review of power analysis in organizational research. Comput. Math. Organ. Theory. 2016;23(1):94–121. doi: 10.1007/S10588-016-9218-0. [DOI] [Google Scholar]
  • 55.R Core Team . R Foundation for Statistical Computing; Vienna, Austria: 2020. R: A Language and Environment for Statistical Computing. URL https://www.R-project.org. [Google Scholar]
  • 56.Vuorinen V., Aarnio M., Alava M., Alopaeus V., Atanasova N., Auvinen M., Balasubramanian N., Bordbar H., Erästö P., Grande R., Hayward N., Hellsten A., Hostikka S., Hokkanen J., Kaario O., Karvinen A., Kivistö I., Korhonen M., Kosonen R., Kuusela J., Lestinen S., Laurila E., Nieminen H.J., Peltonen P., Pokki J., Puisto A., Råback P., Salmenjoki H., Sironen T., Österberg M. Modelling aerosol transport and virus exposure with numerical simulations in relation to SARS-CoV-2 transmission by inhalation indoors. Saf. Sci. 2020;130 doi: 10.1016/J.SSCI.2020.104866. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 57.Shao S., Zhou D., He R., Li J., Zou S., Mallery K., Kumar S., Yang S., Hong J. Risk assessment of airborne transmission of COVID-19 by asymptomatic individuals under different practical settings. J. Aerosol Sci. 2021;151 doi: 10.1016/j.jaerosci.2020.105661. arXiv:2007.03645. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 58.Tijani K., Ploix S., Haas B., Dugdale J., Ngo Q.D. 2016. Dynamic Bayesian networks to simulate occupant behaviours in office buildings related to indoor air quality. arXiv:1605.05966. [Google Scholar]
  • 59.Demirović E., Stuckey P.J., Bailey J., Chan J., Leckie C., Ramamohanarao K., Guns T. International Conference on Integration of Constraint Programming, Artificial Intelligence, and Operations Research. Springer; 2019. An investigation into prediction+ optimisation for the knapsack problem; pp. 241–257. [Google Scholar]
  • 60.Thiele J.C., Kurth W., Grimm V. Facilitating parameter estimation and sensitivity analysis of agent-based models: A cookbook using NetLogo and R. J. Artif. Soc. Soc. Simul. 2014;17(3):11. doi: 10.18564/JASSS.2503. [DOI] [Google Scholar]

Articles from Building and Environment are provided here courtesy of Elsevier

RESOURCES