 Research
 Open Access
 Published:
Mitigate SIR epidemic spreading via contact blocking in temporal networks
Applied Network Science volume 7, Article number: 2 (2022)
Abstract
Progress has been made in how to suppress epidemic spreading on temporal networks via blocking all contacts of targeted nodes or node pairs. In this work, we develop contact blocking strategies that remove a fraction of contacts from a temporal (time evolving) human contact network to mitigate the spread of a SusceptibleInfectedRecovered epidemic. We define the probability that a contact c(i, j, t) is removed as a function of a given centrality metric of the corresponding link l(i, j) in the aggregated network and the time t of the contact. The aggregated network captures the number of contacts between each node pair. A set of 12 link centrality metrics have been proposed and each centrality metric leads to a unique contact removal strategy. These strategies together with a baseline strategy (random removal) are evaluated in empirical contact networks via the average prevalence, the peak prevalence and the time to reach the peak prevalence. We find that the epidemic spreading can be mitigated the best when contacts between node pairs that have fewer contacts and early contacts are more likely to be removed. A strategy tends to perform better when the average number contacts removed from each node pair varies less. The aggregated pruned network resulted from the best contact removal strategy tends to have a large largest eigenvalue, a large modularity and probably a small largest connected component size.
Introduction
Networks, such as physical contact networks and online social networks, facilitate the spread of epidemics and information. The study of epidemic spreading first assumed the topology of networks to be static (PastorSatorras et al. 2015; Wang et al. 2013), while many realworld networks are not static as nodes and links can appear and disappear over time, thus can be better represented as temporal networks (Holme and Saramäki 2012). For example, human contact networks such as facetoface contact networks (Zhao et al. 2011) are temporal networks, which can be described by a sequence of contacts (or temporal links) between pairs of individuals occurring at discrete time steps. The increasing availability of network data with temporal information has fostered research on how the temporal aspect of networks can affect dynamic processes such as the spreading of epidemics (Zhang et al. 2017; Karsai et al. 2011) and information (Scholtes et al. 2014) on temporal networks. Epidemic/information spreading can be mitigated via reducing physical contacts. Covid19 measures like curfew, working at home, social distancing all aim to block physical contacts. These measures treat at least a subgroup of the population in the same way. In this work, we address the further question of how to mitigate the epidemic spreading more effectively via selecting the contacts to block heterogeneously and strategically. We propose to develop contact removal strategies utilizing the network properties of contacts.
We consider realworld physical contact networks, where only the connection between nodes evolves (appears when there is a contact and disappears) over time whereas the nature/type of nodes and contacts do not change . In this case, a temporal network observed within a time window [0, T] can be represented by \(\mathcal {G}=(\mathcal {N},\mathcal {C})\), where \(\mathcal {N}\) is the node set observed within [0, T], size \(N=\mathcal {N}\) is the number of nodes in the network, \(\mathcal {C}=\{c(i,j,t), t\in [0,T],i,j\in \mathcal {N}\}\) is the set of contacts between pairs of nodes in \(\mathcal {N}\), with contact (i, j, t) representing the interaction between node i and node j at time step t. A contact c(i, j, t), also called a temporal link, describes interaction/connection between node i and j at a specific time t. A node without any contact at time t can be regarded as inactive or not observed at that time step. We confine ourselves to the SusceptibleInfectedRecovered (SIR) epidemic spreading model (PastorSatorras et al. 2015) on a temporal network instead of more realistic spreading processes: Initially at \(t=0\), a seed node is selected to be infected whereas all the other nodes are susceptible; When a contact happens between an infected node and a susceptible node at any time step, the susceptible node becomes infected with a probability \(\beta\); Each infected node becomes recovered with a probability \(\gamma\) at each time step. A recovered node will neither be infected nor infect any other node. The contacts to block will be selected based on the (time) aggregated network \(\mathcal {G_W}\) of the temporal network \(\mathcal {G}\). Aggregated network represented as \(\mathcal {G_W}=(\mathcal {N}, \mathcal {L})\) is a weighted network with the same node set \(\mathcal {N}\) as temporal network \(\mathcal {G}\), \(\mathcal {L}\) is the set of weighted links, two nodes i and j in \(\mathcal {G_W}\) are connected by a link l(i, j) if they have at least one contact in temporal network \(\mathcal {G}\) and link l(i, j) is associated with a weight recording the number of contacts in \(\mathcal {G}\) between the two nodes. In the rest of this paper, links refer to the links in the aggregated network, and contacts will not be called temporal links anymore to avoid confusion. Contacts between two nodes i and j can be regarded as the corresponding link l(i, j) in the aggregated network activated at specific time steps.
The objective is to mitigate the epidemic spreading via blocking a given percentage \(\phi\) of contacts, selected based on the aggregated network. The fraction \(\phi\) of contacts removed corresponds to the cost of the mitigation. To launch a contact removal intervention during the time window [0, T], the information of the aggregated network of the temporal network \(\mathcal {G}\) observed in [0, T] needs to be known at \(T=0\). Such aggregated network is assumed to be given in our work, whereas in practice, it can be estimated based on the temporal network observed before \(T=0\). Predicting the aggregated network is more feasible compared to predicting the temporal network in [0, T]. The latter, i.e. longterm prediction of time specific and possibly noisy contacts challenges machine learning approaches that target at shortterm predictions. Hence, we focus on the development of contact removal strategies based on the aggregated network, instead of the complete temporal network information which is difficult to obtain.
We propose probabilistic contact removal strategies. Specifically, the probability that a contact c(i, j, t) is removed is a generic function of a centrality metric (Newman 2018) of link l(i, j) in the aggregated network and the time t of the contact. Each centrality metric leads to a unique mitigation strategy in contact removal. The impact of an SIR epidemic spreading can be evaluated via the following performance measures, which will be used to evaluate the mitigation strategies: the average prevalence over time, where the prevalence at a time step is the number of infected nodes; the maximal prevalence, so called peak height, which suggests the maximal demand in e.g. hospital resources; the time to reach the peak prevalence, so called peak time, which indicates the time to prepare the medical resources for the peak demand.
The mitigation strategies that we have proposed are evaluated in 6 realworld temporal networks. We find that the mitigation effect is better when contacts between node pairs that have fewer contacts are removed with a higher probability. Removing contacts that occur earlier in time could further enhance the mitigation effect. A strategy tends to better mitigate the epidemic spreading if the average number of contacts removed varies less among node pairs. Furthermore, we analyze properties of the aggregated pruned network resulted from each contact blocking strategy. We find that the optimal strategy tends to lead to an aggregated pruned network with a large largest eigenvalue, a large modularity and a possibly a small largest connected component. Networks with a large modularity and a small largest connected component are difficult for an epidemic to spread. Static networks with a small largest eigenvalue have been shown to be robust against epidemic spreading i.e. have a high epidemic threshold for SusceptibleInfectedSusceptible epidemic. The resultant aggregated pruned network after contact removal, however, may lead to a low prevalence if its largest eigenvalue is large. This suggests that the temporal information of contacts, may lead to new phenomena that can not be captured by static network studied.
Recent work has been devoted to understand the influence of temporal networks on dynamic processes and especially the mitigation of epidemic spreading. A first line of reseach has studied the mitigation of epidemic spreading via nodelevel approaches. Génois et al. (2015) have shown that vaccination of individuals who act as bridges between communities in timeaggregated network can efficiently prevent epidemic outbreaks. Gemmetto et al. (2014) have investigated the epidemic mitigation via excluding a subgroup of nodes in a temporal network in school environments. Another line of research has focused on linkbased approaches to suppress epidemic outbreaks. Link removal strategies based on link centrality metrics in the aggregated network has been studied in Zhan et al. (2019). These strategies select the links in the aggregated network to block, thus removing all contacts associated with the selected links. In this work, we investigate indepth at contact level, i.e. how to select a given number of contacts to remove to suppress epidemic spreading. To the best of our knowledge, few works have studied contactlevel approaches to suppress epidemic spreading. Our previous work (Zhao and Wang 2020) has addressed the same question, however, was confined to SusceptibleInfected (SI) model, which is a special case of SIR model. In this work, we consider the SIR model, broaden and deepen our investigation towards a more comprehensive evaluation of mitigation effect and a more systematic analysis of the properties of the pruned network to explain the performance of the strategies. In view of the uncertainty of realistic temporal network data, we further check the robustness of our finding in the relative effectiveness of proposed mitigation strategies when the temporal networks are under the perturbation, i.e. when the time (ordering) of contacts is uncertain.
Methods
We will firstly propose our contract removal strategies. Afterwards, we will introduce the realworld temporal networks and simulations that will be used to simulate the epidemic spreading process and further to evaluate the effect of the mitigation strategies.
Contact blocking strategies
We select the contacts to block based on a given centrality metric in the aggregated network and the time of each contact. Specifically, the probability that a contact c(i, j, t) is removed is defined as a function of the given centrality metric of the corresponding link l(i, j) in the aggregated network \(\mathcal {G_W}\) and the time t of the contact. This function also ensures that a fraction \(\phi\) of contacts are removed on average.
Link centrality metrics
We propose a set of link centrality metrics based on node centrality metrics for the aggregated network \(\mathcal {G_W}\). The aggregated network \(\mathcal {G_W}\) is a weighted network constructed from a temporal network \(\mathcal {G}\). The weight of each link in the aggregated network represents the number of contacts between the two corresponding nodes in the temporal network. Each centrality metric below will lead afterwards to a unique mitigation strategy:

Degree product of a link l(i, j) refers to \(d(i)\cdot d(j)\), where d(i) is the degree of node i defined as the number of links incident to node i in the aggregated network.

Strength product of a link l(i, j) refers to \(s(i)\cdot s(j)\), where s(i) is the strength of node i defined as the total weights of all the links incident to node i in aggregated network. The strength of a node tells the total number of contacts the node has.

Betweenness is the number of shortest paths that traverse the link between all possibly node pairs in the unweighted aggregated network (Wang et al. 2008).

Link weight of a link l(i, j) in aggregated network refers to the total number of contacts between node i and j in the corresponding temporal network.

Weighted eigenvector component product is the product of the principal eigenvector components of the link’s two end nodes. The principal eigenvector is the eigenvector corresponds to the largest eigenvalue of the weighted aggregated network.

Unweighted eigenvector component product is the product of the principal eigenvector components of the link’s two end nodes. The principal eigenvector is the eigenvector corresponds to the largest eigenvalue of the unweighted aggregated network.
Besides the proposed strategies based on the aforementioned link centrality metrics, we introduce a baseline strategy called Random removal. In the Random removal strategy, the probability for each contact c(i, j, t) to be removed is independent of the centrality of l(i, j). Or equivalently, Random removal sets the centrality value as 1 for all links.
Contact removal probability
Given a link centrality metric m, we can derive the centrality \(m_{ij}\) for each link l(i, j) in the aggregated network. Consider the simple case where the probability that a contact c(i, j, t) between i and j is removed is independent of the time t and we first propose the removal preference \(p_{ij}\):
where \(w_{ij}\) is the weight of link l(i, j) in the aggregated network or equivalently the number of contacts between i and j, \(\phi\) is the expected fraction of contacts to be removed, thus we have \(\sum _{ij} p_{ij}w_{ij}=\phi \sum _{lk} w_{lk}\), which is the expected number of contacts to be removed. The removal preference \(p_{ij}\) of a contact between any node pair i and j is proportional to the centrality \(m_{ij}\) of the corresponding link l(i, j).
We cannot use the removal preference \(p_{ij}\) directly as the removal probability of a contact between node i and j in view of the following. Some centrality metrics could be highly heterogeneous. The removal preference \(p_{ij}\) is possibly larger than 1 if the centrality measure \(m_{ij}\) of the link l(i, j) is large. To deal with this issue, we propose an iterative process to derive the contact removal probability by renormalizing \(p_{ij}\), where \({i},{j}\in \mathcal {N}\): we assign removal probabilities 1 to those contacts whose removal preference \(p_{ij}\) according to (1) is larger than one, and renormalize \(p_{ij}\) among the contacts with \(p_{ij}\le 1\) to satisfy \(\sum _{ij} p_{ij}w_{ij}=\phi \sum _{ij} w_{ij}\). We repeat this normalization process until the removal preference \(p_{ij}\) of all contacts are between 0 and 1, while the actual average fraction of contacts blocked is \(\phi\). Now we define \(\tilde{p}_{ij}\) as the renormalized \(p_{ij}\) via the proposed iterative process, and \(\tilde{p}_{ij}\) is used as the removal probability of each contact between node i and node j.
We further generalize the definition of the contact removal preference \(p_{ij}\) as
The removal preference of a contact c(i, j, t) is proportional to a polynomial function of \(m_{ij}\). The definition (1) of \(p_{ij}\) is a special case when \(\alpha =1\) of definition (2). The random strategy, i.e. all contacts have the same probability of being removed, corresponds to the case when \(\alpha =0\). Consider (1) where the reciprocal metric \(\frac{1}{m_{ij}}\) is taken as a new centrality metric. The corresponding strategy is equivalent to the general definition (2) where metric \(m_{ij}\) is considered and \(\alpha =1\).
In this work, we consider the definition (1) of \(p_{ij}\) using the aforementioned list of centrality metrics and their reciprocals as well as the random strategy, which correspond to the general definition of (2) where \(\alpha =1,1,0\), respectively.
Finally, we generalize our strategy by considering the timestamps of the contacts. This is motivated by the intuition that early intervention, e.g. blocking early contacts, could be possibly more effective. We propose a timedependent contract removal preference \(p_{ij}(t)\):
where f(t) describes the preference to remove contacts at specific period. The preference that c(i, j, t) is removed is proportional to \(m_{ij}\cdot f(t)\). The same aforementioned normalization process is applied to this generalized contact removal preference to derive the removal probability of each contact.
As a start, we consider \(f(t)=4\cdot 1_{t\le T/2}+1_{t>T/2}\), \(f(t)=1_{t\le T/2}+4 \cdot 1_{t>T/2}\) and \(f(t)=1\), where the indicator function \(1_{y}\) is one if the condition y is true, and otherwise it is 0. They correspond to the preference of removing contacts happening early in [1, T/2], late in (T/2, T] and no preference for the timestamps of the contacts, respectively.
Datasets
The following realworld physical contact networks will be considered:

HighSchool11&12 record the physical contacts between students in a high school in Marseilles, France (Fournet and Barrat 2014). The two datasets consider two different groups of students.

WorkPlace13&15 capture the contacts between individuals in an office building in France (Génois et al. 2015). The two datasets are measured from different groups of individuals respectively.

MIT are human contact network among students of the Massachusetts Institute of Technology (Kunegis 2013; Eagle and Pentland 2006). The MIT dataset has been measured for about 8 months.
All networks are undirected. Their properties are given in Table 1. The duration of each time step is either 1 s or 20 s in all the networks. For the MIT dataset, we choose randomly two observation period, each of about oneweek time. The temporal networks corresponding to these two periods are called MIT1 and MIT2. In this way, all the six temporal networks (HighSchool11&12, WorkPlace13&15, MIT1&2) are comparable in observation window. They will be used to study the impact of the mitigation strategies on the average prevalence over time, the focus of this work.
However, most networks have a short duration of the observation window, within 12 days, besides MIT. In order to observe the peak (increase and afterwards decrease of) prevalence in the SIR process, the observation window of a temporal network needs to be long in duration. When we study the performance measure like peak height/prevalence and peak time, we repeat each of the temporal network HighSchool11&12, WorkPlace13&15 respectively for 10 times. The constructed networks, *HighSchool11&12, *WorkPlace13&15 which repeats one temporal network periodically are also called periodic networks (Zhang et al. 2017). Each constructed network has a duration ten times as large as the original network . We consider the 4 constructed network *HighSchool11&12, *WorkPlace13&15 and the MIT dataset to study the performance of the strategies in terms of peak prevalence and peak time.
Simulation
In this subsection, we will introduce the simulation of the SIR spreading process and the choice of parameters. The performance measures to evaluate the mitigation strategies will be discussed in the next section.
We consider the following discrete time SIR spreading process: a seed node is chosen to be infected at \(t=0\), while the other nodes are susceptible at \(t=0\). Each contact between an infected node and a susceptible node could lead to an infection with probability \(\beta\). At each time step, each infected node recovers with a recovery probability \(\gamma\). We consider infection probability \(\beta =0.01\) as an example. In this case and when \(\gamma =0\), the prevalence at T is around the order of \(10\%\) in the first six temporal networks. Furthermore, we consider the recover probability per time step \(\gamma = 1.22*10^{6}\) or \(\gamma = 0\). The former, \(\gamma = 1.22*10^{6}\) leads approximately to a recovery probability \(10\%\) per day.
In the simulation, we simulate the exact infection and recovery process except the following approximation in the recovery process. If there is no contact in the whole network for the period \(t_0,t_0+t\), we update the state of each node only at the end of this time window \(t_0+t\) instead of at each of the t time steps. In the datasets we have considered, the longest gap that no contact happens is around one day. Correspondingly, the average prevalence is the number of infected nodes over the time steps when at least one contact happens in the network.
Given a temporal network and a centrality metric, we compute the contact removal preference (1) for each contact based on the aggregated network of the temporal network and derive further the removal probability of each contact via the normalization process of the contact removal preference. We select each node as a possible seed node and iterate the following for five times per seed node: the fraction \(\phi\) of contacts to be removed are selected according to contact removal probabilities; The SIR process starting from the given seed is performed on the pruned temporal network resulted from the removal of the selected contacts; the prevalence \(\rho\) is recorded at each time step when there is a contact in the network. Given a network and a centrality measure, we obtain the prevalence at a time step as the average over the five iterations per every seed node. The average prevalence over all time steps when there is at least one contact is used as the key performance to evaluate the contact removal strategies. The fraction \(\phi\) of contacts to be removed is a control parameter and \(\phi =10\%\) and \(\phi =30\%\) are considered. Simulations are performed in the same way when the time factor f(t) are taken into account via the contact removal probability (3).
Results
In this section, we evaluate our contact removal strategies via three performance measures: the average prevalence and the peak height (the maximal number of infected at a time step) and the peak time (the time to reach the peak height/prevalence.
Performance evaluation
Average prevalence
Firstly, we evaluate the strategies as defined in (1) where the probability that a contact c(i, j, t) is removed is independent of the time t of the contact but do depend a centrality metric of the link l(i, j) in the aggregated network. In total, 13 strategies are considered that correspond to the aforementioned centrality metrics and their reciprocals. Figure 1 exemplifies the prevalence \(\rho (t)\) over time in two periodic networks *HighSchool12 and *WorkPlace15 when each of the 13 strategies is performed and \(10\%\) contacts are removed. The ordering of the prevalence \(\rho (t)\) at each time step for the 13 strategies are relatively stable over time. The relative performance of the mitigation strategies in terms of average prevalence over time seems not sensitive to duration of the observation time window.
We use the original network HighSchool11&12, WorkPlace13&15, MIT1&2 to evaluate the blocking strategies with respect to the average prevalence. These networks are comparable in duration of the observation time window, i.e. within 12 days. The performance of each strategy in each network is evaluated via the the average prevalence \(E[\rho ]\), i.e., the average fraction of infected nodes over the time steps when there is at least one contact in the network.
We start with the simple case when the recovery rate \(\gamma =0\). In this case, the SIR model is equal to the SusceptibleInfected (SI) model. The average prevalence when contacts are removed according to each strategy are shown in Tables 2 and 3, where \(\phi =10\%\) and \(\phi =30\%\) contacts are removed respectively. In most networks, the 1/link weight performs the best among all 13 strategies. The same has been observed when the recovery rate is \(\gamma = 1.22*10^{6}\) per step, approximately \(10\%\) per day, as shown in Tables 4 and 5. These observations suggest that removing contacts between nodes that have few contacts tends to be the most effective in reducing the average prevalence.
Furthermore, we consider the time dependent contact removal strategies where the contact removal probability \(p_{ij}(t)\) is defined in (3). When \(f(t)=4\cdot 1_{t\le T/2}+1_{t>T/2}\), a contact happening early in time i.e. \(t<T/2\) is 4 times more likely to be removed than a contact occurring late \(t>T/2\). When \(f(t)=1_{t\le T/2}+4\cdot 1_{t>T/2}\), contacts happening late i.e. \(t>T/2\) are more likely to be removed. Contact removal strategies based on each of these two f(t) examples and each centrality metric are evaluated via the average prevalence. Their performance when \(\gamma =0\), \(\phi =10\%\) is shown in Tables 6 and 7, where early and later contacts are more likely removed respectively. Comparing these results and the timeindependent strategies (Table 3) or equivalently when \(f(t)=1\), we find that removing earlier contacts better suppresses the epidemic spreading. The same has been observed when \(\gamma =1.22*10^{6}\), \(\phi =10\%\) (see Tables 8 and 9). Moreover, metric 1/link weight tends to have the best performance independent of the choice of f(t). Therefore, the epidemic spreading can be better mitigated when contacts between node pairs that have few contacts and happening early are more probable to be removed.
Properties of the pruned network
The pruned network is the resultant temporal network after contacts being removed according to a strategy. In this section, we explore the relation between the properties of the pruned network and the average prevalence, resulted from a contact removal strategy. This could help us understand what kind of pruned networks may lead to a low prevalence. We focus on timeindependent contact removal strategies to illustrate our method.
The average number of contacts removed between any node pair i and j or link l(i, j) in the aggregated network is \({\tilde{p}}_{ij}w_{ij}\), where \(w_{ij}\) is the number of contacts between i and j and \({\tilde{p}}_{ij}\) is the probability that a contact between i and j is removed. The average number of contacts removed by strategy 1/link weight is the same for all links in the aggregated network^{Footnote 1}. We explore whether a strategy that removes a similar number of contacts per node pair (link) may better mitigates the epidemic spreading. Figure 2b demonstrates the scatter plot of the average prevalence \(E[\rho ]\) versus \(\sqrt{Var[\tilde{p}_{ij}w_{ij}]}\) for each strategy when \(\phi =10\%\) contacts are removed and the recovery rate is \(\gamma = 0\) per step. We find that, in each network, a strategy tends to reduce the average prevalence \(E[\rho ]\) more if \(\sqrt{Var[\tilde{p}_{ij}w_{ij}]}\) is small. The same can be observed when the recovery rate \(\gamma\) and removal fraction \(\phi\) vary (see (b) of Figs. 3, 4, 5).
Each pruned network is a temporal network. We investigate three properties of the aggregated network \(W^{*}\) of the pruned network. Each element \(W^{*}_{ij}\) in the weighted adjacency matrix \(W^{*}\) of the aggregated pruned network tells the number of contacts between i and j in the pruned network.
We explore firstly the largest eigenvalue \(\lambda _{1}(W^*)\) of the aggregated pruned network in relation the corresponding average prevalence resulted from each strategy. Consider the SusceptibleInfectedSusceptible SIS epidemic spreading process on a static network. It has been shown that the largest eigenvalue of the network suggests the robustness of the network subject to epidemic spreading (Van Mieghem et al. 2008; Wang et al. 2013; Ottaviano et al. 2019; Qu and Wang 2017). When the effective infection rate, i.e. infection rate divided by the recovery rate, is above (below) the threshold \(\tau _{c}\sim \frac{1}{\lambda _{1}(W^*)}\), a nonezero (zero) fraction of the population is infected in the metastable state. A static network whose largest eigenvalue is small has a large epidemic threshold, thus is robust against epidemic spreading.
Would a pruned network with a small \(\lambda _{1}(W^*)\) lead to a low prevalence according to the findings of SIS model on static networks? Figures 2a, 3a, 4a, 5a respectively show the scatter plot of the average prevalence \(E[\rho ]\) versus \(\lambda _{1}(W^*)\) of the aggregated pruned network^{Footnote 2} for each strategy in each network. We observe the opposite: the best strategy with the lowest prevalence tends to lead to a pruned network with a large largest eigenvalue. Such inconsistency can be possibly explained as follows. First, a network that is robust against SIS epidemic spreading is not necessarily robust against SIR epidemic spreading. Each link in the aggregated pruned network can transmit the epidemic maximally once in SIR model whereas possibly multiple times in SIS models. That is why removing many contacts from links whose end nodes have a high strength may better reduce the largest eigenvalue and better suppress the SIS epidemic but not the SIR epidemic spreading. Second, a network with a low epidemic threshold does not implies a high prevalence when the effective infection rate is above the epidemic threshold. Finally, the aggregated pruned network can not capture the temporal information of contacts, which influence the spread of an epidemic.
Furthermore, we consider the modularity \(Mod(W^*)\) of the aggregated pruned network. Given a weighted network and a given partition of all the nodes into nonoverlapping communities, the quality of this community partition can be measured by the modularity (Newman 2006; Ge and Wang 2012) \(\frac{1}{2L}\sum _{i,j=1}^{N}{(W^*_{ij}\frac{s_{i}s_{j}}{2L})\delta _{C_{i}C_{j}}}\), where \(s_{i}\) is the strength of node i, \(C_{i}\) is the label of the community to which node i belongs to, the Kronecker delta function \(\delta _{C_{i}C_{j}}=1\) if \(C_{i}=C_{j}\) or else \(\delta _{C_{i}C_{j}}=0\). The modularity of a partition describes the extent to which that more link weights are within each community than link weights between communities. The modularity \(Mod(W^*)\in [0,1]\) of a network is the maximal modularity that could be obtained via network/node partition. We compute the modularity of an aggregated pruned network via the Louvain method (Blondel et al. 2008). The scatter plot in Figs 2c, 3c, 4c, 5c shows that the optimal contact removal strategy that obtains the minimal average prevalence tends to result in a pruned network that has a large modularity. A network with a large modularity is more robust against epidemic spreading.
Finally, we explore the relative size \(S_{1}(W^*)\) of the largest connected component of the aggregated pruned network. We wonder whether the optimal strategy reduced the prevalence via disconnecting the network. As shown in the bottomright figure of Figs. 2d, 3d, 4d, 5d, most pruned networks still have a relative large component \(S_{1}(W^*) \sim 1\). Exceptions are observed for in MIT1 and MIT2, where strategies may evidently disconnect the aggregated pruned network. In such cases, the optimal strategy tends to lead to a relatively small largest component size \(S_{1}(W^*)\). This is in line with the finding that efficient immunization strategy should keep the largest connected component size small (Schneider et al. 2011).
In summary, the optimal mitigation strategy tends to lead to an aggregated pruned network with a large largest eigenvalue, a large modularity and possibly a small largest connected component (in case contact removal strategies evidently disconnect the pruned network). Moreover, a strategy seems to better reduce the prevalence if it removes a similar number of contacts from the links. These observations together further support our previous explanation why the optimal strategy could result in an aggregated pruned network with a large largest eigenvalue: the optimal strategy tends to remove a similar number of contacts from links, keeping the hubs, i.e. nodes with a large node strength. Such hubs contribute to a large largest eigenvalue and thus a low epidemic threshold for SIS epidemic spreading. However, the modular structure of the pruned network limits the prevalence of an epidemic, which can not be captured directly by the largest eigenvalue.
Peak height and peak time
The peak height/prevalence and peak time suggest the maximal demand in e.g., healthcare resources and the time to prepare for the highest demand in resources, respectively. We consider the 4 constructed network *HighSchool11&12, *WorkPlace13&15 and the MIT dataset to study the performance of the strategies in terms of peak prevalence and peak time.
For each centrality metric or strategy, we simulate the SIR spreading process five times for every possible seed node. The peak height is found as the maximum prevalence in each spreading process. Table 10 shows the average peak height over all 5*N realizations of the spreading processes. We find that the strategy 1/link weight results in the smallest peak height. The average peak height shown in Table 10 differs from the maximal prevalence in Fig. 1, which corresponds to the maximum of the average prevalence over the 5*N realizations.
Similarly, the average peak time, i.e. time to reach the maximal prevalence over all spreading processes started at every possible seed node is derived and given in Table 11. Interestingly, the peak time for strategy 1/link weight is not always the smallest. Strategy 1/link weight leads to the lowest peak height and possibly a longer peak time.
Robustness
Temporal networks measured in realworld scenarios possibly contain noise, e.g., uncertainty of the ordering of contacts or occurring time of contacts. We would like to explore whether our findings in the relative effectiveness of the proposed mitigation strategies still holds when the temporal networks measured are subject to such type of uncertainty.
We assume the temporal networks that we have so far analyzed are measured relatively precisely. For each of these temporal networks, we apply two approaches, respectively, to generate the corresponding temporal networks perturbed by the aforementioned uncertainty. The duration of one time step in the original temporal networks is either 1 s or 20 s. We split the observation period [0, T] of a temporal network into nonoverlapping bins, whose duration is \(\Delta =60\) s to further perturb the networks. We first adopt the uncertainty model I used in AntulovFantulin et al. (2015), which randomly reshuffles the timestamps of the contacts within each bin of \(\Delta =60\) s. This model encapsulates the uncertainty of the ordering of contacts that happen at similar time. Given the uncertainty model I (one network realization as an example) of each original temporal network, we evaluate the contact blocking strategies in the same way as in the original network and their performance is given in Tables 12 and 13. We find that the ranking of the strategies does not change in model I compared to that in the original temporal networks and the 1/link weight remains the best strategy. Our finding seems to be robust against minor uncertainty in the ordering of contacts.
To capture the uncertainty of the exact occurring time of contacts, we use our uncertainty model II, where each contact’s occurring time is measured in the time resolution of \(\Delta =60\) s instead of second. In other words, the number of contacts between each pair of nodes in each bin of \(\Delta =60\) s is known in model II. However, the exact occurring time of the contacts happening within each bin in precision of seconds is unknown. For each snapshot/bin of \(\Delta =60\) s, model II constructs a weighted network, where the weight between two nodes counts the number of contacts between them that occur within the bin of \(\Delta =60\) s. Each weighted network is thus an aggregated network of the original temporal network over 60 s. The performance of each blocking strategy on model II are shown in Tables 14 and 15, demonstrating that strategy 1/link weight outperforms the others, the same as observed in the original temporal networks. Hence, our evaluation of the strategies is robust against network perturbations that models the uncertainty of temporal network data.
Conclusions
In this paper, we have developed and evaluated contact blocking strategies in order to mitigate SIR epidemic spreading on a temporal network. The probability that a contact c(i, j, t) is removed is defined as a generic function of a given centrality metric of the corresponding link l(i, j) in the corresponding aggregated network and time t. In total 12 centrality metrics or strategies and a baseline strategy (random removal) have been considered. The strategy (1/link weight) that tends to remove contacts between node pairs with few contacts and removes early contacts seems to mitigate the epidemic spreading the best, with respect to the average prevalence, the peak prevalence and the time needed to reach the peak prevalence. This suggests that the removal of contacts along weak social ties in an early phase tends better suppress the epidemic spreading. Removing a large number of contacts from few node pairs is likely too costly to be effective. We demonstrate further that our finding, i.e., the 1/link weight strategy tends to outperform, still holds when uncertainty is introduced into original temporal networks via reshuffling the ordering of contacts and enlarging the temporal resolution, respectively.
Characterization of the pruned network resulted from the contact removal of a given strategy provides insights why some strategies outperform the others: an optimal strategy (1/link weight) leads to an aggregated pruned network with a large largest eigenvalue, a large modularity and a possibly small largest connected component size. A strategy tends to perform better when a similar number of contacts are removed from links. These findings are in line with our understanding that a network with a small largest connected component, a large modularity prohibits epidemic spreading. However, the large largest eigenvalue achieved by the optimal strategy seems to contradict our understanding that a static network with a large largest eigenvalue tends to facilitate SIS epidemic spreading with respect to its small epidemic threshold. We explain this seemingly inconsistency with respect to the difference between SIR and SIS models, between epidemic threshold and prevalence, and the complexity introduced by the temporal contacts that cannot be captured by the aggregated network.
A few limitations of our work should be noticed and could be explored in future work. First, we have confined ourselves to the SIR model with limited choice of parameters and a few realworld networks. SIR model is a simplified model of the epidemic spreading process, whereas realworld epidemic spreading can be more complicated. Hence, our conclusion regarding the effectiveness of the mitigation strategies cannot be generalized directly to realworld epidemic mitigation. It is essential to explore further generalized choice of more realistic epidemic spreading model. Second, the dependency of removal preference \(p_{ij}(t)\) on time, i.e., f(t), that we have we chosen is one of the simplest forms. Other forms of timedependent function f(t) could be further explored, especially those that are feasible for policy makers. The contact removal strategies proposed is based on the knowledge of the aggregated network over the observation window, the period when we intervene the spreading process. One challenging question is how to estimate or predict this aggregated network based on the observation of the aggregated network in the past. Beyond the aggregated network, contact removal strategies can also be based on temporal and topological properties of contacts.
Availability of data and materials
We have used publicly available data sets. More information of these data sets are provided in the corresponding references.
Notes
 1.
In the simulation, the average number of contacts removed per link by strategy 1/link weight may differ slightly among the links. When the removal preference \(p_{ij}>1\), we set removal probability \(\tilde{p}_{ij}=1\) and iteratively renormalize the removal probabilities of the other links to ensure that a fraction \(\phi\) of contacts are removed.
 2.
Given a temporal network and a contact removal strategy, we have simulated per seed node 5 realizations of contact removal and a SIR spreading process on each resultant pruned network. The \(\lambda _{1}(W^*)\) in the scatter plot is the average over the 5N realizations of the pruned network.
References
AntulovFantulin N, Lančić A, Šmuc T, Štefančić H, Šikić M (2015) Identification of patient zero in static and temporal networks: robustness and limitations. Phys Rev Lett 114(24):248701
Blondel VD, Guillaume JL, Lambiotte R, Lefebvre E (2008) Fast unfolding of communities in large networks. J Stat Mech Theory Exp 2008(10):10008
Eagle N, Pentland AS (2006) Reality mining: sensing complex social systems. Pers Ubiquit Comput 10(4):255–268
Fournet J, Barrat A (2014) Contact patterns among high school students. PLoS ONE 9(9):107878
Ge X, Wang H (2012) Community overlays upon realworld complex networks. Eur Phys J B 85(1):1–10
Gemmetto V, Barrat A, Cattuto C (2014) Mitigation of infectious disease at school: targeted class closure vs school closure. BMC Infect Dis 14(1):1–10
Génois M, Vestergaard CL, Fournet J, Panisson A, Bonmarin I, Barrat A (2015) Data on facetoface contacts in an office building suggest a lowcost vaccination strategy based on community linkers. Netw Sci 3(3):326–347
Holme P, Saramäki J (2012) Temporal networks. Phys Rep 519(3):97–125
Karsai M, Kivelä M, Pan RK, Kaski K, Kertész J, Barabási AL, Saramäki J (2011) Small but slow world: How network topology and burstiness slow down spreading. Phys Rev E 83(2):025102
Kunegis J (2013) Konect: the koblenz network collection. In: Proceedings of the 22nd international conference on world wide web, pp 1343–1350
Newman ME (2006) Modularity and community structure in networks. Proc Natl Acad Sci 103(23):8577–8582
Newman M (2018) Networks, 2nd edn. Oxford University Press, Oxford
Ottaviano S, De Pellegrini F, Bonaccorsi S, Mugnolo D, Van Mieghem P (2019) Community networks with equitable partitions. In: Multilevel strategic interaction game models for complex networks. Springer, Berlin, pp 111–129
PastorSatorras R, Castellano C, Van Mieghem P, Vespignani A (2015) Epidemic processes in complex networks. Rev Mod Phys 87(3):925
Qu B, Wang H (2017) Sis epidemic spreading with heterogeneous infection rates. IEEE Trans Netw Sci Eng 4(3):177–186
Schneider CM, Mihaljev T, Havlin S, Herrmann HJ (2011) Suppressing epidemics with a limited amount of immunization units. Phys Rev E 84(6):061911
Scholtes I, Wider N, Pfitzner R, Garas A, Tessone CJ, Schweitzer F (2014) Causalitydriven slowdown and speedup of diffusion in nonmarkovian temporal networks. Nat Commun 5(1):1–9
Van Mieghem P, Omic J, Kooij R (2008) Virus spread in networks. IEEE/ACM Trans Netw 17(1):1–14
Wang H, Hernandez JM, Van Mieghem P (2008) Betweenness centrality in a weighted network. Phys Rev E 77(4):046105
Wang H, Li Q, D’Agostino G, Havlin S, Stanley HE, Van Mieghem P (2013) Effect of the interconnected network structure on the epidemic threshold. Phys Rev E 88(2):022801
Zhan XX, Hanjalic A, Wang H (2019) Suppressing information diffusion via link blocking in temporal networks. In: International conference on complex networks and their applications. Springer, pp 448–458
Zhang YQ, Li X, Vasilakos AV (2017) Spectral analysis of epidemic thresholds of temporal networks. IEEE Trans Cybernet 50(5):1965–1977
Zhao X, Wang H (2020) Suppressing epidemic spreading via contact blocking in temporal networks. In: International conference on complex networks and their applications. Springer, pp 444–454
Zhao K, Stehlé J, Bianconi G, Barrat A (2011) Social network dynamics of facetoface interactions. Phys Rev E 83(5):056109
Funding
We thank for the support of TU Delft COVID19 Response Fund. SZ acknowledges the support of the China Scholarship Council (CSC).
Author information
Affiliations
Contributions
All authors designed the research, analyzed the results and wrote the manuscript. SZ and XZ performed the experiments and prepared the figures. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Zhang, S., Zhao, X. & Wang, H. Mitigate SIR epidemic spreading via contact blocking in temporal networks. Appl Netw Sci 7, 2 (2022). https://doi.org/10.1007/s4110902100436w
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s4110902100436w
Keywords
 Epidemic mitigation
 Temporal network
 Contact blocking