A Location Clustering and Labeling

Investigating Causality in Human Behavior from Smartphone Sensor Data: A Quasi-Experimental Approach

Abstract

Smartphones have become an indispensable part of our daily life. Their improved sensing and computing capabilities bring new opportunities for human behavior monitoring and analysis. Most work so far has been focused on detecting correlation rather than causation among features extracted from smartphone data. However, pure correlation analysis does not offer sufficient understanding of human behavior. Moreover, causation analysis could allow scientists to identify factors that have a causal effect on health and well-being issues, such as obesity, stress, depression and so on and suggest actions to deal with them. Finally, detecting causal relationships in this kind of observational data is challenging since, in general, subjects cannot be randomly exposed to an event.

In this article, we discuss the design, implementation and evaluation of a generic quasi-experimental framework for conducting causation studies on human behavior from smartphone data. We demonstrate the effectiveness of our approach by investigating the causal impact of several factors such as exercise, social interactions and work on stress level. Our results indicate that exercising and spending time outside home and working environment have a positive effect on participants stress level while reduced working hours only slightly impact stress.

keywords:
smartphone data, causality, human behavior, stress modeling
1

1 Introduction

Nowadays, people generate vast amounts of data through the devices they interact with during their daily activities, leaving a rich variety of digital traces. Indeed, our mobile phones have been transformed into powerful devices with increased computational and sensing power, capable of capturing any communication activity, including both mediated and face-to-face interactions. User location can be easily monitored and activities (e.g., running, walking, standing, traveling on public transit, etc.) can be inferred from raw accelerometer data captured by our smartphones (2); (3). Even more complex information such as our emotional state or our stress level can be inferred either by processing voice signals captured by means of smartphone’s microphones (4); (5) or by combining information, extracted from several sensors, which correlates with our mood (6); (7); (8); (9). Moreover, we keep track of our daily schedule by using digital calendars and we use social media to share our experiences, opinions and emotions with our friends.

Leveraging this rich variety of human-generated information could provide new insights on a variety of open research questions and issues in several scientific domains such as sociology, psychology, behavioral finance and medicine. For example, several works have demonstrated that online social media could act as crowd sensing platforms; the aggregated opinions posted in online social media have been used to predict movies revenues (10), elections results (11) or even stock market prices (12). Social influence effects in social networks have been also investigated in several projects either using observational data (13); (14) or by conducting randomized trials (15); (16). Other works also use mobility traces in order to study social patterns (17) or to model the spreading of contagious diseases (18). Moreover, the use of smartphones is increasingly used to monitor and better understand the causes of health problems such as addictions, obesity, stress and depression (19); (20). Smartphones enable continuous and unobtrusive monitoring of human behavior and, therefore, could allow scientists to conduct large-scale studies using real-life data rather than lab constrained experiments. In this direction, in (21) the authors attempt to explain sleeping disorders reported by individuals, by investigating the correlations between sociability, mood and sleeping quality, based on data captured by mobile phones sensors and surveys. Also, in (22) the authors study the links between unhealthy habits, such as poor-quality eating and lack of exercise, and the eating and exercise habits of the user’s social network. However, both studies are based on correlation analysis and, consequently, they are not sufficient for deriving valid conclusions about the causal links between the examined variables. For example, an observed correlation between the eating and exercising habits of a social group does not necessarily imply that eating and exercise habits of individuals are influenced by their social group and, therefore, could be modified by changing someone’s social group. Instead, the observed correlation could be due to the fact that people tend to have social relationships with people with similar habits.

The efficient exploitation of human generated data in order to uncover causal links among factors of interest remains an open research issue. Some works have proposed the use of randomized trials (15); (16). According to this technique, the causal effects of an event or treatment are examined by exposing a randomly selected subset of participants (treatment group) to this event and comparing the result with the corresponding outcome on a control group (i.e., a subset of participants who have not been exposed to the event). By randomly assigning participants to treatment and control groups it is assured that, on average, there will be no systematic difference on the baseline characteristics of the participants between the two groups. Baseline characteristics are considered to be any characteristics of the subjects that could be related with the study (e.g. in a clinical study the age and the previous health status of the subjects could be considered as baseline characteristics). While randomized trials represent a reliable way to detect causal relationships, they require the direct intervention of scientists in participants’ life, which is sometimes unethical or just not feasible. Moreover, such experimental studies cannot exploit the vast amount of observational data that are produced daily.

Detecting causal relationships in observational data is challenging since subjects cannot be randomly exposed to an event. Thus, subjects that are exposed to a treatment may systematically differ from subjects that are not. In order to eliminate any bias due to differences on the baseline characteristics of exposed and unexposed subjects, scientists need to gather and process information about several factors that could influence the result of the study. There are two main methodologies that can be applied to control such factors: structural equation modeling (23); (24) and quasi-experimental designs (25). According to the former, the causal effect is estimated using multivariate regression. In detail, the variable representing the causal effect of an event or treatment is regressed using as predictors the variable representing the treatment as well as all the baseline characteristics of the subjects of the study that could influence the result. Structural equation modeling is based on the assumption that the regression model has been correctly specified. False assumptions about the linearity or non-linearity of the model or failure to correctly specify the regression coefficients may result in misleading conclusions. On the other hand, methods based on quasi-experimental designs do not require the specification of a model. Instead, they attempt to emulate randomized trials by exploiting inherit characteristics of the observational data. This can be achieved by comparing groups of treated and control subjects with similar baseline characteristics (matching design).

The purpose of this work is to propose a generic causal inference framework for the analysis of human behavior using digital traces. More specifically, we demonstrate the potential of automatically processing human generated observational digital data in order to conduct causal inference studies based on quasi-experimental techniques. We support our claim by presenting an analysis of the causal effects of daily activities, such as exercising, socializing or working, on stress based on data gathered by smartphones from 48 students that were involved in the StudentsLife project (26) at Dartmouth College for a period of 10 weeks. The main goal of the StudentsLife project is the study of the mental health, academic performance and behavioral trends of this group of students using mobile phones sensor data. To the best of our knowledge, this is the first work presenting an observational causality study using digital data gathered by smartphones.

Information about participants’ daily social interactions as well as their exercise and work/study schedule is not directly measured; instead we use raw GPS and accelerometer traces in order to infer high-level information which is considered as implicit indicator of the variables of interest.

No active participation of the users is required, i.e., answering to pop-up questionnaires. We automatically assign semantics to locations in order to group them in four categories: home, work/university, socialization venues and gym/sports center. By grouping locations into these four categories and continuously monitoring the spatio-temporal traces of users we can derive high-level information as follows:

  • Work/University. By analyzing the daily time that users spend at their workplace we can infer their working schedule. Prolonged sojourn time at work/university could be an indicator of increased workload.

  • Home. The time that participants spend at home could serve as a rough indicator of their social interactions. Prolonged sojourn time at home could imply limited social interactions or social interactions with a restricted number of people. In general, spending time outside home usually involves some social interaction. An estimation of the total daily time that participants spend at any place apart from their home and working environment could serve as a rough indicator of their non-work-related social interactions.

  • Socialization Venues. By monitoring users visits at socialization venues such as pubs, bars, restaurants etc, we can infer the time that they spend relaxing and socializing outside home during a day.

  • Gym/Sports-center. Indoor workout can be captured by tracking participants’ visits to gyms or sports centers. Outdoor activity can be measured using accelerometer data.

2 Causal Inference Framework

Our causality analysis is based on Rubin’s counterfactual framework (27). According to this framework, a causal problem is formulated as a counterfactual statement which examines what would have been the outcome if an object has been exposed to an event. Since it is impossible to observe for the same object both the result of exposure and non-exposure to an event, causal inference is based on comparing the outcomes on equivalent treatment and control groups i.e., treatment and control units with similar baseline characteristics. In this subsection, we discuss a methodology for causal inference in observational data.

The first step of the analysis is the description of the variables of the study. A causality study involves the following variables:

  1. cause or treatment variable : an independent variable which influences the values of another variable. The treatment variable is usually binary, denoting whether an object of the study has been exposed to a treatment or not. Treatment could be also a discrete variable in case that different levels of treatment are considered.

  2. effect or outcome variable : a dependent variable which can be manipulated by changing the variable that represents the cause.

  3. a set of variables , which describes the baseline characteristics of the objects of the study.

In the second step of the analysis we define the units of the study. Each unit corresponds to a set of attributes, derived by the variables of the study, which describe an object (e.g., a person or a thing) on a specific time period. We can use multiple units describing a single object in different time intervals. Thus, a unit that describes an object at time corresponds to a set of values . Given that, in a causation study, the treatment should precede temporally the effect, i.e., the value should correspond to the treatment that has been applied to object before time . In the remainder of the paper, the simplified notation will be used to describe a unit .

In order to claim that a value of a variable has been caused by a value of a variable there should be an association between the occurrence of these two values and there should be no other plausible explanation of this association (25). The first part of this requirement can be examined by performing a simple statistical analysis. However, excluding any other explanation of the observed association is a hard problem since both the treatment and the effect variable may be driven by a third variable. Variables that correlate with both the outcome and the treatment are called confounding variables or confounders. In Figure 1 we provide a graphical representation of the dependencies between the treatment, outcome and confounding variables. The identification of the confounders requires a correlation analysis between each variable and the variables and .

Figure 1: Graphical representation of the relationships among the treatment , outcome and the set of confounding variables .

An unbiased causality study requires that the assignment of units to treatments is independent of the outcome conditional to the confounding variables. While in experimental studies this requirement is satisfied by randomly assigning units to treatments, in observational studies we could eliminate confounding bias by comparing units with similar values on their confounding variables but different treatment value (matching design). Let us consider a binary treatment , a group of treated units and a group of control units such as and . Let us also consider a set of confounding variables . Ideally, each unit will be matched with a unit if , . However, perfect matching is usually not feasible. Thus, treated units need to be matched with the most similar control units. Several methods have been proposed to create balanced treated and control pairs (28). After applying a matching method scientists need to check whether the treated and control groups are sufficiently balanced by estimating the standardized mean difference between the groups or by applying graphical methods such as quantile-quantile plots, cumulative distribution functions plots, etc. (29). If sufficient balance has not been achieved, the applied matching method needs to be revised.

Finally, if any confounding bias has been sufficiently eliminated, the treatment effect can be estimated by comparing the effect variable of the matched treated and control units. Let us define as the set of paired treated and control units and the number of pairs. Then, the average treatment effect (ATE) can be estimated as follows:

(1)

In Figure 2 we provide a graphical representation of the causal inference methodology.

Figure 2: Description of the causal inference process in observational data using a quasi-experimental matching design.

3 Dataset Description

The StudentsLife dataset contains a rich variety of information that was captured either through smartphone sensors or through pop-up questionnaires. In this study we use only GPS location traces, accelerometer data, a calendar with the deadlines for the modules that students attend during the term and students responses to questionnaires about their stress level. Students answer to these questionnaires one or more times per day.

We use the location traces of the users to create location clusters. GPS traces are provided either through GPS or through WiFi or cellular networks. For each location cluster, we assign one of the following labels: home, work/university, gym/sports-center, socialization venue and other. Labels are assigned automatically without the need for user intervention (a detailed description of the clustering and location labeling process is presented at the additional file 1)

We use information extracted from both accelerometer data and location traces to infer whether participants had any exercise (either at the gym or outdoors). The StudentsLife dataset does not contain raw accelerometer data. Instead it provides an activity classification by continuously sampling and processing accelerometer data. The activities are classified to stationary, walking, running and unknown.

We also use the calendar with students’ deadlines, which is provided by the StudentsLife dataset, as an additional indicator of students workload. We define as a set of all days that the student has a deadline. We define a variable that represents how many deadlines are close to the day for a user as follows:

(2)

Thus, will be equal to zero if there are no deadlines within the next days, where a constant threshold; otherwise, it will be inversely proportional to the number of days remaining until the deadline. In our experiments we set the threshold equal to 3. We found that with this value the correlation between the stress level of the participants and the variable is maximized.

Finally, the StudentsLife dataset includes responses of the participants to the Big Five Personality test (30). The Big Five Personality traits describe human personality using five dimensions: openness, conscientiousness, extroversion, agreeableness, and neuroticism. The personality traits of participants can be used to describe some baseline characteristics of the units and, for this reason, we include them in the study.

4 Causality Analysis

We apply the causal inference framework that was previously described in order to assess the causal impact of factors like exercising, socializing, working or spending time at home on stress level.

4.1 Variables

Initially, we define the variables that will be included in the study as follows:

  1. : denotes the total time in seconds that the user spent at home during day until time ;

  2. : denotes the total time in seconds that the user spent at university during day until time ;

  3. : denotes the total time in seconds time that the user spent in any place apart from his/her home or university during day until time ;

  4. : denotes the total time in seconds that the user spent exercising during day before time (it is estimated using both location traces and accelerometer data);

  5. : denotes the total time in seconds that the user spent at any socialization or entertainment venue during day before time ;

  6. : denotes the stress level of user that was reported on day and time . Stress level is reported one or more times per day. Thus, in contrast with the above mentioned variables, is not continuously measured;

  7. : denotes the last stress level that was reported by user the day . This variable remains constant within a day;

  8. : represents the upcoming deadlines as described in Equation 2;

  9. , , , , : these five variables denote the extroversion, neuroticism, agreeableness, conscientiousness and openness of user based on his Big Five Personality Traits score respectively.

4.2 Units

In this study, we examine the effects of five treatments, denoted by the variables , , , and on the stress level of participants, which is described by the variable . A unit of the study corresponds to a set of attributes derived by the variables of the experiment. All the variables are sampled every 4 hours, thus there are maximum six samples per day for each participant. Let a set of sampling times and the element of . Then a unit corresponds to the set of variables (, , , , , , , ). Since the variable is not continuously measured, it is not feasible to sample it for time . Instead, we define as the average stress level of unit at day between time and . Thus, is estimated as follows:

(3)

If there are no stress level reports during this time interval, then the unit that corresponds to the set of variables will be discarded.

4.3 Detection of Confounding Variables

In order to conduct a reliable causation study based on observational data we need to define the confounding variables. While there is a large number of factors that could influence the stress level of participants, the study could be biased only by factors that have a direct influence on both the stress level and the variable that is considered as treatment in the study. Thus, in our case we need to specify factors that could influence both the daily activities of participants and their stress level. For example, the workload of students can influence their activities (e.g., in periods with increased workload some students may choose to change their workout schedule, etc.) and their stress level. Since the workload cannot be directly measured using only sensor data from smartphones, we use as confounding variables other variables that provide implicit indicators of workload such as the time that students spend at home and university and their deadlines. Moreover, participants choice to do an activity may exclude another activity from their schedule and it may also influence their stress level. For example, someone may choose to spend some time in a pub instead of following his/her normal workout schedule. The previous day stress level may also influence both next day’s activities and stress level. Finally, several studies have demonstrated that stress level fluctuations are affected by personality traits (9). In general, more positive and extrovert people tend to be able to handle stress better than people with high neuroticism score. Moreover, personality characteristics may correlate with the daily schedule that people follow. For example more extrovert people may spend less time at home and more time in social activities. In order to define the covariates of the study we conduct a correlation analysis on the variables of interest. Since the relationship among the variables may not be linear, we apply the Kendall rank correlation. The p-values of the Kendall correlation are presented in Table 1.

0.3557 0 0.0161
0.004 0 0.024
0
0.0081 0.0161 0.042 0 0.222
0.024 0.222 0
0.055 0.3897
0.024 0.0014 0.0018 0.002 0.0076
0.004 0.013
0.007 0.21 0.047
0.057 0.078 0.352 0.214
0.604 0.006 0.005 0.95
Table 1: P-values of Kendall correlation under the null-hypothesis that the examined variables are independent.

Based on these results, the time that students spend at home does not correlate with their stress level. Thus, the variable will not be included in the causality study. The causal impact of each treatment variable and on the effect variable will be examined using as confounding variables all the variables that correlate with both the treatment and effect based on Table 1. We consider a correlation to be significant enough if the p-value is smaller than 0.1. In Table 2, we present the confounding variables that will be used for each examined treatment. While the variables and are strongly correlated, we do not include in the set of confounding variables when the treatment is the variable , since our goal is to study the impact of spending time in any place (including socialization venues) apart from home and working environment.

Treatment Confounding Variables
-
-
- - -
Table 2: Confounding Variables for the different applied treatments.

4.4 Creation of Treated and Control Groups

After defining the confounding variables of the study, we need to split the units into control and treatment groups. We consider binary treatments by applying thresholds to the examined treatment variables. Thus, for each of the four examined treatments (i.e., , , , ) the units are split as follows:

  1. : treatment units are all the units with and control all the units with , for a constant . Thus, we consider to have a positive treatment value when the university sojourn time is relatively small.

  2. : treatment units are all the units with and control all the units with . Thus, we consider to have a positive treatment value when the time spent in any non-work-related place outside home is relatively large.

  3. : treatment units are all the units with i.e. all the units that denote that a user had some exercise at day before time . In the control group are units with

  4. : similarly to the treatment variable , treatment units are units with and control units with

Thus, when the treatment variables and are considered, units are classified to treated and untreated based on the time they have spent at university or at any place apart from their home and university respectively. However, in order to examine the impact of exercising and visiting socialization venues, the binary treatments are defined by considering only whether there was some exercising activity or a visit to a socialization place or not. We do not study the impact of these factors by considering also the duration of these events since the amount of the data is not sufficiently large.

Each of the examined treatment variables describes some user behavior or activity from the start of the day to some time . Consequently, the comparison of two units with different sampling times is not valid. Thus, we create a group of pairs of treated and control units for each one of the 6 sampling times such that each treated unit is matched with a control unit with similar values on its confounding variables. Then, the average treatment effect is estimated as follows:

(4)

If there is no causal effect of the examined treatment on the stress level then the average treatment effect should be zero. We use a t-test in order to decide whether the observed average treatment effect is statistically significant.

4.5 Balance Check

In order to create balanced treated and control pairs of units we apply the Genetic Matching method (31). Genetic Matching is a multivariate matching method that applies an evolutionary searching algorithm that estimates weights for each confounding variable in order to achieve an optimal covariates balance. In order to assess if the treated and control pairs are sufficiently balanced, we check the standardized mean difference for each confounding variables of the study. We indicate with the set of confounding variables. For each confounding variable , the standardized mean difference is estimated as follows:

(5)

where denotes the variance of the confounding variable for the treated units. The remaining bias from a confounding variable is considered to be insignificant if is smaller than 0.1 (29).

5 Results

According to Table 1, extroversion and neuroticism are the two personality characteristics that strongly correlate with stress level. Thus, we investigate whether some of the examined treatments have a different causal impact on people with high extroversion or neuroticism scores. We conduct our study collectively for the whole population and selectively for people with high extroversion score and people with high neuroticism score. We define as Extroverts all the participants with extroversion score larger than the average extroversion score of all the participants. Correspondingly, we define a subpopulation of Neurotics composed of participants with neuroticism score higher than the average score of the population.

{subfigure}

[b]0.5   {subfigure}[b]0.5   {subfigure}[b]0.5

Figure 3: Causal effect of variable on the stress level for the four examined thresholds
Figure 4: Causal effect of variable on the stress level for the four examined thresholds
Figure 5: Causal effect of variables and on the stress level
Figure 6: Percentage improvement on the stress level of treated units compared to control units when each one of the examined treatments is applied. Percentage improvement is estimated as .

In Figure 6, we present the average treatment effect (ATE) normalized by the average stress level of the control units along with the 95% confidence intervals for each one of the four examined treatment variables. For the treatment variables and we present results for equal to , , and . We do not present results for larger values since the number of samples that are discarded is large and the remaining data are not sufficient for statistically significant conclusions. In Figure 9 and Table 3, we present the standardized difference, as described in Equation 5, for all the confounding variables that were used in each one of the causation studies. According to our results, the standardized difference between treated and control samples is smaller than 0.1 for all the confounding variables thus any confounding bias has been sufficiently minimized.

Our results indicate that the time that students spend at university has only a weak causal impact on the stress level when participants’ samples are split into treatment and control groups using an value equal to . In detail, participants report 3.1% (with confidence interval %) lower stress level the days that their sojourn time at university is 15% lower than the average university sojourn time of the whole population compared to days that the university sojourn time is 15% larger than usual. However, when the analysis is limited to people with high extroversion score, there is no statistically significant evidence that the time that students spend at university has any causal effect on stress. When smaller values are considered, the causality score is close to zero for the examined set of students as well as for the Extroverts and Neurotics sub-populations.

Based on our results, the time that students spend in any place apart from their home and university has a significantly strong causal impact on their stress level. As depicted in Fig. 6.b, students have reported around 3% (with confidence interval %) lower stress level the days that they spend more time outside than the average time compared to days that they spend less time outside (i.e., ), when the whole set of participants is considered. Similar results are observed when the Extroverts and Neurotics sub-populations are examined (the observed difference is not statistically significant given the 95% confidence intervals of the study). When the value of is increased, the causal impact of the examined variable is stronger. For , the improvement on the stress level for students who spend more time outside is 14.45% (with confidence interval %) when the total population is considered. The results are similar when the study is limited to students with high extroversion score. However, the examined variable has a significantly lower impact on stress level when the sub-population of Neurotics is considered.

{subfigure}

[b]0.5   {subfigure}[b]0.5

Figure 7:
Figure 8:
Figure 9: Standardized difference between treated and control samples for each confounding variable when the applied treatment is (a) the variable and (b) the variable . The standardized difference for all the confounding variables is less than 0.1, thus the groups are balanced.

In Fig. 6.c, we examine the impact of exercising or visiting socialization venues on stress level. While the variable is strongly correlated with the stress level, according to our results, there is no causal link between them. This indicates that, while people benefit from spending time outside home or working environment in general, there is no statistically significant benefit from visiting specific venues. Finally, exercising has positive effect on the stress level of the examined population. However, results are different when the Extroverts and Neurotics sub-populations are examined separately. Exercising has a stronger positive effect on the stress level of participants with high neuroticism score while there is no statistically significant benefit for people with high extroversion score.

- -
Table 3: Standardized difference between treated and control samples for each one of the confounding variables when the applied treatments correspond to the variables and .

6 Discussion

In this work, we presented a framework for detecting causal links on human behavior using mobile phones sensor data. We have studied the causal effects of several factors, such as working, exercising and socializing, on stress level of 48 students using data captured by smartphones sensors. Our results suggest that exercising and spending time outside home or university have a strongly positive causal effect on participants stress level. We have also demonstrated that the time participants stay at university has a positive causal impact on their stress level only when it is considerably lower than the average daily university sojourn time. However, this impact is not remarkable.

Moreover, we have observed that some of the examined factors have different impact on the stress level of students with high extroversion score and on students with high neuroticism score. More specifically, more extrovert students benefit more from spending time outside home or university while more neurotic students benefit more from exercising.

Our study mainly relies on raw sensor data that can be easily captured with smartphones. We have demonstrated that information extracted by simply monitoring users’ location and activity (through accelerometer) can serve as an implicit indicator of several factors of interest such as their working and exercising schedule as well as their daily social interactions. Inferring this high-level information using raw sensor data instead of pop-up questionnaires has three main advantages: 1) it offers a more accurate representation of participants activities over time since data are collected continuously, 2) data are collected in an obtrusive way without requiring participants to provide any feedback; this minimizes the risk that some users will quit the study because they are dissatisfied by the amount of feedback that they need to provide, 3) data gathered through pop-up questionnaires may not be objective since participants may provide either intentionally or unintentionally false responses. On the other hand, inferences based on sensor data could also be inaccurate either due to noisy sensor measurements or due to the fact that the variable of interest is inferred by the sensed data rather than directly measured. For example, in our case we assume that a visit to a sports center implies that the user had some exercise. However, the user may have visited this place to attend a sports event or just to meet friends. Assessing the degree of uncertainty that information inference from sensor measurements involves and incorporating this uncertainty into the causation study represents an interesting research area for further investigation.

Finally, this study involves a limited number of participants who do not constitute a representative sample of the population; therefore extrapolating general conclusions about the causal impact of the examined factors on stress level is not feasible. However, the purpose of this article is to demonstrate the potential of utilizing smartphones in order to conduct large-scale studies related to human behavior, rather than present a thorough investigation on factors that influence stress.

Appendix A Location Clustering and Labeling

We create location clusters using raw GPS traces. In order to increase the accuracy on location estimation we consider only GPS samples with accuracy less than 50 meters. Moreover, we ignore any samples that were collected while the user was moving. For each new GPS point, we create a cluster only if the distance of this point with the centroid of any of the existing clusters is more than 50 meters. Otherwise, we update the corresponding cluster with the new GPS sample. Every time a new GPS sample is added to a cluster, the centroid of the cluster is also updated. The pseudo code of the location clustering algorithm is presented at Algorithm 1.

[!t] \KwDataSet of location points \KwResult Set of Clusters \Foreach l L \Ifaccuracy(l)50 continue  \Foreach c C \Ifdistance(l, centroid(c))50   break  \IflocationClusteredFlag = 0

Algorithm 1 Location clustering

Each location cluster is labeled as home, work/university, gym/sports-center, socialization venue or other. The label socialization venue is used to describe places like pubs, bars, restaurants and cafeterias. The label other is used to describe any place that does not belong to the above mentioned categories. We label as home the place that people spend most of the night and early morning hours. In order to find clusters that correspond to gyms/sports-centers or socialization venues we use the Google Maps JavaScript API (32). Google Maps JavaScript API enable developers to search for specific type of places that are close to a GPS point. The type of place is specified using specific keywords from a list of keywords provided by this API. We use the centroid of each unlabeled cluster to search for nearby places of interest. Places that correspond to gym/sports centers are specified by the keyword gym and places that correspond to socialization venues are specified by the keywords bar, cafe, movie_theater, night_club and restaurant. For each unlabeled cluster we conduct a search for nearby points of interests. If a point of interest with distance less than 50 meters from the cluster centroid is found, we label the cluster as gym/sport-center or socialization venue depending on the point of interest type. Otherwise the cluster is labeled as other. Any place within the university campus that is not labeled as gym/sport-center or socialization venue is labeled as work/university.

Appendix B Matching Method

For matching the treatment and control units we use the MatchIt R package (33) which includes an implementation of the genetic matching algorithm described above. Several optimization criteria can be used with Genetic Matching (34). Here, the balance metric that the Genetic Matching algorithm optimizes is the mean standardized difference of all the confounding variables. We use matching with replacement, i.e., each control unit can be matched to more than one treatment units. Matching with replacement can reduce the bias since control units which are very similar to treatment units can be exploited more. We use a matching ratio equal to 2. This means that each treatment unit will be matched with up to 2 control units.

Footnotes

  1. journal: Journal Name

References

  1. Miluzzo, E. et al. Sensing meets mobile social networks: the design, implementation and evaluation of the cenceme application. In Proceedings of the 6th ACM conference on Embedded Network Sensor Systems (SenSys’08), 337–350 (ACM, 2008).
  2. Ravi, N., Dandekar, N., Mysore, P. & Littman, M. L. Activity recognition from accelerometer data. In Proceedings of the 17th Conference on Innovative Applications of Artificial Intelligence (IAAI’05), vol. 5, 1541–1546 (2005).
  3. Lu, H. et al. StressSense: detecting stress in unconstrained acoustic environments using smartphones. In Proceedings of the 14th ACM Conference on Ubiquitous Computing (UbiComp’12), 351–360 (ACM, 2012).
  4. Rachuri, K. K. et al. Emotionsense: a mobile phones based adaptive platform for experimental social psychology research. In Proceedings of the 12th ACM International Conference on Ubiquitous Computing (UbiComp’10), 281–290 (ACM, 2010).
  5. Ma, Y., Xu, B., Bai, Y., Sun, G. & Zhu, R. Daily mood assessment based on mobile phone sensing. In Proceedings of the 9th International Conference on Wearable and Implantable Body Sensor Networks (BSN’12), 142–147 (IEEE, 2012).
  6. Bauer, G. & Lukowicz, P. Can smartphones detect stress-related changes in the behaviour of individuals? In Proceedings of the Pervasive Computing and Communications Workshops (PERCOM Workshops’12), 423–426 (IEEE, 2012).
  7. Bogomolov, A., Lepri, B. & Pianesi, F. Happiness recognition from mobile phone data. In Proceedings of the International Conference on Social Computing (SocialCom’13), 790–795 (IEEE, 2013).
  8. Bogomolov, A., Lepri, B., Ferron, M., Pianesi, F. & Pentland, A. S. Daily stress recognition from mobile phone data, weather conditions and individual traits. In Proceedings of the ACM International Conference on Multimedia (MM’14), 477–486 (ACM, 2014).
  9. Asur, S. & Huberman, B. A. Predicting the Future with Social Media. In Proceedings of the 2010 Web Intelligence and Intelligent Agent Technology Conference (WI-IAT’10), vol. 1, 492–499 (IEEE, 2010).
  10. Tumasjan, A., Sprenger, T. O., Sandner, P. G. & Welpe, I. M. Predicting elections with Twitter: What 140 characters reveal about political sentiment. In Proceedings of the Fourth International AAAI Conference on Weblogs and Social Media (ICWSM’10), vol. 10, 178–185 (2010).
  11. Bollen, J., Mao, H. & Zeng, X. Twitter mood predicts the stock market. Journal of Computational Science 2, 1–8 (2011).
  12. Cha, M., Haddadi, H., Benevenuto, F. & Gummadi, P. K. Measuring user influence in Twitter: The million follower fallacy. In Proceedings of the Fourth International AAAI Conference on Weblogs and Social Media (ICWSM’10), vol. 10, (2010).
  13. Anger, I. & Kittl, C. Measuring influence on Twitter. In Proceedings of the 11th International Conference on Knowledge Management and Knowledge Technologies (I-KNOW’11), (ACM, 2011).
  14. Bond, R. M. et al. A 61-million-person experiment in social influence and political mobilization. Nature 489, 295–298 (2012).
  15. Muchnik, L., Aral, S. & Taylor, S. Social influence bias: A randomized experiment. Science 341, 647–651 (2013).
  16. Onnela, J. et al. Structure and tie strengths in mobile communication networks. Proceedings of the National Academy of Sciences vol. 104, 7332–7336 (National Acad Sciences, 2007).
  17. Colizza, V., Barrat, A., Barthelemy, M. & Vespignani, A. Prediction and predictability of global epidemics: the role of the airline transportation network Proceedings of the National Academy of Sciences 103, 313–318 (2005).
  18. Marsch, L. A. Leveraging technology to enhance addiction treatment and recovery. Journal of Addictive Diseases 31, 2015–2020 (2012).
  19. Pejovic, V. & Musolesi, M. Anticipatory Mobile Computing for Behaviour Change Interventions. In Proceedings of the 2014 ACM International Joint Conference on Pervasive and Ubiquitous Computing: Adjunct Publication, 1025–1034 (ACM, 2014).
  20. Moturu, S. T., Khayal, I., Aharony, N., Pan, W. & Pentland, A. Using social sensing to understand the links between sleep, mood, and sociability. In Proceedings of the Third International Conference on Social Computing (SocialCom’11), 208–214 (IEEE, 2011).
  21. Madan, A., Moturu, S., Lazer, D. & Pentland, A. S. Social sensing: obesity, unhealthy eating and exercise in face-to-face networks. In Proceedings of Wireless Health 2010, 104–110 (ACM, 2010).
  22. Mouchart, M., Russo, F. & Wunsch, G. Structural modelling, exogeneity, and causality. In Causal Analysis in Population Studies, 59–82 (Springer, 2009).
  23. Spirtes, P., Glymour, C. N. & Scheines, R. Causation, Prediction, and Search, vol. 81 (MIT Press, 2000).
  24. Campbell, D. & Stanley, J. Experimental and Quasi-Experimental Designs for Research (Houghton Mifflin Boston, 1963).
  25. Wang, R. et al. Studentlife: Assessing mental health, academic performance and behavioral trends of college students using smartphones. In Proceedings of the 2014 ACM International Joint Conference on Pervasive and Ubiquitous Computing (UbiComp’14), 3–14 (ACM, 2014).
  26. Holland, P. W. Statistics and causal inference. Journal of the American Statistical Association 81, 945–960 (1986).
  27. Stuart, E. A. Matching methods for causal inference: A review and a look forward. Statistical science: a review journal of the Institute of Mathematical Statistics 25, 1–21 (2010).
  28. Austin, P. C. An introduction to propensity score methods for reducing the effects of confounding in observational studies. Multivariate Behavioral Research 46, 399–424 (2011).
  29. Bolger, N. & Schilling, E. A. Personality and the problems of everyday life: The role of neuroticism in exposure and reactivity to daily stressors. Journal of personality 59, 355–386 (1991).
  30. Diamond, A. & Sekhon, J. S. Genetic matching for estimating causal effects: A general multivariate matching method for achieving balance in observational studies. Review of Economics and Statistics 95, 932–945 (2013).
  31. Google Maps Places API. https://developers.google.com/maps/documentation/ javascript/places (2014).
  32. Ho, D. E. MatchIt: nonparametric preprocessing for parametric causal inference. Ph.D. thesis, Departments of Mental Health and Biostatistics, Johns Hopkins Bloomberg School of Public Health (1737).
  33. Sekhon, J. S. Multivariate and propensity score matching software with automated balance optimization: the matching package for R. Journal of Statistical Software 42, (2011).
Comments 0
Request Comment
You are adding the first comment!
How to quickly get a good reply:
  • Give credit where it’s due by listing out the positive aspects of a paper before getting into which changes should be made.
  • Be specific in your critique, and provide supporting evidence with appropriate references to substantiate general statements.
  • Your comment should inspire ideas to flow and help the author improves the paper.

The better we are at sharing our knowledge with each other, the faster we move forward.
""
The feedback must be of minimum 40 characters and the title a minimum of 5 characters
   
Add comment
Cancel
Loading ...
128935
This is a comment super asjknd jkasnjk adsnkj
Upvote
Downvote
""
The feedback must be of minumum 40 characters
The feedback must be of minumum 40 characters
Submit
Cancel

You are asking your first question!
How to quickly get a good answer:
  • Keep your question short and to the point
  • Check for grammar or spelling errors.
  • Phrase it like a question
Test
Test description