Abstract
Identifying important nodes for disease spreading is a central topic in network epidemiology. We investigate how well the position of a node, characterized by standard network measures, can predict its epidemiological importance in any graph of a given number of nodes. This is in contrast to other studies that deal with the easier prediction problem of ranking nodes by their epidemic importance in given graphs. As a benchmark for epidemic importance, we calculate the exact expected outbreak size given a node as the source. We study exhaustively all graphs of a given size, so do not restrict ourselves to certain generative models for graphs, nor to graph data sets. Due to the large number of possible nonisomorphic graphs of a fixed size, we are limited to ten-node graphs. We find that combinations of two or more centralities are predictive (R2 scores of 0.91 or higher) even for the most difficult parameter values of the epidemic simulation. Typically, these successful combinations include one normalized spectral centrality (such as PageRank or Katz centrality) and one measure that is sensitive to the number of edges in the graph.
Author summary
A central challenge in network epidemiology is to find nodes that are important for disease spreading. Usually, one starts from a certain graph, and tries to rank the nodes in a way that correlates as strongly as possible with measures of importance estimated using simulations of outbreaks. A more challenging prediction task, and the one we take, is to ask if one can guess, from measures of the network structure alone, the values of quantities describing the outbreak. Having this predictive power is important: one can then target nodes that are more important than a certain threshold, rather than just a top fraction of nodes. By exhaustively studying all small graphs, we show that such prediction is possible to achieve with high accuracy by combining standard network measures.
Introduction
Infectious diseases are still a major burden to global health. To mitigate them is of great societal value, and a cause to which theoretical modeling can be of help. Theoretical epidemiology has developed several core concepts that are guiding medical epidemiologists and public-health policy makers, including: epidemic thresholds, herd immunity, and the basic reproductive number [1–3]. There are a multitude of theoretical approaches to understanding the spreading of infections in populations—some more mathematical, some more computational. Our work models the underlying contact structure upon which the disease spreads as a network. This approach, network epidemiology [4, 5], is an emerging area with good prospects of improving epidemic forecasting [6] and interventions [7].
A common assumption of network epidemiology, and one we take, is that the disease spreads over a network that is evolving much slower than the disease outbreak. In this case, the propagation of an outbreak can be modeled by a compartmental model. Such a model divides the population into states with respect to the disease such as: susceptible (S; who can get the disease), infectious (I; who can infect susceptibles), and recovered (R; who neither can get the disease, nor can infect others), and assigns transition rules between the classes. With this setup, one of the most common research questions is that of finding which network characteristics predict the importance of a node with respect to the disease spreading [5, 8, 9]. More precisely, these authors seek network structural measures that rank nodes in the same order as some quantity describing their importance with respect to the disease spreading [10–12]. Some authors investigate the predictive power of such “centrality measures” [13–16] (a term we use, although it is somewhat ambiguous), but none as far as we know study combinations of centralities.
For interventions (vaccination, quarantine, pre-exposure prophylaxis, etc.) based on network measures to become useful to public health practitioners, there are several hurdles to overcome. A network obtained by, e.g., contact tracing [3] will be both noisy and incomplete. Some studies have investigated the robustness to noise of network measures to identify importance [17–19], and other studies have investigated how incomplete data based on questionnaires and observations are [20]. In practice, one cannot expect a contact network to be either completely accurate or possible to map out. (Some types of networks are more controllable than others: a network of animal trade is one example relevant to epidemic modeling, where one can both credibly infer the links and trust them.) The problem of how to estimate centrality measures from incomplete data is an emerging research topic [21, 22]. Ultimately, one would like to combine such results with our approach to construct more practical methods of inferring important nodes. For this paper, however, to facilitate comparison with existing studies (such as Refs. [17–19]) we stick to well-studied and established centrality measures.
Yet another issue is how to compare network predictors of importance from different data sets. In sparser networks, an outbreak needs less disease control to be contained, so, say, the third highest ranked individual would, in absolute terms, not be as important as the third highest ranked one in a denser network. Even if networks have the same number of nodes and edges this kind of effect can occur. In Fig 1, we illustrate the different aspects of using a network centrality (in this figure, closeness centrality) to predict an importance measure based on epidemic models—in our case the expected outbreak size Ω (sometimes called attack rate) if any node is the seed of the infection. Our paper explores the raw value of centralities such as closeness in predicting the importance of nodes with respect to disease spreading.
Ideally one would not like a ranking of nodes for a specific network, but an absolute way to compare nodes across networks. If an application needs to target all nodes more important than a threshold, then a ranking of nodes per network would not suffice. To properly address the question of how the values of structural predictors of network importance can predict the outbreak size in arbitrary graphs, we cannot restrict ourselves to networks generated by a random model. If we did, we would not be able to say whether our results are consequences of the model, or of the inherent constraints placed on the disease spreading by the network. Instead of sampling graphs from a network model, we study all graphs. A drawback of this approach is that, since the number of graphs of a certain number of nodes grows very fast, we will be restricted to small graphs up to size N = 10. Although we ultimately want to generalize our results to large graphs, there are many advantages to studying only small graphs. First, one can use slower, exact algorithms to determine the outbreak size [23]. This is important since often, the numerical difference in the objective importance measure are too small to be separated in stochastic simulations even with large averages. Second, we do not have to restrict ourselves to network models. Because the graphs are small, we can scan them exhaustively, and thus identify innate effects of the underlying contact structure. Third, many scaling properties of graphs hold already for small graphs [24, 25]. Fourth, there are small networks which are relevant to medical epidemiology. For example, networks of farms connected by animal transport are deliberately kept small and disconnected to prevent the introduction of disease [26, 27]. These could be modeled by metapopulation dynamics [28], or (as we do) the standard compartmental models with nodes representing the farms. Fifth, large networks could be reduced to smaller ones by community detection [29]. This is similar to point four but without the meta information of what individual (animal) then belongs to what group (farm).
The outline of our method is to calculate the exact outbreak size Ωi given that a disease starts at a node i. This is usually called the influence maximization problem [30] or sometimes the problem to identify super spreaders [31] (but note that “super spreaders” has a different definition in the medical literature [3]). Note that there are also other notions of what characterizes important individuals with respect to outbreak characteristics (such as the effect of vaccinating them) leading to somewhat different results [23]. Assuming the standard, Markovian Susceptible–Infectious–Recovered (SIR) model, we calculate Ωi exactly for every node in every connected graph of 6 ≤ N ≤ 10 nodes. Then we ask how well standard networks predictors of node importance (such as degree or betweenness centrality) [13], and particularly combinations of these, can predict Ωi. We follow a statistical learning approach: we split the data into training and validation parts; we use standard supervised learning algorithms (Random Forest and Support Vector Machine regression); we use the coefficient of determination as a performance metric and permutation tests with ten-fold cross validation for significance testing.
Methods
Computing Ω exactly in the SIR model
In the SIR model, at any given time, each of the N nodes of an undirected graph G is in one of the (above mentioned) states: S, I, or R. Susceptible and infected nodes may transition into other states via two types of events:
Infection events. A susceptible node connected to an infected node becomes infected at a rate of β infection events per time unit.
Recovery events. An infected node recovers at a rate of ν recovery events per time unit. We measure time in units of , so that the recovery rate becomes ν = 1, and the SIR model has only β as a parameter.
At any given time during an outbreak of the Markovian SIR model, the system is fully determined by its configuration C of susceptible, infectious and recovered nodes. The probability of the next event being an infection event is
(1) |
and that of the next event being a recovery event is
(2) |
where MSI is the number of edges between nodes in the states S and I, and NI the number of infected nodes [23]. By repeatedly applying these two rules to an initial graph of all nodes susceptible except one (the infection seed), we can calculate the exact probability of every configuration. To illustrate this, we show the run of the SIR model over the triangle graph, as a branching tree of configurations rooted in the initial configuration ISS (Fig 2 left). The right panel of Fig 2 shows the transition probabilities for one possible run of the outbreak. The probability of reaching any configuration C of any run is simply the product of all the transition probabilities on the tree path to C. The probabilities of the final configurations (those without any infected nodes) give the expected outbreak size Ω, which is our key quantity describing the potential severity of the epidemic outbreak. Note that Ω is a deterministic quantity even though the SIR model is a stochastic process.
The expected outbreak size Ω is the expected number of nodes in G which have been infected during the outbreak. Since, for any infected node, a recovery is eventually guaranteed, this is equivalent to the expected number of recovered nodes, denoted NR. Computing the exact value for Ω, given β, requires the unfolding of the complete tree of configurations; Ω is then the sum of NR across all final configurations, weighted by the probability of reaching each final configuration.
A number of optimizations are possible when computing Ω. To avoid the exploration of identical configurations multiple times, the tree is explored with a breadth-first strategy. Since the model is Markovian, whenever two identical configurations are reached, they can be merged by summing their probabilities, and are only explored once. For example, configuration III in Fig 2 is reachable via two paths, in the subtrees marked there with (a). Also, when equivalent nodes in the same graph are the initial infection sites, the computation is only done once.
We collect exact numerical results for Ω for the nine β values in a geometric sequence with common ratio 2, between the values 1/16 and 16. The computation for all values of β is done in the same exploration run. Across graphs of N = 10 nodes and with C++ code, the average runtime on a 3.1-GHZ CPU is 0.2 seconds per graph.
All nonisomorphic graphs as a graph model
We generated all nonisomorphic, connected, simple undirected graphs of N ≤ 10 nodes with the tool geng [32]. There are 112 graphs of six nodes, but 11.7 million graphs of ten nodes. The graphs have similar shapes of their discrete probability distributions for the number of edges M (and these are shown in Fig 3).
The set of nonisomorphic graphs is not a graph model per se, because it does not assign a probability to each graph. Studying it is still interesting since it allows us to explore the full range of possibilities. One can, however, turn this set into a model by assigning an equal weight to every graph. For our statistical analysis this is what we do. In other words, we use a model that enables us to understand the inherent features of connected graphs. But most importantly, we can scan all members of this model and thus cover its extreme features, something that would not be possible with a model that one would need to sample stochastically.
For every graph size N ≤ 10, we form a data set. A record (or row) in this data set describes any node i from any graph G via the following data columns: an identifier for G, an identifier for i, the values of centrality measures for node i, and the exact numerical results for the outbreak size Ω (using i as the only infection seed) for the nine β steps between 1/16 and 16. A graph G is represented in the data set N times, in records describing the importance and extent of outbreak for each of the graph’s nodes. Thus, the number of records in the data set for a given graph size N is N times the number of nonisomorphic, connected, undirected graphs of that size; this means 117 million records for N = 10.
Centrality measures
Any of the nodes in a graph may be the one starting an outbreak. As descriptive features for the nodes, we use seven standard network measures—most of the usually branded as centrality measures—which capture different aspects of a node’s importance in an undirected, connected graph [13, 33]. These are defined in Table 1. PageRank and Katz centrality take a parameter α: for PageRank, α = 0.85 (the “damping factor”), while for Katz centralities, α = 0.1 (the “attenuation factor”).
Table 1. Centrality measures.
Centrality | Definition |
---|---|
Degree centrality | x = AD−1 x |
Eigenvector centrality | |
PageRank | x = D(D − α A)−1 1 |
Katz centrality | x = (I − α A)−1 1 |
Closeness centrality | Ci = (N − 1)/∑j dij |
Betweenness centrality | Ci = ∑j,k σjk|i/σjk |
Coreness | Ci = largest k so i is in a k-core |
All network measures are normalized to the [0, 1] range. For the degree centrality, the node degrees are divided by the maximum degree N − 1. Similarly, the closeness, betweenness, and coreness centralities are normalized so that the maximum value is one. The eigenvector- and Katz centrality are normalized by the Euclidean length (or 2-norm) of the vector of node centralities x, while the PageRank centralities in x are normalized so they sum to one.
We use the edge density M/N (which is equal to half of the average degree) as an eighth predictor. It is also normalized to the [0, 1] range.
Supervised learning for predicting Ω
In order to understand the fundamental ability of the centrality measures in graphs of size N to predict the target variable Ω(β), all small combinations of centralities are tried out as predictor variables (or features). We thus set up the following experiments: for every 6 ≤ N ≤ 10 (6 being the smallest graph size which allows sufficient data), for every 1/16 ≤ β ≤ 16 (with nine values for β in a geometric sequence), and for every combination of centralities, a regression analysis is run using the relevant data columns in the complete data set for N. Each regression analysis trains, tunes, and cross-validates a statistical model on a development-fraction of the data, and tests the tuned model on the remaining test data. The test results are then reported, and some of the resulting models are also visualized.
Unique target-predictor data records
Assume a given N and β. All single centrality measures, and all combinations of two and three of these are selected as predictors for the same target Ω(β) in independent analyses. A fraction of these selected data records are exact duplicates; this happens primarily for records describing automorphically equivalent nodes. All duplicates are removed from the data prior to the regression analysis, so that none of the test data is identical to any training data.
The train-test split and the learning curve
It is not clear a priori how to split the data set into development data (for training and validation) and test data. Particularly when the data is abundant (the case when N is large), the development data need only be as large as necessary. In other cases, the development data should instead be larger, to avoid learning a high-variance (or overfitted) statistical model. For this, regardless of the particular regression algorithm used, the size of the development data is treated as a hyperparameter, and is tuned. Ten data sizes are selected on a linear scale up to a maximum size. Then, a regressor is trained and cross-validated using ten-fold cross-validation on randomly sampled training data of each required data size, and the training and validation performance are plotted against the data size. A suitable development data size is that at which the validation curve (a) is close to the training curve, and (b) levels off, so that increasing the data size brings no further advantage. We illustrate the convergence of the training data in S1 Fig. Other learning curves show a similar convergence.
While 75% of the N = 6 data set (around 400 data points) is needed as training data, 5% is sufficient at N = 10 (around 5 million data points, varying with each target-predictor combination). All remaining data is used as test data.
Regression algorithms and hyperparameter tuning
We use two algorithms for statistical learning: Random Forest Regression (RFR) and Support Vector Machine Regression (SVR) and their implementations from the Scikit-learn machine-learning library [34]. These statistical models are different in design. While SVR solves an optimization problem, RFR is an ensemble of weak learners (decision trees), each trained independently with a greedy heuristic using a bootstrap sample from the training data (see Ref. [35] for algorithmic details).
Both algorithms are able to learn nonlinear relationships between multiple predictors and a target variable, and have hyperparameters which are themselves trained using a grid search with cross-validation. For RFR, the hyperparameters are (a) the number of decision trees (up to 20), and (b) the minimum number of samples required to be at a leaf node (tuned between 1% and 0.01% of the size of the training set); the latter also helps to control overfitting [35]. For SVR, the hyperparameters are (a) the type of kernel (either linear or a radial basis function, RBF), (b) the regularization parameter C (tuned between 0.1 and 100) [34]. In all cases, SVR models are configured with an automatically scaled kernel coefficient γ, and a distance of estimation at which no penalty is given in the training loss function ϵ = 0.01 [34].
In our study, only small combinations of two or three predictors are used; some of these predictors may be correlated (for example, a node’s degree centrality and a spectral measure), but we still want to study their combined predictive power. Both algorithms yield stable prediction values in the presence of correlated predictors. In particular, RFR is designed to be resilient even with strongly correlated variables: it averages the predictions of many independently trained decision trees, which acts as a stabilizer allowing two strongly correlated variables to both be important in the model [35].
RFR scales best computationally with an increasing size of the training data. On the other hand, unlike RFR, SVR models with either a linear or an RBF kernel obtain a smooth, continuous regression landscape, which, when visualized, is easily interpretable. Both regressors achieve similar performance scores on the data in this study. In the Results section, we report the performance scores of the RFR models, which are the most efficient to train among all. When visualizing the statistical models obtained, we use instead the more interpretable SVR models.
The performance metric R2
The coefficient of determination R2 serves as the scoring function for any regressor. This is the fraction of the variance in the target that was predicted correctly, and has the expression 1 − Sres/Stot, where Sres is the residual sum of squares (or the distance between the test data and the estimation) and Stot is the total sum of squares (of the target data points to the target mean). A perfect model has R2 = 1. A constant model which predicts the target mean will score R2 = 0; arbitrarily large negative values are possible.
Significance tests
We also further evaluate the significance of the regression with permutation-based p-values. The target values are permuted so that any structural dependency between target and predictors is lost; then, a ten-fold cross-validation is performed on the development data, with each fold trained on 100 permutations. This tests the following null hypothesis: the predictor data and the target data are independent, so no relationship between them can be significant [36]. We always obtain the minimum p-value possible, which rejects the null hypothesis, and confirms that a true dependency is discovered.
Results
Examples
We start our exhibition of results by studying an example—the raw scatter plots of Ω as a function of the eigenvector centrality, in Fig 4A–4C. Every point in these figures corresponds to one node in one ten-node graph. The color represents the degree centrality of every node. In panel A—corresponding to a very small transmission rate (β = 1/16)—we can see the nodes of different degrees grouping together into (partly overlapping) clusters, with the clusters corresponding to higher values for the degree centrality also having comparatively higher Ω values. On the other hand, the value of the eigenvector centrality does not correlate strongly with Ω, and the nodes with the highest eigenvector centrality do not also have the highest Ω value. Note that, even though e.g. Fig 4B looks like generated by a random process, it is not. Everything comes from the restriction of graphs to be simple and of ten nodes.
Consequently, for β this low, the value of the degree is expected to be much more predictive of that outbreak size than the eigenvector centrality: knowing the value of the degree leads to being able to estimate Ω within a small interval. This is easy to understand, since the probability of any outbreak is small and decaying fast with the size of the outbreak [23]: if the outbreak does not die immediately, only the neighbors of the seed node are infected. The more neighbors, the larger the outbreak—hence the tidy clustering by degree at this small value of β.
As β increases—panels B and C in Fig 4—the clusters defined by the degree merge. When β = 1 (panel B), the eigenvector centrality becomes a slightly better predictor of Ω than in panel A, but still far from good. At this value of β, neither the degree, not the eigenvector centrality appear to be good predictors when considered individually, but their combination is promising: knowing both may lead to a good estimation of Ω. Furthermore, note that for the intermediate value β = 1, the range of Ω values (around 7) is much larger than panels A (around 0.8) and C (around 2) which illustrates the non-linearity of the SIR model even in small networks. As well-known [5], when N → ∞ such non-linearities will sharpen to a threshold separating one phase where the disease can spread to a finite fraction of the population and one phase where the outbreaks will always be small.
The edge density of the networks also gives interesting scatterplot patterns. Fig 5 shows the same example as Fig 4, except here the colors show the edge density of the network from which each node originated. This figure demonstrates the secondary effect of connections beyond the seed node—in denser networks (redder nodes in the figure) there are more opportunities of tertiary (and further, higher-order) infections, so the clusters of nodes which have similar density values now have a large vertical spread, do not correspond with the degree clusters, and tend to have low and medium eigenvector centrality values. When knowing both the value of the edge density, and that of the eigenvector centrality, one may be able to estimate Ω to within a small interval, at least for low and medium β values. The corresponding plots for PageRank are shown in S2 and S3 Figs. They show how PageRank separates clusters better and thereby outperforms eigenvector centrality as a predictor.
Note that the vast majority of nodes are a shade of blue in Fig 5—cf. the probability distribution for the number of edges, in Fig 3—so that the scatter plots of panels B and C primarily look blue does not mean that the density of points at the red end of the color spectrum is higher.
Interestingly, the range of Ω within single networks is not much smaller than the entire range of Ω-values (for all nodes in all networks). In Fig 6 we show some networks with extreme ranges of Ω. For all of these, the nodes of the highest Ω belong to a densely connected part of the networks (typically a clique), and the one with the smallest Ω is a degree-one node at the end of a chain-like protrusion from the dense cluster. Probably this description holds for all extreme examples, at least for small enough β.
Single-measure predictability
In the previous section, we studied the relationship between the eigenvector centrality of nodes and the expected outbreak size if the nodes are the infection sources. In this section, we scale up to all seven centrality measures and all nine β values we study. As a correlation measure, we use the coefficient of determination R2 (see the Methods section). In Fig 7, we plot heatmaps of the performance of our centralities as predictors for Ω. First we note that this analysis confirms that the degree is a good predictor for small β, confirming an observation in Ref. [13]. Ref. [14] argues that the degree controls the disease spreading for both small and large β (but not intermediate β); in our study it is less successful at large β. For medium and large β, closeness is the better network predictor.
The only measure fairing worse than the three spectral centralities (eigenvector centrality, Katz centrality and PageRank) is betweenness centrality. The rationale of the betweenness derives from an imagined dynamic system where packets are routed along shortest paths, which clearly is very far from the SIR model [37]. For example, being connected to a node that is very easily infected would make you easily infected. That recursive logic does not apply to the betweenness centrality. It does, however, apply to the spectral centralities, so why they perform worse than closeness, degree and coreness is harder to understand. Ref. [38] promotes coreness as a importance predictor, so for medium and large β we confirm that observation (but for low β, coreness is not performing very well). The spectral centralities can be motivated from random walk processes [33]. These are less sensitive to parameter values compared to compartmental disease spreading models (they lack the threshold behavior of the latter). On the other hand, compartmental models far from the threshold are less sensitive to the network structure.
We cannot think of a quick explanation why closeness centrality has such high predictive power. It has been noted before [23] but is probably restricted to small graphs. Some authors have pointed out that closeness centrality becomes less useful for larger graphs [33]. One argument is that the centrality of any node i should be most dependent on nodes in the extended neighborhood ΓD(i) (i.e. the part of the network within a certain distance D from i). However, for closeness centrality, the contribution of nodes in ΓD(i) goes to zero as N increases. Making any change to ΓD(i) other than disconnecting i from the bulk of the network will almost not change its closeness centrality for large enough networks. Our study, however, concerns small networks and in this realm, closeness centrality is apparently more useful.
Predictability with combinations of measures
We proceed to investigate how adding another feature can increase the predictability of the expected outbreak size. In Fig 8, we plot the best performing combinations of two features. A first thing to notice is that, going from one to two features, the R2 values increase considerably. By the intuition given in Figs 4 and 5, certain structural measures can complement each other to a great extent. Only for very large β, R2 drops below 0.9. Second, we notice that closeness centrality—the best one-feature predictor—is now overtaken in performance. For predictions with two features, the combination of degree with any spectral centralities performs well. This means that the spectral centralities, although not performing well by themselves, complement degree for larger β (while for smaller β, degree performs well by itself).
The most fundamental information we have not included in the prediction so far is the number of edges in the graph. That is a different type of feature in that it is the same for all nodes in the same graphs, and only a tool to distinguish nodes in graphs of different edge densities. In Fig 9, we show the coefficient of determination of one of our network centralities in combination with the edge density of the graph the node belongs to. By comparing to Fig 8, we can see that the predictive performance is comparable to the case of two network centralities. The two top-scoring combinations of Fig 8—degree and PageRank, and degree and Katz, respectively—are replaced by PageRank and Katz together with the density. Thus, roughly speaking, the graph density adds equally useful information as the degree; and of course, if a small graph has many edges, then many of its nodes have relatively large degrees.
For a further analysis of how different centralities complement one another, in Fig 10 we display the R2 values of PageRank and Katz in combination with all the others. This shows the observation above more clearly—degree adds similar information as density, and the size-sensitive centralities complement PageRank and Katz better than, e.g., betweenness. The rationales of Katz and PageRank are similar, and so is most of their behavior combined with other measures. Betweenness and degree, however, stand out as improving PageRank much more than Katz. Furthermore, closeness improves PageRank more than degree does, but the difference is small.
In Fig 11, we extend our investigation to three features. This time we do not separate the edge density from the other features. We show the combinations whose lowest coefficients of determination at N = 10 are as high as possible. For three features, R2 approaches one—for the combination edge density, eigenvector centrality and PageRank, the least well predicted β, N-pair has an R2 as large as 0.960. Including even more features does not give a dramatic improvement in the performance. The situation is similar to the two-feature case in the sense that the spectral centralities are doing better at the expense of, e.g., closeness and coreness.
Unlike the case of only one feature, when the number of features is two or more, the predictability among the best combinations of predictors is consistently worse for large β values. This observation (in agreement with Ref. [39]) means that there are network structures not captured by any of our eight features that affect Ω in this region; and what that would be, we have to leave as a question for the future. Note that as β increases, the range of Ω decreases, so, in absolute terms, the network structure matters less. If we were relying on stochastic simulations this could potentially be an explanation (fluctuations would affect R2 more), but we do use exact values of Ω.
Besides decreasing with β, the predictability also decreases somewhat with the size of the network. However, the larger the number of features used as predictors, the more stable the prediction performance is. We highlight this in Fig 12 where we plot the highest R2 values over all configurations of one, two or three features; with 3 features, the performance score remains stable in this interval of network sizes. As mentioned before, unlike the majority of the literature, we are not primarily interested in the N → ∞ limit. This result is interesting for a basic understanding of the predictability of dynamical systems on networks as one intuitively would think that the larger fluctuations in small networks would make them less predictable. If one considers a specific network model, we believe predictability would increase with system size.
Prediction maps
In our final analysis, we look closer at the statistical models that we learned. The models are visualized in their entirety (see the Methods section). In Fig 13, we show the prediction of outbreak sizes by the best performing combination of two features (the degree and PageRank centralities). Since the regressors see the features as continuous, this type of plot forms a continuous map of Ω in the parameter space. The real values of all quantities we plot will not fill out the space, but rather form a pattern of points. In the figures, regions of parameter space devoid of data points are marked by a diagonal grid.
Even if it is meaningless to talk about predictions at coordinates other that graphs can actually attain, these continuous prediction maps visually express the joint contribution of the quantities better than any plot containing only the valid points. Reading the plot by increasing β values gives a dynamic sense of the shifting roles of the two features.
In Fig 13, we show the predicted Ω for all PageRank and degree values. We can see that the nodes with the highest Ω, for all β-values, tend to have large degree and low PageRank. Intuitively, one would expect nodes with higher PageRank to perform better than those with lower PageRank [15]. The reason for this counter-intuitive result is that PageRank is normalized per graph, and thus less sensitive to the graph size (compared to e.g. degree that is bounded by N, or closeness that is bounded by the reciprocal diameter and typically going to zero as 1/log N in network models). This means that a node with high degree and low PageRank is typically a node in a very dense graph, where the other nodes will help propagate the outbreak and thus promote a higher Ω. This illustrates how combining two measures can encode different levels of information—about the local position of a node, and about the entire network’s propensity to sustain epidemic outbreaks. This reasoning also applies to Katz centrality and its combinations (even though Katz centrality is normalized in a different way).
Fig 14 shows a plot corresponding to Fig 13 but involving the combination of edge density and Katz centrality, which performs equally well as the combination of edge density and PageRank. In this case, Ω increases with both features and the prediction map changes more smoothly than for the PageRank and degree system. Nodes in networks of medium and high density are more likely to have a larger influence, but the value of the Katz centrality is also discriminative: while all nodes from a very dense network will seed a large outbreak, not any node from an average-density network will also do so, but only those with a maximum value for their Katz centrality.
In our final analysis, in Fig 15 we investigate the dependence on N of the prediction maps of PageRank and degree. In this plot we keep β = 1, so that the panel for β = 1 of Fig 13 corresponds to the panel for N = 8. In general, the size effects are small. The change is smooth, so the general picture would probably extrapolate to much larger N.
Discussion
In this work, we have addressed the problem of finding important nodes with respect to disease spreading in networks. All other studies we are aware of phrase this as a problem of ranking nodes in a given network and validating against a ranking obtained based on disease-spreading models. We, on the other hand, try to predict the actual value, not the ranking, from the values of standard network-positional measures. As opposed to other studies, we use combinations of these network measures, and statistical learning. A limitation of statistical learning is that it learns better models for feature values where there are sufficient training data points; areas on the periphery of the prediction maps where few examples exist (e.g., there is only one nonisomorphic graph of maximum density in the data set) will be predicted less accurately.
Our work can be directly applicable to designed interaction networks (such as networks of animal trade [26, 27]) and situations where social networks can be mapped out sufficiently and are relevant for outbreaks (such as influenza among college students [40]). At a larger scale, when the social ties are no longer possible to record comprehensively, our work needs to be extended by estimators of centralities that rely on local information [21, 22].
Apart from direct applications, our paper sheds light on the fundamental question of how network structure affects the predictability of outbreaks. Since the importance of nodes depends on the network structures very non-linearly, it is a harder prediction task than ranking nodes. Still, the best statistical models we learned (using the seven standard network measures as predictors) are able to reach a worst-case coefficient of determination as high as R2 = 0.69 with one predictor, 0.92 with two, and 0.96 for three predictors. With a single feature, we find the degree centrality the best for very low β and closeness the best otherwise. This confirms the findings from [23], whereas others find degree to be the best for the entire parameter space [13] or only the largest and smallest β. The most successful combinations of features typically involve one normalized spectral centrality, such as PageRank or Katz centrality, and one measure sensitive to the edge density in the graphs (such as edge density itself, or degree).
There are many directions worth exploring at the interface between machine learning and theoretical epidemiology, more or less similar to the current work [41]. Straightforward continuations would be to investigate: larger, model networks by stochastic simulations; newer, more specialized measures for predicting epidemic importance [11]; or other scenarios to optimize (such as targeted vaccination [15, 16] or sentinel surveillance [23, 40]). One question remaining is why the prediction using multiple features is worse at high β. This means that there are network structures not captured by any of our eight measures that affect the importance—is there some simple, undiscovered network measure capturing these?
Supporting information
Acknowledgments
We thank the organizers of the YEP 2019 workshop on Information Diffusion on Random Networks at TU Eindhoven, where we initiated this work.
Data Availability
All relevant data are within the manuscript and its Supporting Information files.
Funding Statement
PH was supported by JSPS KAKENHI Grant Number JP 18H01655 and by the Grant for Basic Science Research Projects by the Sumitomo Foundation. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
References
- 1. Anderson RM, May RM. Infectious diseases of humans. Oxford: Oxford University Press; 1991. [Google Scholar]
- 2. Hethcote HW. The mathematics of infectious diseases. SIAM Rev. 2000;42(4):599–653. 10.1137/S0036144500371907 [DOI] [Google Scholar]
- 3. Giesecke J. Modern infectious disease epidemiology. 3rd ed Boca Raton, FL: CRC Press; 2007. [Google Scholar]
- 4. Kiss IZ, Miller JC, Simon PL. Mathematics of Epidemics on Networks. Cham, Switzerland: Springer; 2017. [Google Scholar]
- 5. Pastor-Satorras R, Castellano C, Van Mieghem P, Vespignani A. Epidemic processes in complex networks. Rev Mod Phys. 2015;87:925–979. 10.1103/RevModPhys.87.925 [DOI] [Google Scholar]
- 6. Colizza V, Barrat A, Barthélemy M, Vespignani A. The role of the airline transportation network in the prediction and predictability of global epidemics. Proc Natl Acad Sci USA. 2006;103(7):2015–2020. 10.1073/pnas.0510525103 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7. Aiello AE, Simanek AM, Eisenberg MC, Walsh AR, Davis B, Volz E, et al. Design and methods of a social network isolation study for reducing respiratory infection transmission: The eX-FLU cluster randomized trial. Epidemics. 2016;15:38–55. 10.1016/j.epidem.2016.01.001 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8. Wang Z, Bauch CT, Bhattacharyya S, d’Onofrio A, Manfredi P, Perc M, et al. Statistical physics of vaccination. Phys Rep. 2016;664:1–113. [Google Scholar]
- 9. Lü L, Chen D, Ren XL, Zhang QM, Zhang YC, Zhou T. Vital nodes identification in complex networks. Phys Rep. 2016;650:1–63. 10.1016/j.physrep.2016.06.007 [DOI] [Google Scholar]
- 10. Holme P. Efficient local strategies for vaccination and network attack. Europhys Lett. 2004;68(6):908–914. 10.1209/epl/i2004-10286-2 [DOI] [Google Scholar]
- 11. Šikić M, Lančić A, Antulov-Fantulin N, Štefančić H. Epidemic centrality—is there an underestimated epidemic impact of network peripheral nodes? Eur Phys J B. 2013;86(10):440 10.1140/epjb/e2013-31025-5 [DOI] [Google Scholar]
- 12. Bauer F, Lizier JT. Identifying influential spreaders and efficiently estimating infection numbers in epidemic models: A walk counting approach. EPL (Europhys Lett). 2012;99(6):68007 10.1209/0295-5075/99/68007 [DOI] [Google Scholar]
- 13. De Arruda GF, Barbieri AL, Rodríguez PM, Rodrigues FA, Moreno Y, da Fontoura Costa L. Role of centrality for the identification of influential spreaders in complex networks. Phys Rev E. 2014;90(3):032812 10.1103/PhysRevE.90.032812 [DOI] [PubMed] [Google Scholar]
- 14. Ames GM, George DB, Hampson CP, Kanarek AR, McBee CD, Lockwood DR, et al. Using network properties to predict disease dynamics on human contact networks. Proc Roy Soc B: Biol Sci. 2011;278(1724):3544–3550. 10.1098/rspb.2011.0290 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15. Miller JC, Hyman JM. Effective vaccination strategies for realistic social networks. Physica A: Statistical Mechanics and its Applications. 2007;386(2):780–785. 10.1016/j.physa.2007.08.054 [DOI] [Google Scholar]
- 16. Rushmore J, Caillaud D, Hall RJ, Stumpf RM, Meyers LA, Altizer S. Network-based vaccination improves prospects for disease control in wild chimpanzees. J Roy Soc Interface. 2014;11(97):20140349 10.1098/rsif.2014.0349 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17. Smieszek T, Salathé M. A low-cost method to assess the epidemiological importance of individuals in controlling infectious disease outbreaks. BMC Medicine. 2013;11(1):35 10.1186/1741-7015-11-35 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18. Borgatti SP, Carley KM, Krackhardt D. On the robustness of centrality measures under conditions of imperfect data. Social Networks. 2006;28(2):124–136. 10.1016/j.socnet.2005.05.001 [DOI] [Google Scholar]
- 19. Génois M, Barrat A. Can co-location be used as a proxy for face-to-face contacts? EPJ Data Science. 2018;7(1):11. [Google Scholar]
- 20.Wilder B, Yadav A, Immorlica N, Rice E, Tambe M. Uncharted but not Uninfluenced: Influence Maximization with an uncertain network. In: Proceedings of the 16th Conference on Autonomous Agents and MultiAgent Systems. International Foundation for Autonomous Agents and Multiagent Systems; 2017. p. 1305–1313.
- 21. Zhang Y, Kolaczyk ED, Spencer BD, et al. Estimating network degree distributions under sampling: An inverse problem, with applications to monitoring social media networks. Ann Appl Stat. 2015;9(1):166–199. 10.1214/14-AOAS800 [DOI] [Google Scholar]
- 22.Ruggeri N, De Bacco C. Sampling on networks: estimating eigenvector centrality on incomplete graphs; 2019.
- 23. Holme P. Three faces of node importance in network epidemiology: Exact results for small graphs. Phys Rev E. 2017;96:062305 10.1103/PhysRevE.96.062305 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24. Barabási AL, Albert R, Jeong H. Mean-field theory for scale-free random networks. Physica A. 1999;272(1):173–187. [Google Scholar]
- 25. Ozana M. Incipient spanning cluster on small-world networks. Europhys Lett. 2001;55(6):762–766. 10.1209/epl/i2001-00346-7 [DOI] [Google Scholar]
- 26. Bajardi P, Barrat A, Natale F, Savini L, Colizza V. Dynamical Patterns of Cattle Trade Movements. PLOS ONE. 2011;6(5):1–19. 10.1371/journal.pone.0019869 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27. Dawson PM, Werkman M, Brooks-Pollock E, Tildesley MJ. Epidemic predictions in an imperfect world: modelling disease spread with partial data. Proc Roy Soc B: Biol Sci. 2015;282(1808):20150205 10.1098/rspb.2015.0205 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28. Chowell G, Sattenspiel L, Bansal S, Viboud C. Mathematical models to characterize early epidemic growth: A review. Phys Life Rev. 2016;18:66–97. 10.1016/j.plrev.2016.07.005 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29. Fortunato S. Community detection in graphs. Phys Rep. 2010;486(3-5):75–174. 10.1016/j.physrep.2009.11.002 [DOI] [Google Scholar]
- 30.Kempe D, Kleinberg J, Tardos É. Maximizing the spread of influence through a social network. In: Proceedings of the ninth ACM SIGKDD international conference on Knowledge discovery and data mining. ACM; 2003. p. 137–146.
- 31. Radicchi F, Castellano C. Fundamental difference between superblockers and superspreaders in networks. Phys Rev E. 2017;95:012318 10.1103/PhysRevE.95.012318 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32. McKay BD, Piperno A. Practical graph isomorphism, II. J Symb Comput. 2014;60:94–112. 10.1016/j.jsc.2013.09.003 [DOI] [Google Scholar]
- 33. Newman M. Networks: An Introduction. Oxford University Press; 2010. [Google Scholar]
- 34. Pedregosa F, Varoquaux G, Gramfort A, Michel V, Thirion B, Grisel O, et al. Scikit-learn: Machine Learning in Python. J Mach Learn Res. 2011;12:2825–2830. [Google Scholar]
- 35. Friedman J, Hastie T, Tibshirani R. The elements of statistical learning. New York: Springer; 2001. [Google Scholar]
- 36. Ojala M, Garriga GC. Permutation tests for studying classifier performance. J Mach Learn Res. 2010;11(Jun):1833–1863. [Google Scholar]
- 37.Koschützki D, Lehmann KA, Peters L, Richter S, Tenfelde-Podehl D, Zlotowski O. Centrality Indices. In: Brandes U, Erlebach T, editors. Network Analysis. vol. 3418 of Lecture Notes in Computer Science. Berlin, Heidelberg: Springer; 2005. p. 16–61.
- 38. Kitsak M, Gallos LK, Havlin S, Liljeros F, Muchnik L, Stanley HE, et al. Identification of influential spreaders in complex networks. Nature Physics. 2010;6(11):888 10.1038/nphys1746 [DOI] [Google Scholar]
- 39. Scarpino SV, Petri G. On the predictability of infectious disease outbreaks. Nat Comm. 2019;10(1):898 10.1038/s41467-019-08616-0 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40. Christakis NA, Fowler JH. Social network sensors for early detection of contagious outbreaks. PloS ONE. 2010;5(9). 10.1371/journal.pone.0012948 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41. Hay SI, George DB, Moyes CL, Brownstein JS. Big data opportunities for global infectious disease surveillance. PLoS Medicine. 2013;10(4):e1001413 10.1371/journal.pmed.1001413 [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
All relevant data are within the manuscript and its Supporting Information files.