Browse Subject Areas

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Social network structure is predictive of health and wellness

  • Suwen Lin,

    Roles Conceptualization, Formal analysis, Methodology, Writing – original draft, Writing – review & editing

    Affiliations Department of Computer Science and Engineering, University of Notre Dame, Notre Dame, IN, United States of America, Interdisciplinary Center for Network Science and Applications, University of Notre Dame, Notre Dame, IN, United States of America

  • Louis Faust,

    Roles Formal analysis, Methodology, Writing – original draft, Writing – review & editing

    Affiliations Department of Computer Science and Engineering, University of Notre Dame, Notre Dame, IN, United States of America, Interdisciplinary Center for Network Science and Applications, University of Notre Dame, Notre Dame, IN, United States of America

  • Pablo Robles-Granda,

    Roles Methodology, Writing – original draft, Writing – review & editing

    Affiliations Department of Computer Science and Engineering, University of Notre Dame, Notre Dame, IN, United States of America, Interdisciplinary Center for Network Science and Applications, University of Notre Dame, Notre Dame, IN, United States of America

  • Tomasz Kajdanowicz,

    Roles Methodology, Writing – original draft, Writing – review & editing

    Affiliation Department of Computational Intelligence, Wroclaw University of Science and Technology, Wrocław, Poland

  • Nitesh V. Chawla

    Roles Conceptualization, Supervision, Writing – original draft, Writing – review & editing

    Affiliations Department of Computer Science and Engineering, University of Notre Dame, Notre Dame, IN, United States of America, Interdisciplinary Center for Network Science and Applications, University of Notre Dame, Notre Dame, IN, United States of America, Department of Computational Intelligence, Wroclaw University of Science and Technology, Wrocław, Poland

Social network structure is predictive of health and wellness

  • Suwen Lin, 
  • Louis Faust, 
  • Pablo Robles-Granda, 
  • Tomasz Kajdanowicz, 
  • Nitesh V. Chawla


Social networks influence health-related behavior, such as obesity and smoking. While researchers have studied social networks as a driver for diffusion of influences and behavior, it is less understood how the structure or topology of the network, in itself, impacts an individual’s health behavior and wellness state. In this paper, we investigate whether the structure or topology of a social network offers additional insight and predictability on an individual’s health and wellness. We develop a method called the Network-Driven health predictor (NetCARE) that leverages features representative of social network structure. Using a large longitudinal data set of students enrolled in the NetHealth study at the University of Notre Dame, we show that the NetCARE method improves the overall prediction performance over the baseline models—that use demographics and physical attributes—by 38%, 65%, 55%, and 54% for the wellness states—stress, happiness, positive attitude, and self-assessed health—considered in this paper.


Social networks play an important role in the diffusion of behavior, attitudes, tastes, and beliefs. Several studies have shown that such characteristics leverage the existing social connections and ties for diffusion. This phenomenon is demonstrative of the similarity or homophily between the nodes in the network (ego and alter, for example) and also of the social influences that affect people. Some examples of this diffusion process include: the spread mechanism of diverse health conditions over social networks—such as obesity [1] and smoking [2], the effect of social network on personal psychological traits—such as affection [3] and happiness [4], and the spread of health behavior through social networks [5]. People’s interactions through social networks or social media platforms have also been used to discover aspects of emotions experienced by individuals [6], mental illness [7, 8], and activity patterns [9]. Different social network types, such as friendship or non-friendship networks, can also provide insights about mental health in adults [10].

The network effect hypothesis suggests that similarities in lifestyle and health practice, including health behavior, moods, emotions, cultural norms, etc. [11, 12], among individuals is also a result of influence and diffusion within their network through their ties. In addition, the self-selection hypothesis suggests that ties among people are driven by similar pre-dispositions to attitudes or beliefs or behavior, so those factors might even be driving the formation of the tie [13, 14]. What is the inter-play between the network effect theory and self-selection hypothesis on its influence of individual’s health or wellness state? This paper considers wellness states to comprise of the attributes of stress, happiness, positive attitude, and health. To what end does the social network structure, in itself, influence the prevalence or influence of health / wellness states of individuals? What role do individual attributes such as demographics and health behavior play in the wellness state of individuals? What is more predictable of a wellness state—health behavior and demographic data or social network? Formally, the following are the two research questions that we answer in this paper that encompass our hypotheses and questions raised above.

RQ1: Is social network structure indicative of health behavior? (Analysis)

A social network structure can be measured by network properties such as node degree, clustering coefficients, and centrality. And we consider the health behavior as data captured from wearable devices—heart rate, daily steps, and activity states—and gender as the demographic data (the cohort is all similar age group of college going students). We analyze, quantitatively and qualitatively, the relationship between the social network structure and the aforementioned health information. An example of this relation is shown in Fig 1. This figure shows how the node degree on the network (shown in dashed box-plot) is related to the changes in the heart rate (shown with regular-lines). The figure also represents that these values seem positively correlated because, as time progresses, the mean and the median of node degree (shown as blue lines and as green triangles, respectively) increase or decrease when the mean or median of the heart rate (show as orange lines and dark green triangles, respectively) also increase or decrease, where the corresponding normalized cross correlation is 0.84 (p < .05). In the subsequent sections, we provide evidence that social network structure contains information that captures the change in statistics of health behavior.

Fig 1. Main result for the relation between network structure and health behavior.

RQ2: How predictable are the wellness states from the incorporation of social network structure? (Prediction)

While previous research has shown that health behavior data captured from wearables is indicative of diseases or symptoms of diseases [15, 16], we incorporate the social network structural features in addition to health behavior data captured by wearables using a machine learning method (NetCARE) that predicts different states of health and wellness. We consider various wellness states such as stress, happiness, positive attitude, and self-assessed health indicators. Fig 2 summarizes the improvement of overall F1-Measure and within-class F1-Measure for positive attitude prediction by involving the network structural information. Clearly, the knowledge of social network structure (network effect) provides a significant improvement over using the data from the wearables and / or the individual’s demographics alone (self data).



We use data from the NetHealth study [17], an ongoing project at the University of Notre Dame, collecting survey, phone and Fitbit data from an initial cohort of 698 first-year students who were enrolled in the Fall of 2015. All procedures were fully approved by the University of Notre Dame Institutional Review Board before distribution and performed in accordance with the relevant guidelines and regulations. All study participants provided informed consent and acknowledged all of the study goals, procedures, and data privacy, prior to any data collection.

An outline of the recruitment process and student sample numbers are provided in Fig 3. Participants were provided with a Fitbit Charge HR and had an app installed on their phone, which was leveraged to build the social network on the basis of communication patterns (call, message). They were also required to complete an entrance survey before arriving on campus and follow-up surveys after each semester. Surveys contain a battery of questions regarding individual demographics and self-reported mental and physical wellness assessments. It should be noted that the survey questions are different for each semester and not all students took part in all the surveys.

Fig 3. Consort diagram of NetHealth recruitment and students selected for this analysis.

We consider the following three data sources from NetHealth:

  1. Health Behavior and Demographic Data. The health behavior data, obtained from Fitbit devices, and includes health-related behavioral variables such as heart rate, step and activity states. Besides the minute-by-minute raw heart rate and step data, Fitbit also separates and tracks four activity states per minute based on METS, a weight-agnostic measure of activity, that represent sedentary, lightly active, fairly active, and very active activity states [18]. In addition, we also consider the gender of the participants in our analysis (the only demographic feature).
  2. Social Network Data. The students’ social networks were constructed using their communication activities including texts and phone calls captured through an App installed on their phone for the study. This App can automatically gather the time, source and destination of their communication activities. As for phone calls, the App can also record the duration of the call and whether the call was answered.
  3. Wellness State. These data are from surveys answered by participants each academic semester. Due to the different survey questions across semesters, we cannot jointly analyze all the surveys. For that reason, we selected the survey taken in Fall 2016, which contains questions about wellness states—stress, happiness, positive attitude and self-assessed health—and covers most of our participants (380 subjects). Accordingly, we considered contemporary data from fitness trackers and social interaction from August 2016 to December 2016. We excluded 47 participants for missing Fitbit or social network data. As a result, our data covers 325 participants.

Table 1 provides a demographic overview of our sample from the NetHealth study (not all participants report gender and race). Table 2 presents the four different wellness attributes we examine in this study, stratified by different levels based on their respective Likert scales. For Stress, lower levels indicate less stress and higher levels indicate more stress. Regarding Happiness, Positive Attitude and Health, lower levels indicate more negative outlooks such as no happiness or poor health and higher levels indicate more positive outlooks.

Table 2. Summary of wellness-related survey data in the NetHealth study.

Data preprocessing

There are two steps for data preprocessing. First, to ensure there is no bias between the students with different levels of sparsity in daily Fitbit data, we eliminated samples with less than 80% daily wear time (19 out of 24 hours) in our analysis as this threshold has been shown to provide reasonable estimates of students activity [17]. Second, we aggregated the data from August 2016 to December 2016 into weekly time-points, where each data point includes the given week’s Fitbit data, social data and corresponding survey data from the Fall 2016 survey. The data was aggregated in this manner to better fit the streaming Fitbit and social network data to the single survey outcome.

Feature extraction

We extracted several features, detailed in the following subsections, from these data streams to build an appropriate feature vector for the learning algorithms.

Gender information.

The World Health Organization has recognized gender differences in stress-related syndromes [19]. For example, females have much higher incidence rates of stress than males. Based on this insight, we extracted the gender information from the survey data to use as an additional feature in the feature vector. Table 2 shows the population distributions for the different levels of survey variables for males and females. Specially, consider the case of stress, happiness, and health, males mainly fall into level 2 and 3, and most of the females fall into level 3. We use gender as an independent variable (predictor) in our analysis.

Health behavior data.

We categorize the physical attributes captured from Fitbit (heart rate, steps, and activity states) as health behavior data. This data is segmented into the weekly intervals discussed in the previous section. Then, summary statistics of mean and variance (or standard deviation) are computed on these temporal segments.

Heart Rate. We computed the mean and variance for the heart rate over each week for each participant. We also applied ANOVA tests to examine the heart rate differences among different stress levels, happiness levels, health levels, and positive attitude levels. Results showed significant differences of heart rates for different stress levels (p < .001), happiness levels (p < .001), health levels (p < .001), and positive attitude levels (p < .001).

Steps. The raw data for steps are also recorded minute by minute, but it is more likely to be zero for most of the minutes in one week due to the nature of walking. Thus, we first transformed the raw minutely step data into the sum of steps each day. Then, we computed the mean and standard deviation of these daily steps for each week and each person as features.

Activity State. Fitbit tracks the users’ activities and records their corresponding pre-defined states every minute. There are 4 possible states: sedentary, lightly active, fairly active and very active. So, the sum of minutes in each state on each day are computed first, then mean and standard deviation of these daily summations for each state within each week are computed.

Social network data.

Social networks were constructed from the communication patterns of phone calls and text messages. To avoid spurious connections (such as spam), we eliminated communication edges that had a frequency of fewer than three times within a 5-month period. The NetHealth study collected communication data not only from within all the participants but also between participants and people from outside of the study as well. As a result, we had two types of social networks: one that includes all the data (whole network) and the one that only includes communication patterns of the participants within the study (participant network). The participant network only includes friends or classmates since all the participants are undergraduate students with the same class-standing or year in the same university. We can regard the participant network as a friend network, which is one of the five types of social networks that can affect health [10]. However, the whole network contains more complete information of each ego structure, so we studied both the whole network and participant network in our analysis.

As we mentioned before, each time step in our social network analysis consists of one week. The social networks are undirected and unweighted representations of communication patterns for each week. We then derive several features that are representative of the social network structure, including network degree [20], number of triangles, clustering coefficient [21], betweenness centrality [22], and closeness centrality [23] for each person in the network.

Analysis framework

Health behavior relationship analysis.

To answer RQ1, we investigate if there is a relationship between social network structure and health behavior and whether the social network structure properties are predictive of the health behavior. Specifically, we examine the relationship between social network topological properties including degree, number of triangles, clustering coefficient, closeness centrality and betweenness centrality for each node (individual) in the participant network and in the whole network and health behavioral variables including heart rates, steps and activity states.

We visualize all the 22 weeks using box plots to show the relationship between network structural variables and health behavioral statistics in a qualitative way. On the other hand, we use cross correlation coefficients [24] to quantitatively capture the correlation between each of the behavioral variables and each of the network structural variables over all participants. It should be noted that the links from physical and behavioral variables to social network variables can vary across individuals. Thus, we further compute the correlation for each individual, and then sum up the total number of coefficients showing a value greater than 0.5.

Wellness state prediction.

To answer RQ2 we propose NetCARE, a network-driven prediction method, to make full use of social network structure features in health prediction problems. Fig 4 shows the schema of NetCARE. The method incorporates social network structure, wearable data, and demographic data as independent variables of a machine learning model. This algorithmic architecture allows us to select network features and add other data sources as needed. It also ensures the flexibility to modify, extend, or add classifiers.

As mentioned earlier, we predict four wellness states: stress, happiness, positive attitude and self-assessed health. Tables 1 and 2 present the diversity of our participants across race, gender and levels of wellness states. Let us use stress prediction as an example to explain this architecture in detail. The stress prediction problem is formulated as a 4-categories classification problem based on the different stress levels in Table 2. The features were extracted from health behavior and network structure, and the class categories are the levels of stress. We then employed five popular classifiers for the problem: K-Nearest Neighbors (KNN), Classification and Regression Trees (CART), Support Vector Machines (SVM), Logistic Regression (LR) and Random Forests (RF). The data was divided into 75% for training and 25% for testing. We used 5-fold cross-validation on the training data to find the hyper-parameters of the algorithms, and used grid search to find the combination of those parameters that achieved the best performance. We then consider the averaged F1-Measures for all levels and those within each level as a metric of performance. Specifically, we tuned the number of neighbors for KNN and the leaf size for CART. For SVM, we conducted experiments over the three different kernels: polynomial, linear and radial basis function (RBF) kernels, where various degrees of polynomial kernels were also taken into consideration. For LR, we searched on different values for regularization coefficients and the learning rate of the optimization algorithm. For RF, we conducted experiments with different numbers of trees from 10 to 100 at increments of 5. We use 35 trees for the results reported in this document.

Furthermore, we applied an ensemble method with a weighted voting [25] scheme to improve the overall predictabive performance. We chose the three single classifiers with highest 5-fold cross-validation accuracy scores on the training data as base classifiers to use in the ensemble method. Specifically, they were SVM, KNN and RF. Let pij = wij represent the probability of classifier i classifying the input instance x as class j. The ensemble rule for combining the outputs of different base classifiers to get the the final prediction yvote can be formulated as Eq (1). The optimal weights, , were selected using cross-validation on the training from all possible combination of weight wij from 0 to 1 with interval 0.1. (1)

Our experiments also include a benchmark method for comparison, where the prediction of the wellness states were randomly generated among all the potential levels with equal probabilities.


Based on the discussed methods and framework, we performed two sets of experiments. First, we evaluated the interactions among the variables associated with social network structure and those related to health behavior. The objective of this analysis was to validate whether their interactions were meaningful. Second, we used our framework to predict various wellness states. We compared the performance of our framework with two baselines. One of them applies our framework to either health-behavior data or network features in isolation and the other one comes from the random generation. The objective was to verify our hypothesis that combining network effects and self-similarity would lead to better predictions.

Health behavior relationship analysis

We analyze all possible pairs of five structural features of social networks in both the networks—(whole network and participant network)—and six physical and behavioral features with box plots, resulting in sixty box plots. Each boxplot includes the distribution of a physical-behavioral feature and a social network structure feature for all the participants over the 22 weeks period. Note that health-behavioral features for each week were extracted as mean values from the raw data. For example, Fig 5 presents the distribution of average heart rates for all participants and the node degree distribution over the 22 weeks of the participant network. Figs 5 and 6 represents the relationships for the participant network structures, while the relationships for the whole network are presented in Figs 7 and 8. Note that the remaining box plots can be found in the supplemental material S1 Appendix.

As shown in Figs 5, 6, 7 and 8, the median and the mean of health behavior data for each week (dark orange lines and dark green triangles in the figures, respectively) change over time and the median and mean of network properties (dark blue lines and sea green triangles in the figures, respectively) follow a similar pattern over time.

We performed tests to verify whether there was a statistically significant difference between the distribution of health behavior features and the network structure features across high and low-value ranges. Specifically, using t-tests we tested for whether the feature values representative of behavioral data varied in the strength of the relationship with the network data ranges. For example, consider the relationship between daily steps and network degree. The derived p-value of 0.0003 shows that there is a significant difference between the daily steps in conjunction with higher network degree versus daily steps in conjunction with lower network degree. The corresponding p-value is shown in Fig 5. After correcting for multiple tests [26], our results show that social network properties have significant relationships 43 out of 60 times, supporting the hypothesis that social networks are indicative of changes in health behavior.

Further, we used cross correlation coefficients [24] to quantify the extent to which the network structure features can reflect the information flow of health behavior. After calculating the means of each feature from health behavior and network structure for every week, we computed the coefficients of the means of health behavior features and the means of structure features (sixty pairs). The results showed 43 of 60 pairs with a absolute correlation coefficient that is no less than 0.5 and 28 of the 60 pairs with absolute correlation no less than 0.7. Table 3 shows the results from all the pairs of behavioral features and network structure features.

Table 3. Normalized cross correlation coefficients of each pair of health behavior feature averages and social network structure feature averages.

The correlation from network-structure features to the very active state is generally stronger by about 0.3 on average than that from structure to sedentary, fairly active or lightly active states. We noticed none of the structure features have a strong relation to the data of the lightly active state. After excluding results of the lightly active state, we found that the number of triangles in participant network and whole network can be a good indicator of the change of other health behavior data. Also, except lightly active, each behavioral feature could be related to at least one of the structural features with absolute coefficients no lower than 0.7. Especially, the correlation coefficient between degree in the whole network and steps is almost 0.9. We did the same experiments on the medians of each feature for every week. We found 37 of 60 pairs had correlations no less than 0.5. Comparing the results from metrics in participant network with those from metrics in whole network in the table, we observed major differences between the two networks. For example, the coefficient between the fairly active state data and Closeness Centrality in the participant network is almost half of coefficient between fairly active data and Closeness Centrality in the whole network, while the coefficient between fairly active data and Clustering Coefficients in the participant network almost doubles the coefficient between fairly active data and Clustering Coefficients in the whole network. This finding suggests that there are different effects in the two network types and it is necessary to include both networks in our analysis. In summary, Table 3 show that the network structure seems to capture the changes of health behavior—although in a lesser extent with respect to the lightly active state.

We also evaluated variable interactions for each participant in the dataset. This was done to evaluate changes in health behavior per individual. Each analyzed sample point is the average of the behavior over one week per person. We counted the total number of persons with more than 0.5 on absolute cross correlation coefficients to show the extent to which the structural features can capture the changes in health behavior. Table 4 lists the numbers of participants with medium to strong correlation for each pair of health behavioral features and network features. In the table, each health behavior feature can be related to one of structural features for both whole network and participant network for at least 20% of participants. The table shows that Closeness Centrality in either the whole network or participant network capture a relationship with steps for over 42% of the samples. These results imply an underlying relationship between features representative of the social network structure and the health behavior.

Table 4. Number of persons whose health behavior have medium to strong correlation with social network structure.

Table 5 summarizes the fraction of participants with medium to strong correlations with respect to health behavior features and at least one graph structure feature from participant network, whole network or both networks, respectively. Particularly, the percentages are the fraction of persons whose health behavior data has no less than 0.5 cross correlation coefficients with any of the network structure features. For example, the person whose any one of 5 features from participant network is related to steps data with coefficients no less than 0.5, is counted. According to the first and second columns in Table 5, the three metrics from each kind of social networks can closely capture the changes of some health behavior for about 50% of the participants. Specifically, 74% of the participants have higher correlations between steps and one aspect of structural features. The last column in Table 5 shows that both types of social networks maintain information of the time-varying heart rate averages, step averages, and averaged minutes in each activity states, for over 50% participants. Additionally, the fraction of persons with correlation coefficients no less than 0.7 between the number of steps and the structural features in whole network or in participant network is 40%, and between the mean of heart rates and the structural features is 26%. These results imply the whole network contains more sufficient information about health behavior than the participant network, but both of them are essential pieces, given the increase of numbers in the last column.

Table 5. Summary of subjects with medium to strong correlation to the social network structure.

In summary, these experiments verify the interactions among network-structure variables and health-behavioral variables. Specifically: 1) We demonstrated that the network structures can qualitatively capture the changes of behavioral variables. 2) We conducted t-tests to check if higher values of health-behavior variables corresponded to higher values of structural variables and are different from lower values of both types of variables. Our results showed 43 out of 60 with significant differences after multiple-test corrections. 3) We used normalized cross correlation coefficients to describe the role of network structures in statistics. The results showed 43 of 60 pairs of behavior features and structural features with a correlation coefficient that is no less than 0.5 and about half of the pairs with a coefficient no less than 0.7. 4) We analyzed the variable interactions of structure and physical features at the individual level and found that up to 145 out of 325 participants showed a high correlation between their closeness centrality of networks and steps, and up to 74% of the participants showed the similar relation between the aggregated network features and steps.

Predicting wellness state

After implementing the five single classifiers, we chose SVM, KNN, and RF, to create our ensemble learning model. The first five rows of Table 6 show the performance of our ensemble classifiers for stress prediction.

Table 6. Prediction results for happiness, positive attitude and self-assessed health.

We report the F-score for all stress levels and each level. The table shows that social network variables alone are comparable or even a little better to health behavior data for overall F-score and stress level 3, while others are worse. Thus, we suspect social network structure contains information about stress from a complementary perspective compared to that of health-behavior variables, i.e. there seems to exist an underlying relationship between social network structure and stress state. The table also shows that joining features from social networks and health behavior improve predictions as evaluated by the F1-score improvement on both the combined performance and the individual performance per stress level. The most noticeable improvement corresponds to stress level 1.

Additionally, we perform the same analysis for other wellness states. In particular, we assess the effect of combining social network structure variables and health-behavior variables to predict wellness states of happiness, positive attitude and self-assessed health (Table 2). These results are also shown in Table 6. As in the case of stress, the table supports that using social network structure can improve prediction performance for these 3 health and wellness variables. Table 6, shows that our NetCARE provides improvements of: 1) 65% and up to 617% on the overall F1-Measure and the within class F1-Measure of happiness, respectively; 2) 55% and up to 185% on the overall F1-Measure and the within class F1-Measure of positive attitude, respectively; and 3) 54% and up to 200% on the overall F1-Measure and the within class F1-Measure of self-assessed health, respectively. These results provide evidence that not only structural features could be helpful in applications of wellness state prediction and health perceptions.


The main contributions of this paper can be summarized as follows:

  • We discovered that social network structure is correlated with health behavior data obtained from wearables and can capture the trends. This relationship between social network structure and health behavior is statistically significant.
  • We demonstrated that social network structure is highly predictive of wellness states. This result is of importance as just relying on data derived from wearables and demographics does not express a complete picture about an individual, and one’s social network is an important element to understanding and predicting health and wellness.

Social network analysis has been used for health-related problems including mental health [4, 6], physical well-beings [1, 2], and illness [8, 27]. Most of the work has largely focused on social networks as a diffusion mechanism of health [15] or emotions [69]. This paper provides a novel perspective on the value of social network structure in not only understanding our health behavior but also in predicting the wellness states, above and beyond what the data from wearables or demographic tells us. Clearly, social networks are an important piece of the puzzle about our health and wellness. We showed that by including features derived from social networks, accuracy increases significantly and at times using only social network features adds more predictability. Specifically, we find that happiness and positive attitude have the most significant jump when using social network structure features in addition to health behavior and demographic data. This clearly demonstrates that it is the tight coupling of an ego’s social and health behavior that result in improved understanding and predictability of the ego’s wellness state.

There are additional insights that might also be gleaned by our study. Consider the correlation among structural variables and health behavior variables (see, e.g. Table 3). We observe a moderate to strong correlation between clustering coefficient and heart rate, steps, and high activity states which may capture participation in campus sports. These activities provide participating students with ample amounts of physical activity and tightly knit social groups, factors which have been previously shown to be associated with mental health [28, 29]. Further, it seems that it is easier for social network structure to capture the activity states when a person is either in an inactive state or at least fairly active, than if the person is lightly active. It could be indicative of the relationship between activity and gregariousness or extraversion of an individual. Also, as lightly active minutes include walking, the location of dorms, classes and other necessary destinations involved in a students daily routine may contribute significant noise to this level of activity. A future research direction is looking at more granular data and time windows to understand the immediacy of communication patterns with respect to activity states.

Supporting information

S1 Appendix. Supplemental materials.

The remaining boxplots of Health Behavior Relationship Analysis.



The research reported in this paper was supported by the National Heart, Lung, and Blood Institute (NHLBI) of the National Institutes of Health under award number R01HL117757. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health.

The project was also partially supported by The National Science Centre, Poland the research project no. 2016/23/B/ST6/01735.

The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.


  1. 1. Christakis NA, Fowler JH. The spread of obesity in a large social network over 32 years. New England journal of medicine. 2007;357(4):370–379. pmid:17652652
  2. 2. Christakis NA, Fowler JH. The collective dynamics of smoking in a large social network. New England journal of medicine. 2008;358(21):2249–2258. pmid:18499567
  3. 3. Bearman PS, Moody J, Stovel K. Chains of affection: The structure of adolescent romantic and sexual networks. American journal of sociology. 2004;110(1):44–91.
  4. 4. Fowler JH, Christakis NA. Dynamic spread of happiness in a large social network: longitudinal analysis over 20 years in the Framingham Heart Study. Bmj. 2008;337:a2338. pmid:19056788
  5. 5. Centola D. The spread of behavior in an online social network experiment. science. 2010;329(5996):1194–1197. pmid:20813952
  6. 6. Stieglitz S, Dang-Xuan L. Emotions and information diffusion in social media sentiment of microblogs and sharing behavior. Journal of management information systems. 2013;29(4):217–248.
  7. 7. Coppersmith G, Dredze M, Harman C. Quantifying mental health signals in twitter. In: Proceedings of the Workshop on Computational Linguistics and Clinical Psychology: From Linguistic Signal to Clinical Reality; 2014. p. 51–60.
  8. 8. Reece AG, Reagan AJ, Lix KL, Dodds PS, Danforth CM, Langer EJ. Forecasting the onset and course of mental illness with Twitter data. Scientific reports. 2017;7(1):13006. pmid:29021528
  9. 9. Weerkamp W, De Rijke M. Activity prediction: A twitter-based exploration. In: SIGIR Workshop on Time-aware Information Access; 2012.
  10. 10. Fiori KL, Antonucci TC, Cortina KS. Social network typologies and mental health among older adults. The Journals of Gerontology Series B: Psychological Sciences and Social Sciences. 2006;61(1):P25–P32.
  11. 11. Cohen CI, Teresi J, Holmes D. Social networks and adaptation. The Gerontologist. 1985;25(3):297–304. pmid:4018602
  12. 12. Cohen-Cole E, Fletcher JM. Detecting implausible social network effects in acne, height, and headaches: longitudinal analysis. Bmj. 2008;337:a2533. pmid:19056789
  13. 13. McPherson M, Smith-Lovin L, Cook JM. Birds of a feather: Homophily in social networks. Annual review of sociology. 2001;27(1):415–444.
  14. 14. Newman ME. Mixing patterns in networks. Physical Review E. 2003;67(2):026126.
  15. 15. Muaremi A, Arnrich B, Tröster G. Towards measuring stress with smartphones and wearable devices during workday and sleep. BioNanoScience. 2013;3(2):172–183. pmid:25530929
  16. 16. Stütz T, Kowar T, Kager M, Tiefengrabner M, Stuppner M, Blechert J, et al. Smartphone Based Stress Prediction. In: International Conference on User Modeling, Adaptation, and Personalization. Springer; 2015. p. 240–251.
  17. 17. Purta R, Mattingly S, Song L, Lizardo O, Hachen D, Poellabauer C, et al. Experiences measuring sleep and physical activity patterns across a large college cohort with fitbits. In: Proceedings of the 2016 ACM International Symposium on Wearable Computers. ACM; 2016. p. 28–35.
  18. 18. Fitbit. What are active minutes? 2016;.
  19. 19. Organization WH. Gender and mental health. 2002;.
  20. 20. Diestel R. Graph theory. 2005. Grad Texts in Math. 2005;101.
  21. 21. Watts DJ, Strogatz SH. Collective dynamics of ‘small-world’networks. nature. 1998;393(6684):440. pmid:9623998
  22. 22. Freeman LC. A set of measures of centrality based on betweenness. Sociometry. 1977; p. 35–41.
  23. 23. Sabidussi G. The centrality index of a graph. Psychometrika. 1966;31(4):581–603.
  24. 24. Yoo JC, Han TH. Fast normalized cross-correlation. Circuits, systems and signal processing. 2009;28(6):819.
  25. 25. Dietterich TG. Ensemble methods in machine learning. In: International workshop on multiple classifier systems. Springer; 2000. p. 1–15.
  26. 26. Dunn OJ. Multiple comparisons among means. Journal of the American Statistical Association. 1961;56(293):52–64.
  27. 27. Wenger GC. Social networks and the prediction of elderly people at risk. Aging & Mental Health. 1997;1(4):311–320.
  28. 28. Rosenquist JN, Fowler JH, Christakis NA. Social network determinants of depression. Molecular psychiatry. 2011;16(3):273. pmid:20231839
  29. 29. Morgan WP, Goldston SE. Exercise and mental health. Taylor & Francis; 2013.