Abstract

While most masks have a limited effect on personal protection, how effective are they for collective protection? How to enlighten the design of masks from the perspective of collective dynamics? In this paper, we assume three preferences in the population: (i) never wearing a mask; (ii) wearing a mask if and only if infected; (iii) always wearing a mask. We study the epidemic transmission in an open system within the Susceptible-Infected-Recovered (SIR) model framework. We use agent-based Monte Carlo simulation and mean-field differential equations to investigate the model, respectively. Ternary heat maps show that wearing masks is always beneficial in curbing the spread of the epidemic. Based on the model, we investigate the potential implications of different mask designs from the perspective of collective dynamics. The results show that strengthening the filterability of the mask from the face to the outside is more effective in most parameter spaces because it acts on individuals with both preferences (ii) and (iii). However, when the fraction of individuals always wearing a mask achieves a critical point, strengthening the filterability from outside to the face becomes more effective because of the emerging hidden reality that the infected individuals become too few to utilize the filterability from their face to outside fully.

1. Introduction

As the COVID-19 pandemic is ravaging the world, the protection of masks is a topic of interest. A news article published in Nature indicates that wearing a surgical mask leads to a drop in risk, while a drop for cloth [1]. The protective effect of masks on individuals may seem minimal, but it is also necessary to focus on the protective effect on collectives.

Since Kermack and McKendrick [2] proposed the Susceptible-Infected-Recovered (SIR) compartment model, various epidemic models have been developed considerably. In the classic SIR model, the population is divided into three compartments: (i) the susceptible ; (ii) the infected ; (iii) the recovered . Through human-to-human contact or self-healing, individuals flow from one compartment to another. A simple modified version is the SEIR model, which adds an exposed compartment to the SIR model. Recently, Barlow et al. [3, 4] derived the analytical solutions of the SIR [3] and the SEIR [4] models.

Researchers, in recent years, have explored additional factors and mechanisms to the classic epidemic models, such as isolation [5] and vaccination [611]. The dynamics of the epidemic transmission can also be applied to the information spreading, creating rumor spreading models [12, 13] or the public opinion dynamics model [14, 15]. From the perspective of verification and validation, the global stability of this class of nonlinear dynamical systems is widely studied [1621]. In particular, researchers have proved the global stability of endemic equilibria in various epidemic models in multigroup populations [1921], which are general cases of the model proposed in this work. A common approach to prove global stability is constructing a Lyapunov function (not limited to epidemiology but also widely applied to other complex systems such as evolutionary dynamics [22, 23]), which measures the system’s “energy.” If the energy continues to decay, then the system will stabilize at an equilibrium point.

When it comes to the protective effect of masks, several works [2428] are noticed to have emerged in the COVID-19 period after 2020. Li et al. [24] treated whether people wear masks or not as an evolutionary game. Gondim [25] considered masks in the SEIR model and validated the model by real-world data. Auger and Moussaoui [26] studied the confinement’s release threshold, taking the masks into account. Lasisi and Adeyemo [27] modeled the effect of wearing masks on COVID-19 infection dynamics. Han et al. [28] investigated the effect of three different preferences on wearing a mask.

Based on the existing literature, we find the previous works on masks have three shortcomings. First, when classifying the population into three categories with different preferences on wearing masks according to their assumptions, there is no work classifying them into three independent variables. They set only two variables as the fraction of two categories, and the remaining category’s fraction is one minus these two variables. This leads to an inability to ensure constant relative proportions of the other two categories when investigating the effect of the proportion of a certain category. Second, previous work did not carry out a complete analysis of the stability of their models. This makes verification and validation challenging. Third, only focusing on the effect of masks on epidemic spreading, there is no previous work considering providing applications of the epidemic models to the design of masks itself.

This paper builds a general epidemic model in an open system considering three different preferences on wearing masks. We start from a set of agent-based rules, and use mean-field analysis to verify and validate the model. In addition to filling in the gaps of previous work by treating three preferences as independent variables and considering global stability analysis, we explore [29, 30] the effect of different preferences towards wearing masks on the epidemic transmission through our model’s eyes. Considering that in the traditional perception, masks are designed at an individual level, we also try to reveal the design strategies of the masks by the collective dynamics based on our model.

2. Model

There is an epidemic disease spreading in the system. To prevent this epidemic, individuals hold different preferences for wearing masks. Concerning the infection state, we divide the population into (i) the susceptible ; (ii) the infected ; (iii) the recovered . In terms of different preferences towards wearing masks, we divide the population into (i) those who never wear masks (subscript 0); (ii) those who wear masks if and only if infected (subscript 1); (iii) those who always wear masks (subscript 2). Therefore, we have up to 9 categories according to different combinations of the classification of the two dimensions mentioned above.

Before describing evolutionary rules, we list the definition of our mathematical symbols in Table 1.

2.1. The Agent-Based Rules

Consider an open system containing initially agents (i.e., individuals). Within a Monte Carlo step, an agent is randomly selected, and the following parallel events occur.(1)If agent is susceptible, we again select an agent randomly. If agent is infected, then agent is infected with a probability . If agent wears a mask, then agent spares from infection with a probability . If agent wears a mask, then agent spares from infection with a probability .(2)If agent is infected, then it recovers with a probability (the average infection cycle is ). This does not happen at the same Monte Carlo step as the event (1).(3)Agent naturally dies with a probability (the average lifespan is ). We do not consider deaths due to the epidemic.

To ensure the population remains almost unchanged, we must let new agents enter the system. We set the following very first event in a Monte Carlo step, where the number (0) means it happens before the event (1).

(0) A new agent enters the system with a probability . The agent’s personal preference determines it never wears a mask with a probability , wears a mask if and only if infected with a probability , or always wears a mask with a probability , yielding . The preference of an agent on masks does not change over time.

For the population remaining almost unchanged with time, we let one time step contains Monte Carlo steps, such that each agent can be selected once on average. Therefore, the expected number of new agents entering the system within one time step is . The solution is (see Theorem 1).

2.2. The Mean-Field Equations

Performing mean-field analysis, we can approximate the agent-based dynamics into a set of differential equations. We do not dwell on the principles of mean-field analysis, but only explain some important points. (i) Within unit time, each agent is selected once on average, such that the number of events descending in a category is the population in the category. (ii) The probability of selecting an infected agent never wearing a mask from the population is , and , for selecting an infected agent holding the other two preferences, respectively. (iii) Thanks to the mask, the probability of sparing from infection is or , which means the probability of infection is or . (iv) If there are two layers of protection, they must be both breached for the infection to succeed.

We denote the state of the system by a vector , containing the population in nine categories. The mean-field differential equations depicting the agent-based dynamics iswhere

The system depicted by (1) is an extended version of the SIR model with a standard incidence rate.

3. Results and Discussion

In this section, we demonstrate the numerical results of the model from both Monte Carlo simulation and mean-field equations. The algorithm of the Monte Carlo simulation was described in Section 2.1. In the numerical simulation of mean-field equations, we use iteration , where .

We set three statistical measures: (i) the proportion of susceptible, ; (ii) the proportion of infected, ; (iii) the proportion of recovered, .

3.1. Impact of Masks on Epidemic Spreading

Figures 1 and 2 show the time evolution of , , and with different parameters and initial conditions.

From Figures 1 and 2, we find the proportions of different individuals always achieve stability after time evolution. The results of the Monte Carlo simulation fluctuate, while the results of mean-field equations are stable. They corroborate each other. In addition, we obverse two phenomena. First, the epidemic may either die out or exist at the end, dependent on different parameters. Second, with the same parameters and different initial conditions, the steady-states are the same.

Next, in the heat maps Figures 3 and 4, we present the steady-states of and as a ternary function of , , , respectively. The results of the Monte Carlo simulation are the average of the last 200 time steps . The results of mean-field equations are retrieved from the state when .

From Figures 3 and 4, we find that the results of Monte Carlo simulation and mean-field equations corroborate each other. In Figure 3, we observe that more individuals wearing masks reduce the proportion of infected individuals in the population. In particular, always wearing a mask has a better effect on reducing infected individuals. In Figure 4, we observe that more individuals wearing masks increases the proportion of susceptible individuals in the population. Different from increasing recovered individuals, it means that more people are spared from getting infected once. Also, always wearing a mask has a better effect on increasing susceptible individuals (Figure 4), making more individuals spared from being infected.

3.2. Potential Implication of Different Mask Designs

Based on our model, we can reveal the potential implication of different mask designs. When an infected individual wears a mask, it is the filterability from the face to the outside that provides protection (to the population), and when a susceptible individual wears a mask, the filterability from the outside to the face matters.

We show in Figures 5(a) and 5(b) the steady infected fraction as a binary function of the protective effect produced when an infected individual wears a mask and when a susceptible individual wears a mask .

We can observe that in both the Monte Carlo simulation (Figure 5(a)) and mean-field equations (Figure 5(b)), an increase in protective effect or leads to a decrease in the steady infected fraction . On this basis, we further ask which one in increasing or is more effective in reducing the infected fraction?

We show in Figure 5(c) the steady-state of and as a binary function of and . If , increasing the unit protective effect from the infected side is more conducive to reducing the infected fraction, and vice versa. Intuitively, increasing should have always been more conducive than increasing because the former acts on individuals with two preferences, (ii) those who wear masks if and only if infected and (iii) those who always wear masks. In contrast, the latter only acts on individuals with one preference, (iii) those who always wear masks. Increasing obviously has a broader scope of action than the increasing and covers the latter’s population. However, Figure 5(c) presents a different phenomenon. This indicates that we can provide the designs of the masks with different insights from the group dynamics. We will give this further analysis in Section 4.5.

4. Verification and Validation

This section verifies and validates the properties that we concluded in numerical results by analyzing them at a mathematical level.

4.1. The Total Population Dynamics

The total population dynamics follows Theorem 1.

Theorem 1. For , we have .

Proof. According to (1),Solving (3), we getFrom (4), we complete the proof that for . We give this significant value a symbol ,In the same way, we can also prove that , , for .
Theorem 1 gives us another important insight: when discussing the steady-state, we can substitute for in the system of (1).

4.2. The Basic Reproduction Number

The basic reproduction number is one of the most important measures in epidemiology. It can assist in analyzing both the stability of the system and the effect of parameters on the epidemic transmission.

We let and solve for the epidemic-free equilibrium, denoted by ,

Then, we can follow the meWthod in [31] to find the basic reproduction number (see Appendix A):

The basic reproduction number reveals the following theorem.

Theorem 2. The epidemic-free equilibrium is locally asymptotically stable if , and the epidemic-free equilibrium is not stable if .
(See [31] for proof).
Substituting the parameters in Figure 1 into Equation (A.5), we can calculate , which means the epidemic-free equilibrium is stable, consistent with that shown in Figure 1. Similarly, substituting parameters in Figure 2 produces , such that the epidemic-free equilibrium is not stable, which is also consistent with that shown in Figure 2.

4.3. Epidemic-Free and Endemic Equilibria

We separate into

From (1), we can assert that the steady-state of can determine the steady-state of , and does not affect the evolution of . Therefore, the stability of is equivalent to (i) the stability of and (ii) the stability of when achieves stability.

We first prove the global stability of the epidemic-free equilibrium by constructing the Lyapunov function.

Theorem 3. The epidemic-free equilibrium is global asymptotically stable in if .

Proof. Consider the Lyapunov function in ,We can conclude that, (i) when , (ii) when . Therefore, is positive definite in the neighborhood of . Secondly, we have (see Appendix B),when . Note that can be confirmed by Equation (B.1) when . Therefore, is negative semidefinite in the neighborhood of . Hence, according to Lasalle’s Invariance Principle [32], is globally asymptotically stable in . Given stable, it is easy to prove the global asymptotic stability of in by constructing Lyapunov function . Therefore, is global asymptotically stable in .
The equation has two solutions. We denote the second solution by . The infected population is nonzero; thus, we call it the endemic equilibrium. This equilibrium corresponds to the results shown in Figure 2. It is not easy to express it analytically, but we can still show its existence condition.

Theorem 4. The endemic equilibrium exists and is unique in if .

Proof. First, we show the relationship between the existence and uniqueness of positive , (, , ) and (see Appendix C). Then, the existence and uniqueness of , , can be naturally confirmed, hence the existence and uniqueness of .
Theorem 3 validates that in Figure 1, the steady-state with the same parameters is independent of the initial conditions. Theorem 4 is consistent with Figure 2.

4.4. Robustness Analysis for the Effect of Wearing Masks

The basic reproduction number measures the average number of individuals that an infected individual can transmit the epidemic. The higher the basic reproduction number, the more severe the epidemic.

Analyzing Equation (A.5), we can see that the coefficient before is 1, and for , and for . Since , , we have . Considering the constraints: , , , , we know the following facts. (i) takes the minimum when , , . (ii) takes the maximum when , , . Therefore, everyone always wearing a mask minimizes the epidemic severity, while no one wearing masks maximizes the epidemic severity.

4.5. Application to Mask Design

The basic reproduction number can play the same role as the infected fraction in measuring the outbreak severity. From Equation (A.5), we see that the coefficient acts on both and while only acts on , which means the mask protection from the infected side acts on two population categories and that from the susceptible side acts on only one. This brings us a misleading intuition that increasing the protective effect from the infected side is always more conducive. However, we can reveal a hidden different reality by group dynamics.

We write the partial derivatives of with respect to and in (11) and (12).

Increasing the protective effect from the infected side is better than that of the susceptible one meansorand increasing the protective effect from the susceptible side is better than that of the infected one meansor

We can discuss the parameter space in two cases. First, if , then (13) always holds. Second, if , then (15) does not always hold. This suggests that the “intuitive” phenomena (increasing is more effective) occupy more parameter space, which can be verified by Figure 5(c).

For the latter case, , we can transform (16) into . This indicates that if the fraction of individuals always wearing a mask exceeds a critical point, , then, increasing is more effective than increasing , even if can act on both category and . We can interpret this result in daily language by taking into account the fraction of existing infected individuals. As we showed in Section 4.4, decreases (i.e., infected individuals increasing) with an increase in . In this way, the critical point of is rational to exist, over which the infected individuals are too few to exert the protective effect that the mask produces on their side.

5. Conclusion

Although most masks have little to no effect on personal protection [1], we are still interested in the protective effects of masks on a population. We proposed a general epidemic model in the classic SIR framework considering three different preferences towards wearing masks. Some individuals never wear masks; others wear masks if and only if infected, and some always wear masks. We started from agent-based rules and used a set of mean-field differential equations to approximate the model. The results of the two corroborate each other. In this work, the three preferences are independent of each other.

The first aspect is the effect of masks on epidemics. The ternary heat maps revealed that wearing masks can reduce the number of infected individuals and increase the number of susceptible individuals. We provided the global stability analysis of the results and showed the robustness of the effectiveness of masks by analyzing the basic reproduction number of the epidemic. We concluded that wearing masks are beneficial to the control of epidemics.

The second aspect is the application of the epidemic model to mask design. The protective effect from the infected side can be understood as the filterability of the mask from the face to the outside against viruses, while the protective effect to the susceptible side can be interpreted as the filterability from the outside to the face. This can be influenced by the material and design of the mask [33], and we analyzed which side strengthening would provide better results. We showed that strengthening the infected side is more effective in most parameter spaces. This is intuitive since strengthening the infected side acts on two categories of individuals (those wearing masks only if infected and those always wearing masks), while strengthening the susceptible side acts on only one category (those always wearing masks). However, there is a hidden reality from the perspective of group dynamics. We found that once the fraction of individuals always wearing masks exceeds a critical point, , then, strengthening the susceptible side becomes more effective. This is because the preference of always wearing masks reduces the infected fraction in the population, so that the infected individuals are too few to exert the protective effect of masks produced on their side. In the daily language, both the cases above seem to make sense. However, noticing the latter case from the group perspective and further giving the mask design strategies according to parameter spaces are not straightforward without the help of system dynamics.

Real-world situations may have more complexity and different insights. For instance, the underlying assumptions—people’s preferences do not change with time, ignores human subjectivity, which has the potential to reveal more insights. In fact, people can change their preference on whether to wear masks by either estimating the epidemic severity (evolutionary games) or being affected by the propaganda of the effectiveness of masks (opinion dynamics). In this way, future work may consider time-dependent preferences, and apply any modified model to mask design.

Appendix

A. Finding the Basic Reproduction Number

Let us decompose the infected compartments in Equation (1) as , where

Solve for the Jacobian matrix of and at , denoted by and ,

Then, the spectral radius (i.e., maximum eigenvalue) of is the basic reproduction number ,

Please see [31] for more information on how to find the basic reproduction number.

B. Proof of When

In Equation (B.1), we used , , .

We can further deflate Equation (B.1),which completes the proof.

C. The Existence and Uniqueness of When

Using the equations , , in to obtain as a function of , . Then, substituting the results into the equations , , ,

In Equation (C.1), the authors multiply the first equation by , the second equation by , and the third equation by :

Summing up the three equations in Equation (C.2) and using (see Equation (4)), the authors have

Therefore, to ensure , which is a necessary condition for , , , the authors have . However, the authors have not yet proved that is a sufficient condition for , , .

According to Equation (C.2), the authors can ensure , , if the authors can confirm . We will try to illustrate the opposite case, , cannot happen. Let us further write Equation (C.2) as

Then, it can be judged that and have the same sign because the denominators are equal and the numerators are both positive. The case , is possible only if their denominators . In this case, the authors have , which means as well. Then, the authors have because , , , which is inconsistent with our previous conclusion. Therefore, , must hold.

The remaining question is the sign of . According to the second equation in Equation (1), the authors have

Since the authors have , the authors know as well. The sign of can be easily judged: if , then so that never happens if the system starts evolving from a meaningful initial state where . Therefore, and must hold as well. Then, is ensured by the third equation in Equation (C.4).

Therefore, is a sufficient and necessary condition for , , .

To check if the solution of , , and really exists, the authors can study the existence of . Then, the solution of , , and can be naturally obtained by Equation (C.4). For convenience, the authors denote . Multiplying the three equations of , , in Equation (C.4) by 1, , , and adding them together, the authors getwhich can be simplified as follows when .where

We can see that always holds. The signs of and , however, depend on . Then, the simple use of Vieta’s theorem can judge the existence of . When , the authors have and ; therefore, both roots are negative. When , the authors have ; therefore, one root is positive and the other is negative. The positive root is the unique solution of and . Then, Equation (C.4) can provide the unique solution of , , and (note that the negative root of cannot lead to positive , , and because the authors have previously shown , , and if ).

Data Availability

Data sharing is not applicable to this article as no datasets were generated or analyzed during the current study.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

The publication of this article was funded in part by the George Mason University Libraries Open Access Publishing Fund.