1 Introduction

Occasionally, an infectious disease can spread to such an extent, that it significantly affects a vast number of people and indeed the majority of the population. Such a scenario is referred to as an epidemic1. It becomes pandemic in nature when it affects multiple countries, perhaps at the global level. The impact of an epidemic can reach the height of devastation, especially if the pathogen also causes asymptomatic carriers2,3. Obviously, such asymptomatic infections present a stark contrast to symptomatic infections —wherein the symptoms of infections are clearly manifest. Henceforth, we will refer to the former as class \(\mathcal A\) infections and the latter as class \(\mathcal M\) infections. An infection with asymptomatic phenotypes presents remarkable consequences. It severely hinders the containment of infection and the management of the infected. These unfortunate effects have been in full display during the recent Covid-19 pandemic4 as well as the “Spanish influenza”5. Revolutionary advances in medicine have been achieved between these two catastrophes separated by a century. And yet, little can evidently be done to contain the spread of such pandemics—when in full rage.

Epidemic spreading has been modelled extensively through SIRD dynamics on networks6,7,8,9. It has also been studied independently through game-theoretic approaches, many of which involve networks10,11. Herein, we adopt a game-theoretic approach towards epidemic spreading on heterogeneous networks6,10,12,13,14,15. There are not many studies addressing the distinction between class \(\mathcal M\) and class \(\mathcal A\) type infections in existing literature16,17. One of our prime objectives is to clearly demonstrate the effects arising from differences in asymptomatic and symptomatic phenotype on epidemic modeling.

Furthermore, in existing literature on game theoretic modeling of epidemic spreading on networks \(\mathcal S\), \(\mathcal I\), \(\mathcal R\) and \(\mathcal D\) have been predominantly considered as strategic options10. However, herein we consider these as states rather than strategies. Conversion of an individual’s condition from susceptible to infected during epidemic spreading is not always a choice. Therefore, \(\mathcal S\), \(\mathcal I\), \(\mathcal R\) and \(\mathcal D\) are perhaps more aptly considered as states of an individual. On the other hand, individuals may either cooperate or defect in being precautious. Such proactiveness of individuals is more of a choice and could be considered as a strategy rather than a state. This rather important biological aspect has not been accorded sufficient attention in studies on epidemic spreading involving game-theoretic approaches on networks and SIRD dynamics.

Generally, to prevent the spread of any transmissible disease, mass administration of vaccines—if available—is the most desirable option. Significant research has been conducted to scrutinize the vaccination process and its effect on the spread of an epidemic13,18. However, in the absence of vaccines, asymptomatically infected individuals (especially in class \(\mathcal A\) diseases), are likely to be unaware of their own condition. They can unwittingly act as spreaders or even as super-spreaders if they do not resort to proper precautionary measures19. As is well-known, precautionary measures in the form of frequently washing one’s hands, wearing masks, and social distancing are some effective strategies to limit the spread of many contagious diseases. In more extreme cases, lockdown may be required, which obviously presents significant economic and social costs.

Susceptible–infected–recovered–deceased or SIRD dynamics specifies that every member of the population would be in one of the following four states, at any given instant of time, t. Borrowing from the notions of set theory, we can pool individuals in a similar state as belonging to the same set. Sets representing these states are susceptible, \(\mathcal{S}(t)\), infected, \(\mathcal{I}(t)\), recovered, \(\mathcal{R}(t)\), and deceased, \(\mathcal{D}(t)\) and would also be frequently referred to hereinafter as \(\mathcal{S}\), \(\mathcal{I}\), \(\mathcal{R}\), and \(\mathcal{D}\) respectively20. If \({\mathscr {E}}\) is the universal set denoting the whole population, then obviously \({\mathscr {E}} = \mathcal{I} \cup \mathcal{S} \cup \mathcal{R} \cup \mathcal{D}\).

Irrespective of their state, susceptible individuals and infected yet undetected individuals can choose from either of the following two strategies when facing an epidemic. These individuals can either adopt precautionary measures and act responsibly or they can remain careless and spread the disease. Any proactive person would obviously need to pay a certain “cost” in order to sustain these measures and act responsibly. In addition, mass testing would surely go a long way in identifying infected individuals. Mass testing ratio, \(\tau\), denotes the fraction of the entire population, which has been tested for a given disease. Its importance in class \(\mathcal A\) diseases especially can hardly be overemphasised. A prime motivation of this work is to examine the manner in which precautionary measures and mass testing can affect the spread of an epidemic.

In any infection, the infected individuals definitely possess the capacity to be quite contagious during the incubation period. This is true for both class \(\mathcal A\) and class \(\mathcal M\) diseases. Generally, most diseases are neither purely symptomatic nor purely asymptomatic. However, many diseases are predominantly symptomatic or predominantly asymptomatic. During the course of an epidemic some infected individuals may exhibit symptoms, while many others may not. The manifestation of symptoms may depend on the nature and severity of the disease, the immunity of the infected individuals, and sundry other factors. Herein, we distinguish between class \(\mathcal M\) and class \(\mathcal A\) diseases by using the parameter, \(\sigma\), which is the Symptom Manifestation Ratio. Of all infected individuals, \(\sigma\) is the fraction of infected individuals who clearly demonstrate the symptoms of a given disease. \(\sigma =0\) represents the scenario, where all infected individuals are asymptomatic. On the other hand, \(\sigma =1\) signifies that all infected individuals clearly exhibit symptoms of a given disease. Generally, \(0< \sigma < 1\). The estimate of \(\sigma\) for a given disease can be obtained from empirical data.

The decisive role of topology is well known in networks in fields as diverse as infrastructure, image processing, optogenetics and phage-bacteria interactions21,22,23,24,25,26,27. The dependence of the outcome of games played on heterogeneous structures depends non-trivially on the underlying topology10,27,28,29. To understand the role of the underlying topology on the dynamics, we consider various population structures in our simulations. We have predominately studied the dynamics on Barabási–Albert (BA) networks , which is known to emulate many real-world scenarios. In addition, we have also studied the dynamics on Watts–Strogatz small-world (SW) and Erdös–Rényi (ER) models.

2 Model

Our model is quite general and addresses both symptomatic (class \(\mathcal M\)) and asymptomatic (class \(\mathcal A\)) diseases. Contagious diseases can spread through several different mechanisms. These could range from being in the mere proximity of an infected individual or coming in contact with contaminated items used or even touched by the individual. It could also spread through the bodily secretions of an infected person, through sexual or other physical contact or through various vectors.

Proactive individuals will choose precautionary measures of their own accord. Examples of such precautionary measures are the maintenance of social distance, wearing masks, and frequently washing hands. These measures would surely lower the rate of the infection spreading. However, adopting these measures comes at the cost of a varying degree of restriction in one’s everyday life. On the other hand, a careless individual will not choose adequate or proper protection against infection. Such individuals are not merely a danger to many others but even to themselves. Their uncooperative and carefree behaviour is likely to increase the rate of spread of infection.

Thus, we observe that broadly two strategies are possible—cooperation and defection30. Proactive individuals are cooperators C, who act towards preventing the spread of infection by taking proper precaution. However, this comes at a cost, c. If an individual’s neighbor happens to be a cooperator, it automatically obtains a benefit b. On the other hand, careless individuals can be considered as defectors D. They will not spend any cost and therefore, for such defectors, \(c=0\). In spite of their callous behaviour–these defectors still enjoy benefit, b, due to the accommodating behaviour of cooperators in the population. Since this benefit comes at no cost, these defectors effectively act like free-riders in a population. When two cooperators, C, interact—they will be mutually benefited by each other’s proactive actions. However, this benefit has been arrived at by expending a cost c. Therefore, the actual reward enjoyed by these cooperators is \((b-c)\).

The interaction between two defectors, D, will not lead to any benefit or cost, for either of them. Thus, this will result in zero payoffs. For the interaction between a cooperator and a defector; D will obtain temptation amounting to b, while C will derive the sucker’s payoff equaling \(-c\). True to their nature, defectors would try to avoid paying any cost. Table 1 displays the payoff matrix incorporating all the above interactions modeled on the Prisoner’s Dilemma.

Table 1: Payoff matrix, indicating the payoffs of both the row and the column players.

Asymptomatic individuals in class \(\mathcal A\) diseases are rather dangerous because they do not display clear symptoms of infection and unwittingly act as spreaders or even super-spreaders. Perhaps the only way to identify such infected individuals is through mass testing. Mass testing allows the identification of both symptomatic and asymptomatic infected individuals—even the mild ones. The infected individuals who have been detected by mass testing, are kept in quarantine and denoted by \(\mathcal {I_Q}\). Individuals in \(\mathcal {I_Q}\) do not take part in the game anymore. For simplicity and without the loss of generalisation, we presume here that they can not harm members of the susceptible population anymore. They can either recover, which depends on recovery rate, \(\rho\), or die depending on the death rate, \(\delta\). On the other hand, individuals who are infected but remain undetected, \(\mathcal {I_U}\), cause further infection in the population. \(\mathcal {I_U}\) can be of two types, \(\mathcal{I}_C\) and \(\mathcal{I}_D\). Without medical intervention, \(\mathcal {I_U}\) individuals can also recover at a “self-recovery rate”, \(\rho _s\). All the states and the possible strategies associated with each state are listed in Table 2.

Table 2: Different strategies associated with various states.

We consider that the rate of infection spread will depend on the strategies of individuals. In a population, \(\mathcal S\) and \(\mathcal {I_U}\) individuals are likely to interact with each other causing the spread of infection. Both \(\mathcal S\) and \(\mathcal {I_U}\) individuals can adopt either cooperation or defection as their strategy. \(\mathcal{S}_C\) and \(\mathcal{I}_C\) denote susceptible cooperators and infected cooperators respectively. \(\mathcal{S}_C\) and \(\mathcal{I}_C\) are both proactive and resort to appropriate precaution while interacting with others. On the other hand, \(\mathcal{S}_D\) and \(\mathcal{I}_D\) denote susceptible defectors and infected defectors respectively. Cost, c, reflects the extent of precaution undertaken by an individual while the benefit obtained from another proactive individual’s precautionary actions is reflected in b, as aforementioned. The fraction c/b indicates the extent of precaution undertaken by an individual, where obviously \(b>c\). We can also define risk as \(r=(1-\frac{c}{b})\). \(\mathcal C\) will resort to precaution at some cost to lower the risk. However, \(c=0\) for \(\mathcal D\), implying \(r=1\), i.e., high risk. Let \(r_i\) and \(r_j\) denote the risk related to two interacting individuals i and j. If one of these individuals is infected and other one is susceptible, the probability of the susceptible individual getting infected due to the interaction is \(\mu =(r_i \times r_j)\). This indicates that \(\mu\) of \(\mathcal{S}_C\) due to interaction with \(\mathcal{I}_C\) is \(\mu _{C,C}=(1-\frac{c}{b})(1-\frac{c}{b}) = (1-\frac{c}{b})^2\). Expectedly this is low because both of them have resorted to adequate precaution. However, the probability that an \(\mathcal{S}_D\) individual gets infected due to an interaction with an \(\mathcal{I}_D\) individual is \(\mu _{D,D}=1\). Again, this is expectedly high because none of the individuals have resorted to due precaution. Similarly, \(\mu _{C,D}=\mu _{D,C}=(1-\frac{c}{b})\). Let us recall that individuals in the susceptible and infected state can employ either of the two strategies—cooperation or defection. At any time instant, if \(\mathcal{S}_C\) and \(\mathcal{I}_C\) denote the susceptible and infected cooperators respectively, then \(\mathcal{S}_C \cup \mathcal{I}_C=C\). Similarly, if \(\mathcal{S}_D\) and \(\mathcal{I}_D\) denote the susceptible and infected defectors, then \(\mathcal{S}_D \cup \mathcal{I}_D=D\). If \(\mathcal{I}_C\) and \(\mathcal{I}_D\) denote undetected individuals, then \(\mathcal{I}_C \cup \mathcal{I}_D=\mathcal {I_U}\). Obviously, \(\mathcal{S} = \mathcal{S}_C \cup \mathcal{S}_D\) and \(\mathcal{I} = \mathcal{I_U} \cup \mathcal{I_Q}\).

We have already discussed in detail about the importance of SMR, \(\sigma\), in Sect. 1. For class \(\mathcal M\) diseases, we have considered \(\sigma =0.9\), which is rather high. On the other hand, \(\sigma =0.02\), has been considered for class \(\mathcal A\) diseases31.

3 Algorithm

In our simulations, a heterogeneous population structure has been considered in the form of a Barabási–Albert (BA) network, with average degree \(\langle k \rangle\). It is well-known that BA networks possess a power-law degree distribution. Simultaneously, we have also considered small-world and random networks in the form of Watts–Strogatz small-world (SW) and Erdös–Rényi (ER) models. Each time step during both transient time and counting time sequentially incorporates the events of: (a) payoff determination, (b) strategy upgradation, and (c) state upgradation. Initially every individual in the population is susceptible. At the start of an epidemic session, some of these individuals get infected randomly. Thus now, we have two states—susceptible and infected. The population has been divided into cooperators, C, and defectors, D. If \(\mathcal{I}_i\) represents the set of initially infected individuals, \(\mathcal{I}_i\) remains undetected i.e., \(\mathcal{I_U}=\mathcal{I}_i\) and \(\mathcal{I_Q}=\emptyset\). Thus, on the basis of both strategy and state, there exist four types of individuals, namely, \(\mathcal{S}_C\), \(\mathcal{S}_D\), \(\mathcal{I}_C\), and \(\mathcal{I}_D\). Initially, prisoner’s dilemma is played between C and D, irrespective of the state they belong to. They will accumulate their payoffs by interacting with each other. It is rather superfluous to consider any strategy for recovered and dead individuals and they do not take part in the game. After determination of payoffs, all cooperators and defectors randomly select a neighbor for strategy upgradation. Following Fermi’s rule of strategy upgradation – an individual, i, will adopt the strategy of a randomly chosen neighbor, j, with a probability \(\frac{1}{1+exp[-(\Pi _j-\Pi _i)]}\). \(\Pi _j\) and \(\Pi _i\) denote the total payoffs accumulated by j and i respectively32,33. Strong selection has been considered here.

After strategy upgradation, state upgradation takes place. In the previous step, \(\mathcal S\) and \(\mathcal {I_U}\) individuals decide to be either C or D. But in this step, infection will spread in the population. It has been considered that the infection can spread through contact. Thus, susceptible neighbors of an infected individual are vulnerable. But depending on the strategy of both the interacting individuals i.e., C or D, the probability of spreading of infection will be different.

While upgrading its state, \(\mathcal S\) will randomly interact with one of its neighbors. If that randomly chosen neighbor is \(\mathcal {I_U}\), \(\mathcal S\) may get infected with a probability, \(\mu\). The newly infected individuals may or may not manifest the symptoms. This would depend on the symptom manifestation rate of the infection, \(\sigma\). The symptomatic individuals would be quarantined and they would not interact with the rest of the population anymore. As mentioned earlier, these individuals are identified as \(\mathcal {I_Q}\). The asymptomatic individuals will remain in population and would cause further infection.

All individuals would hence undergo mass testing with probability, \(\tau\). Depending on \(\tau\), some infected individuals can also be identified as \(\mathcal {I_Q}\). The remaining \(\mathcal {I_U}\) would remain in the population. Since they are unaware of their own situation they will unwittingly infect others. They may undergo self-recovery depending on \(\rho _s\) or die without getting any medical help, depending on the value of \(\delta\). On the other hand, \(\mathcal {I_Q}\) individuals may either recover, depending on the value of \(\rho\), or die, depending on the value of \(\delta\). Here for simplicity, the value of \(\delta\) of \(\mathcal {I_Q}\) and \(\mathcal {I_U}\) has been considered to be the same. In our simulations, reinfection of recovered individuals has not been considered.

In all simulations, a transient time of \(10^4\) generations is considered. After this transient time, if \(\mathcal{N}_{\mathcal{S}_C}\) be the number of susceptible cooperators, \(f_C = \mathcal{N}_{\mathcal{S}_C}/\mathcal{N}\), is calculated over a counting time of \(10^3\) generations. Every network has \(\mathcal{N}\) nodes and the average degree is denoted by \(\langle k \rangle\). The overall simulations have been performed over \(E_\mathcal{N}\) networks. In all simulations, a definite fraction of nodes is initially assigned to be cooperators, at random. If \(f_{C_i}\) denotes the initial fraction of cooperators in the population, then \(f_{D_i}=(1-f_{C_i})\) denotes the initial fraction of defectors. Apart from strategies, a definite number of nodes, i.e. individuals, are also randomly chosen to get infected. We denote the initial number of infected and susceptible individuals by \(\mathcal{N}_{\mathcal{I}_i}\) and \(\mathcal{N}_{\mathcal{S}_i}\) respectively. Obviously, \((\mathcal{N}_{\mathcal{S}_i} +\mathcal{N}_{\mathcal{I}_i})=\mathcal{N}\) denotes the total number of individuals in the population. The fraction of \(\mathcal{I}_i\) and \(\mathcal{S}_i\) is denoted by \(f_{\mathcal{I}_i}=\mathcal{N}_{\mathcal{I}_i}/\mathcal{N}\) and \(f_{\mathcal{S}_i}=\mathcal{N}_{\mathcal{S}_i}/\mathcal{N}\) respectively. Here, \(f_{\mathcal{I}_i}=(1-f_{\mathcal{S}_i})\). At the very onset of the epidemic, all initially infected individuals would be undetected. Hence, initially \(\mathcal{N}_{\mathcal{I}_{\mathcal{U}}}=\mathcal{N}_{\mathcal{I}_i}\) and \(\mathcal{N}_{\mathcal{I}_{\mathcal{Q}}}=0\). Here, \(\mathcal{N}_{\mathcal{I}_{\mathcal{U}}}\) and \(\mathcal{N}_{\mathcal{I}_{\mathcal{Q}}}\) denote the number of undetected and detected individuals respectively.

4 Results

Figure 1:
figure 1

\(f_C = {\mathcal{S}_C}/\mathcal{N}\), versus cost, c. The fraction of population, which was initially infected is \(f_{\mathcal{I}_i}=0\). Here, the initial fraction of cooperators, \(f_{C_i}=0.5\). Results are for a network of \(\mathcal{N}=1024\) nodes, \(\langle k \rangle =\) 4, 6, 8 and \(E_\mathcal{N}=580\) networks. Evidently, in the absence of infection, all individuals are susceptible, i.e., either \(\mathcal{S}_C\) or \(\mathcal{S}_D\). We observe that cooperation is maintained at lower values of c, which is compromised with increasing c. Cooperation seems to be maintained relatively better for graphs with lower \(\langle k \rangle\). The standard error is smaller than the size of the data points.

Prisoner’s Dilemma game is played initially in the absence of any infection, i.e., between \(\mathcal{S}_C\) and \(\mathcal{S}_D\) only, which implies \(f_{\mathcal{S}_i}=1\) and \(f_{\mathcal{I}_i}=0\). In that case, \(f_C = \mathcal{N}_{\mathcal{S}_C}/\mathcal{N}\), depends only on c. \(\mathcal{S}_C\) dominates at lower values of c but decreases at higher values of c, as shown in Fig. 1. This implies that if c increases, individuals would be quite unwilling to adopt precautionary measures and would try to defect.

4.1 Asymptomatic Infections: Class \(\mathcal A\)

First, we have considered class \(\mathcal A\), where the symptom manifestation ratio, \(\sigma\), is very low. There are various diseases where manifestation of symptoms can not often be observed clearly, such as infections associated with Cytomegalovirus, Rhinoviruses, Salmonella or Ebola34,35,36 infections. In the Zika virus infection, symptoms of clinical illness were absent in more than 80% of infected patients. These individuals played a crucial role in the initial transmission of the Zika virus37. Similarly, the asymptomatic pine trees, harbouring B. xylophilus nematodes play a vital role in the spreading of pine wilt epidemic3. The ongoing pandemic due to COVID-19 virus is also associated with a high number of asymptomatic carriers38. Herein, we have considered that initially \(2\%\) individuals have been infected. Figure 2 is for the asymptomatic case. It can be observed that \(f_C\) decreases with the increase of c. Hence, it can be concluded that individuals in the population will only cooperate for low value of c. But due to the presence of infection, low c implies higher risk.

Figure 2:
figure 2

\(f_C\) versus c for a predominantly asymptomatic infection with \(\sigma =0.02\). Results are for a \(\mathcal{N}=1024\) nodes and b \(\mathcal{N}=2048\) nodes. Other parameters are, \(f_{C_i}=0.5\), \(f_{\mathcal{I}_i}=0.02\), \(\rho =0.5\), \(\rho _s=0.2\), \(\tau = 0.3\), \(\delta =0.05\), \(\langle k \rangle =\) 4, 6, 8 and \(E_\mathcal{N}=580\) networks. Cooperation is witnessed to some extent in a limited range of c. In asymptomatic (class \(\mathcal A\)) diseases, lower c indicates a higher risk of getting infected. On the other hand, a higher cost is naturally unaffordable to most individuals. The standard error is smaller than the size of the data points.

Hence, alongside defectors, these cooperators are also likely to get infected at lower values of c. However, if we increase c, better protection ensures higher \(f_C\). For a BA network with \(\langle k \rangle =4\), we observe that \(f_C\) is higher when \(c=[0.25,0.35]\). Though a higher cost implies lower risk, it also inhibits the lifestyle of \(\mathcal{S}_C\) individuals. Naturally, cooperation would be hindered at higher values of c. Hence, with increasing costs, \(\mathcal{S}_C\) individuals tend to becomes careless, implying that \(\mathcal{S}_D\) individuals would be likely to dominate. Also \(\mathcal{S}_D\) individuals would get infected at a higher rate due to the absence of proper precaution on their part. In the case of high \(\langle k \rangle\) graphs, as shown in Fig. 2, it has been observed the peak shifts towards the lower value of c. Generally, the maintenance of cooperation is lower when \(\langle k \rangle\) of the graph is high.

Figure 3:
figure 3

\(f_C\) versus c, for a predominantly symptomatic disease with \(\sigma =0.9\). Results are for a \(\mathcal{N}=1024\) nodes and b \(\mathcal{N}=2048\) nodes. Other parameters are, \(f_{C_i}=0.5\), \(f_{\mathcal{I}_i}=0.02\), \(\rho =0.5\), \(\rho _s=0.2\), \(\tau = 0.3\), \(\delta =0.05\), \(\langle k \rangle =\) 4, 6, 8 and \(E_\mathcal{N}=580\) networks. Increasing costs lead to decreasing cooperation. The standard error is smaller than the size of the data points.

4.2 Symptomatic Infections: Class \(\mathcal M\)

Class \(\mathcal M\) diseases obviously have a high symptom manifestation ratio associated with them. Infections like Vibrio cholerae and Poxviruses are examples of such symptomatic diseases39. This scenario has been examined in Fig. 3. Here too, \(f_C\) is observed to decrease with an increase of c at different values of \(\langle k \rangle\).

Figure 4:
figure 4

\(f_C\) versus \(\tau\) at various values of c as quantified for: a \(\sigma = 0.02\) (class \(\mathcal A\)), and b \(\sigma = 0.9\) (class \(\mathcal M\)). Red represents maintenance of cooperation and blue it’s absence. For class \(\mathcal A\) diseases, cooperation depends on both \(\tau\) and c. Higher value of \(\tau\) can lead to more cooperation. Cooperation will not be maintained well enough at lower values of \(\tau\). However, for class \(\mathcal M\) diseases, maintenance of cooperation depends more on c rather than \(\tau\). This indicates that mass testing plays an important role for the survival of cooperators in the case of class \(\mathcal A\) diseases. Results are for \(f_{\mathcal{C}_i}=0.5\), \(\delta =0.05\), \(f_{\mathcal{I}_i}=0.02\), \(\rho =0.5\), \(\rho _s=0.2\), \(\mathcal{N}=1024\), \(\langle k \rangle =4\), and \(E_\mathcal{N}=100\).

4.3 Comparing Symptomatic and Asymptomatic Infection

We study the fraction of cooperators, \(f_C\), in both symptomatic and asymptomatic infections at \(f_{C_i}=0.5\) in Fig. 4 for a range of values of cost, c. In order to find how \(f_C\) varies with the initial fraction of cooperators we measure \(f_C\) for \(f_{C_i}=0.7\) in Fig. 5a and \(f_{C_i}=0.3\) in Fig. 5b. We observe that the value of the initial fraction of cooperators does affect the final fraction of proactive individuals to an extent.

Figure 5:
figure 5

\(f_C\) versus c for predominantly symptomatic (class \(\mathcal{M}\), \(\sigma =0.9\)) and predominantly asymptomatic (class \(\mathcal{A}\), \(\sigma =0.02\)) diseases. We study the effect of the initial fraction of cooperators in the population, \(f_{C_i}\), on the final fraction, \(f_C\), for: a \(f_{C_i}=0.7\) and b \(f_{C_i}=0.3\) in both class \(\mathcal A\) and class \(\mathcal M\). Results are for \(f_{\mathcal{I}_i}=0.02\), \(\rho =0.5\), \(\rho _s=0.2\), \(\tau = 0.3\), \(\delta =0.05\), \(\mathcal{N}=1024\) nodes, \(\langle k \rangle =\) 4 and \(E_\mathcal{N}=500\) networks. The standard error is smaller than the size of the data points.

From Fig. 4 it is also evident that both mass testing and cost due to precautionary measures have a significant impact on \(f_C\). At higher values of c, cooperation will not be maintained in the population. But at lower values of c, the maintenance of cooperation would depend on the value of \(\tau\). In class \(\mathcal A\) diseases, it is difficult to maintain cooperation at lower values of \(\tau\). This can be intuitively inferred from the fact that it is rather difficult to identify infected individuals without mass testing. Therefore, higher values of \(\tau\) can lead to relatively higher cooperation. On the other hand, \(\tau\) does not really have a significant impact in class \(\mathcal M\) diseases.

Therefore, it is worth noting that when the mass testing ratio, \(\tau\), is low, an asymptomatic disease is likely to infect susceptible individuals more. Naturally, if the infected individuals are not identified early on, then every asymptomatic disease possess the potential to generate a pandemic. On the other hand, individuals belonging to \(I_U\) in class \(\mathcal M\) diseases, can be identified more easily via clearly manifest symptoms.

Figure 6:
figure 6

\(f_C\) versus \(f_{\mathcal{I}_i}\), as quantified for: a \(\sigma = 0.02\) (class \(\mathcal A\)), and b \(\sigma = 0.9\) (class \(\mathcal M\)). Results are for \(c=0.3\), \(f_{C_i}=0.5\), \(\rho =0.5\), \(\rho _s=0.2\), \(\tau = 0.3\), \(\delta =0.05\), \(\mathcal{N}=1024\), \(\langle k \rangle =\) 4, 6, 8 and \(E_\mathcal{N}=500\). The fraction of proactive individuals actually decreases with the increase of \(\mathcal{I}_i\) at lower \(\langle k \rangle\). However, cooperation increases slightly with the increase in \(\mathcal{I}_i\) at higher \(\langle k \rangle\). The standard error is smaller than the size of the data points.

The initial fraction of infected individuals, \(f_{\mathcal{I}_i}\), reflects the scenario during the initial outbreak of an epidemic. We explore the behaviour of \(f_C\) with respect to \(f_{\mathcal{I}_i}\)40. A fraction of the population, \(f_{\mathcal{I}_i}\), is infected right at the onset of the epidemic, before consciousness has taken root in the general population. Consciousness is expected to increase subsequently and the general populace would become aware and responsible. Figure 6 implies that the final fraction of proactive individuals would decrease in the population at lower \(\langle k \rangle\). However, at higher \(\langle k \rangle\), the scenario is not quite similar. In this regime, the final fraction of responsible people would increase slightly in the population. Notably, the broad behaviour is the same for both class \(\mathcal M\) and class \(\mathcal A\) epidemics.

Figure 7:
figure 7

\(f_C\) versus c for predominantly symptomatic (class \(\mathcal{M}\), \(\sigma =0.9\)) and predominantly asymptomatic (class \(\mathcal{A}\), \(\sigma =0.02\)) diseases. Results are for a Watts–Strogatz network with \(\mathcal{N}=1024\) nodes, \(\langle k \rangle =10\), edge rewiring probability \(\beta =0.001\), and b Erdös-Rényi network with \(N=512\) nodes, \(p=0.005\). Here, \(f_{C_i}=0.5\), \(f_{\mathcal{I}_i}=0.02\), \(\rho =0.5\), \(\rho _s=0.2\), \(\tau = 0.3\), \(\delta =0.05\) and \(E_\mathcal{N}=500\) networks. The standard error is smaller than the size of the data points.

4.4 Role of Network Topology

Thus far, we have extensively studied the dynamics on BA networks. We would further like to ascertain the role of network topology on the dynamics of epidemic spreading. Towards this end, we have studied the dynamics on Watts–Strogatz small-world networks (SW) and Erdös–Rényi (ER) networks as demonstrated in Fig. 7a and b respectively. In comparison with the earlier results on BA networks, we observe the final fraction of proactive individuals to vanish at far lower values of the cost in both ER and SW networks for both class \(\mathcal{M}\) and class \(\mathcal{M}\). This effect is most prominent for class \(\mathcal{M}\) diseases in ER networks. Therefore, population structures on SW and more so on ER networks seem vulnerable to pandemics.

5 Discussion

Accurate models of epidemic spreading are essential41,42,43, as has been clearly underscored during the ongoing COVID-19 pandemic, which has raged for more than a year now and caused enormous setback to life, economy and society. Prevalence of asymptomatic carriers complicates the detection and management of any disease to a significant extent44,45,46. Indeed, the crucial role of asymptomatic carriers has been clearly highlighted in the ongoing COVID-19 pandemic.

Models based on SIRD dynamics or game-theoretic approaches are not be able to capture the complete picture as they usually do not consider the important aspect of asymptomatic carriers10,47. Our model explores the possible effect of various factors in epidemic spreading on various network topologies. We find that the absence of vaccines makes individual and social proactiveness as important factors, which can inhibit disease spreading.

Also, the fraction of the population which has undergone testing is an essential factor in diseases involving asymptomatic phenotypes. In the absence of high enough testing—an asymptomatic disease bears the potential to get converted into a pandemic. We also observe that the fraction of proactive individuals depends upon the initial fraction of both infected as well as proactive individuals. Additionally, edge density can significantly influence the dynamics of epidemic spreading. Furthermore, population structures on small-world networks and more so on Erdös-Rényi networks seem vulnerable to pandemics.

Our findings are in broad agreement with the lessons learnt from the ongoing COVID-19 pandemic. Adoption of precaution and employment of intelligent strategies to conduct mass testing48,49,50 has indeed proven to be of immeasurable value51,52,53 towards effective management of the pandemic.