Literature DB >> 30716110

Correlated impulses: Using Facebook interests to improve predictions of crime rates in urban areas.

Masoomali Fatehkia1, Dan O'Brien2,3, Ingmar Weber4.   

Abstract

Much research has examined how crime rates vary across urban neighborhoods, focusing particularly on community-level demographic and social characteristics. A parallel line of work has treated crime at the individual level as an expression of certain behavioral patterns (e.g., impulsivity). Little work has considered, however, whether the prevalence of such behavioral patterns in a neighborhood might be predictive of local crime, in large part because such measures are hard to come by and often subjective. The Facebook Advertising API offers a special opportunity to examine this question as it provides an extensive list of "interests" that can be tabulated at various geographic scales. Here we conduct an analysis of the association between the prevalence of interests among the Facebook population of a ZIP code and the local rate of assaults, burglaries, and robberies across 9 highly populated cities in the US. We fit various regression models to predict crime rates as a function of the Facebook and census demographic variables. In general, models using the variables for the interests of the whole adult population on Facebook perform better than those using data on specific demographic groups (such as Males 18-34). In terms of predictive performance, models combining Facebook data with demographic data generally have lower error rates than models using only demographic data. We find that interests associated with media consumption and mating competition are predictive of crime rates above and beyond demographic factors. We discuss how this might integrate with existing criminological theory.

Entities:  

Mesh:

Year:  2019        PMID: 30716110      PMCID: PMC6361434          DOI: 10.1371/journal.pone.0211350

Source DB:  PubMed          Journal:  PLoS One        ISSN: 1932-6203            Impact factor:   3.240


Introduction

Urban criminologists have long sought to understand variations in crime across communities within a city. Most of this work has focused on ecological theories of criminogenesis and the contextual factors that encourage and discourage crime. Early work highlighted the elevated levels of crime in areas of high poverty and concentrated disadvantage (e.g. [1]). One of the most influential theories in the study of crime in communities has been social disorganization theory, which posits that social ties and the ability to establish and enforce social norms are critical to socializing residents and managing local spaces [2-4]. Others have argued that income inequality instigates those lower on the socioeconomic spectrum to turn to crime for self-advancement [5]. Paralleling ecological theories for community-level variations in crime, there are numerous theories regarding the characteristics of individual residents that incline them toward crime. One prominent example is the self-control, or “general”, theory of crime [6] and its offshoots (e.g., the general theory of deterrence [7]), which focuses on the role of impulsivity in driving criminal behavior. Another is general strain theory, which argues that negative experiences, or “strains”, can lead to emotions that sometimes motivate criminal behavior [8]. In a separate corner of academia, evolutionary psychologists have contended that the mating context is an important factor for understanding crime. In particular, they argue that violence, property crime, and other acts that could be seen as directly or indirectly conferring status are most motivated by the perceived need to compete for mates, especially for young males (e.g. [9, 10]). Such theories have occasionally been tested with urban populations, but most often because they offer a study site with a readily available sample (e.g. [11]) or a particular context that lends itself to testing the theory (e.g., homelessness and strain theory [12]). In some cases there is also the desire to test both individual- and community-level hypotheses simultaneously, though generally independently of each other [13-15]. In a few rare cases researchers have also examined whether the neighborhood context interacts with individual-level characteristics, amplifying or mitigating their effects on criminal behavior [16]. Here we ask a distinct question that remains unanswered in this work: could the spatial distribution of individual-level processes further explain the variation in crime between neighborhoods? One of the challenges of such an exercise is the need for comprehensive measures of the behaviors and attitudes of residents. Such information would typically be cost-prohibitive to collect, but the advent of social media has generated such data for millions of people across the world. Here we leverage the Facebook Advertising API, which enables users to search an extensive list of “interests” that can be tabulated at various geographic scales. Using the Facebook Advertising API, we conduct an analysis of the association between the prevalence of interests among the Facebook population of a ZIP code, which is typically the lowest feasible geographical unit for tabulation in the API, and the local rate of assaults, burglaries, and robberies across nine highly populated cities in the US. We treat the interests searched through the Facebook Advertising API as expressions of particular aspects of behavior that are implicated by individual-level theories of crime (i.e., manifestations of latent behavioral constructs). For example, a preference for gambling or card games might be an indicator of impulsivity, whereas a preference for crosswords or classical music requires a patience that might indicate a lack thereof. We then assess whether the nature of these interests in a given ZIP code are predictive of the three types of crime rates over and above demographic measures derived from census data. Before proceeding to the methods and analysis, it is important to state a few caveats. First, this study is exploratory, thus we propose no a priori hypotheses linking particular preferences to a given theory of criminality. Such a step would be premature as this study is the first to our knowledge to use preferences to reflect behavioral and attitudinal features of a population. Instead, we take the corpus of preferences as a whole and undertake the initial task of examining its factor structure and use the resultant factors to predict crime rates. In the Discussion we return to the possible linkages with previous theory, anticipating that this will provide a baseline for future work that tests theoretically-driven hypotheses. Second, the results here should be interpreted precisely as the prediction of reported crime rates, not necessarily crime itself. Though such reports largely reflect actual rates of crime, there is reason to believe that they are influenced by policing strategies that may be more likely to target certain populations or to result in arrests and thus crime reports in certain communities [17, 18]. This will need to be kept in mind when interpreting the results.

Materials and methods

Data

The study utilized three data sources describing ZIP codes in nine U.S. cities: (i) “interests” from the Facebook Advertising API; (ii) demographic measures according to the U.S. Census; and (iii) crime events accessed from each city’s public data portal. Data collection was performed in compliance with the terms of services of the websites from which data was collected. The nine cities–Baltimore, Boston, Chicago, Dallas, Los Angeles, New York, Philadelphia, San Francisco and Washington–were selected as all of the cities among the 25 largest by population in the 2010 U.S. Census that made crime incident data available in a way that could be tabulated for ZIP codes. The analysis that follows is limited to ZIP codes with a population of at least 10,000 in the 2015 American Community Survey (ACS) and where the ratio of the Facebook users estimates to 2015 population was less than 1.5. This limits to locations where we can feel confident that Facebook’s systems for determining home are accurate, while also permitting some leeway for population shifts or dynamics that may lead to more Facebook users being identified living in a place than the ACS would have estimated (e.g., neighborhoods with colleges and universities). In the end, 432 ZIP codes fitting these criteria were included in the analysis.

Facebook advertising API

Facebook enables potential advertisers to target a desired audience defined through one or more characteristics, including geographic location, demographics (e.g., gender and age), behavior and interests. Some of the user attributes available for targeting are based on self-reported information, like demographics, while others are based on online activity on Facebook and Facebook-affiliated services, while yet others are provided by third party data brokers. Facebook’s advertising platform called Ad Manager provides advertisers with an estimate of the number of Monthly Active Users (MAUs) matching the specified targeting criteria. This information is typically used by advertisers to plan their campaign budget. However, it is also useful for research purposes as it acts as a “digital census” across Facebook’s user population allowing aggregate, anonymous data to be collected regarding characteristics of the user population. The Facebook data were collected from Facebook’s Ads Manager through Facebook’s Graph API. For each ZIP code in the dataset, data was collected on two classes of Facebook interests: those describing patterns of media consumption; and measures of relationships and dating. For the Facebook interests, estimates of number of users with each interest were tabulated for each ZIP code. We did this for the entire population, and then repeated after segmenting the population by gender and age groups (18-24, 18-34, 25+, 18+) and all combinations thereof. We did this because certain demographic groups are more likely to be perpetrators or victims (e.g., a large percentage of crime is committed by males from 18-24), and we sought to examine whether the interests of one of these population segments was more predictive of crime rates. To illustrate, the API estimated that there are 840 Facebook users living in ZIP code 11221 (in Brooklyn, New York City) who are aged 18-24, female and interested in classical music. We then calculated the fraction of users from the given demographic group with various interests as follows: To continue the previous example, ZIP code 11221 has approximately 10,000 females aged 18-24, generating a final fraction of .084 or 8.4%. Note that the Facebook advertising API typically produces round numbers for total estimates of Facebook users. For data on relationship statuses, aggregate user estimates in each ZIP code for the various combinations of age, gender and relationship statuses were collected, including “interest in an online dating service”. Again, we collected these for the entire adult population and for age-and-gender-defined segments and computed their prevalence using Eq (1). Next, for each demographic group, the female to male ratio of the users in each relationship status was computed and used in the subsequent analysis. The female to male ratio of those in an “open relationship” status was excluded due to data sparsity. We collected this ratio as we hypothesized that a gender imbalance in openly declaring to be in a relationship could be tied to risk-taking behavior. The Facebook data was collected over the period October-November 2017. For this project we complied with the terms of service of Facebook’s Marketing API (https://developers.facebook.com/policy/#marketingapi). In particular, any data collected was anonymous (15. 8.b) and we did not build or augment any user profiles (15. 8.f). The data collection was done using pySocialWatcher, a library based on the python programming language which automates the data collection process by sending queries through Facebook’s API for the specified criteria [19].

Demographic variables

For each of the 432 ZIP codes, data on demographic composition was collected from the 2011-2015 five-year estimates provided by the American Community Survey (ACS) [20]. The demographic data captured details on age, income, racial composition and educational attainment for the adult population for each ZIP code. Importantly, the U.S. Census approximates ZIP codes with ZIP Code Tabulation Areas (ZCTA) [21], whereas Facebook’s Advertising API uses true ZIP codes. ZIP codes and ZCTAs are nearly identical, with the rare exceptions typically including non-residential public buildings such as offices and schools situated along ZIP code boundaries which may fall into the ZCTA of an adjacent ZIP code area. Public parks will often not be included in any ZCTA as they have no residents. Given their similarity, we treat ZIP codes and ZCTAs interchangeably in the analysis.

Crime rates

National crime reporting systems such as FBI’s Uniform Crime Reporting system (UCR) do not report US wide crime data at the ZIP code level. As a result, the crime data used in this study were compiled from datasets released by individual city agencies who reported such data at the required geographic granularity (i.e. ZIP code level), working down the list of US cities in descending order of population. While the national crime reporting system in the US includes a broad list of crimes organized into various categories, our analysis here focuses on three types of crimes, namely assaults, burglaries and robberies. These crimes are among the most common offenses thus ensuring adequate coverage across the various cities’ datasets and ZIP codes, thereby mitigating data sparsity issues given the small geographic granularity. The crime data collection process involved the following steps: We acquired geocoded crime incident data from the open data portals of the respective cities [22-30]; We then spatially joined each crime incident to its containing ZIP code (using the ‘sp’, ‘rgeos’, ‘rgdal’ and ‘tmap’ packages in R; over 99% of crime incidents could be mapped this way); In order to ensure comparable definitions of crime types across cities, we mapped the crime categories used in each individual city’s dataset to the standardized categorization used by the National Incident Based Reporting System (NIBRS) [31]. We calculated crime rates per 100,000 residents by tabulating the number of crime events in a given category by ZIP code and then dividing by the ACS 2015 population estimate and multiplying by 100,000.

Preliminary analysis for variable selection

As noted, Facebook interests for each ZIP code were collected not only for the whole population but for specific age groups, genders, and their combinations. We did this because it is well-established that certain demographic groups (e.g., males 18-24) are more likely to be involved in crime than others, in which case their interests might be more predictive of crime rates. As the activities and interests of different demographic groups correlate differently with crime, it is possible that the Facebook interests and relationship variables for certain demographic groups may be more strongly predictive of crime rates than others. We used linear predictive models in order to evaluate the efficacy of Facebook interests in predicting crime rates across ZIP codes in the data set based on the interests of each of the various demographic groups. The results were then evaluated using a cross validation approach to provide estimates of out of sample predictive performance of the models. Given the large number of Facebook variables, the linear model were fitted using the LASSO model fitting technique which selects only a subset of the variables for the model [32]. See S1 Table in the appendix for a summary of the performance of the various models. It is evident that data from the 18+ demographic group had the strongest predictive fit overall, attaining the lowest error. Based on this observation, for the rest of the analysis done here we use the data collected for this demographic group only.

Measures

Before analysis we conducted a series of factor analyses to reduce the large number of Facebook interests and demographic measures down to a more manageable and interpretable set of dimensions [33]. Prior to factor analysis, we separated our Facebook-derived measures into four groupings: (i) movie related interests, (ii) music related interests, (iii) video and online game related interests and (iv) relationship and dating related variables. We then conducted a factor analysis within each grouping. We also conducted a fifth factor analysis of demographic variables. The number of factors to compute was decided based on the additional variance explained by the extra factor. Factor analysis was carried out using the ‘factanal’ package in the R programming language. Since this package performs factor analysis using the correlation matrix of the variables, variables were not standardized beforehand. Once the factor loadings were computed, variables whose loading’s absolute value exceeded 0.4 were marked as contributing to that factor and used to compute the factor scores for that factor in each ZIP code [34]. We then named the factors to descriptively capture their content. In all cases the variables that loaded together were sufficiently similar to be able to create such a label. Please refer to Tables 1 and 2 for factors and loadings of the groupings of Facebook variables. We report the same results for the demographic data in the S2 Table as it is a more standard analysis and less pertinent to our main goals here. S1 Appendix describes the factor analysis and the process of computing the factor scores in some more details.
Table 1

Factor analysis of the Facebook interest related variables.

GamesF1F2MusicF1F2F3MoviesF1F2
Games0.8110.408Music0.4020.3170.486Movies0.5990.474
Word0.0210.329Music videos0.8710.0460.225Animated0.6860.233
Action0.5250.816Classical-0.0960.1600.540Comedy0.7660.107
Gambling0.5300.399Gospel0.9430.148-0.092Fantasy0.7300.110
Online poker0.076-0.339Soul0.9420.1350.070Science fiction0.5970.606
First-person shooter0.8110.140Jazz0.7420.1090.186Thriller0.8360.266
Online0.6610.496Dance0.7500.0080.319Action0.9020.120
Simulation0.6780.417Rhythm & blues0.9750.1760.045Musical theatre-0.0200.473
Casino0.4160.709Hip hop0.962-0.0270.092Documentary0.3830.882
Board0.250-0.027Blues0.2490.9150.143Drama0.5770.248
Role-playing0.6270.043Country-0.2270.9140.070Anime0.567-0.335
Racing0.6930.266Rock0.2810.6980.472Horror0.8380.362
Browser0.3190.588Heavy metal0.1930.7720.442
Shooter0.7680.195Electronic0.4050.2160.779
Sports0.7070.379
Strategy0.4560.393
Card0.3300.746
Puzzle video0.4110.907
Video games0.8360.410

Factors and their loadings on the various Facebook interest related variables for the categories of games, music and movies.

Table 2

Factor analysis of the Facebook relationship related variables.

RelationshipF1F2F3
female/male ratio with “dating” status0.9800.1360.126
female/male ratio with “single” status0.7410.4010.142
female/male ratio with “in a relationship” status0.9670.1120.095
female/male ratio with “unspecified” status0.2550.954-0.143
Fraction of males “in a relationship” w. interest in “Online dating service”0.005-0.1070.436
Fraction of females “in a relationship” w. interest in “Online dating service”0.1430.0470.514

Columns indicate the factors and their loadings on the various Facebook relationship variables.

Factors and their loadings on the various Facebook interest related variables for the categories of games, music and movies. Columns indicate the factors and their loadings on the various Facebook relationship variables. The factor analyses generated a series of dimensions that we then used as independent variables in the proceeding analysis. There were three dimensions of music interests that we might refer to as: hip-hop, soul and related; rock-country; and easy listening. There was only one independent dimension related to movies (a second was overly correlated with the first factor) that encompassed interest in comedy, fantasy, thriller, action, drama, and horror movies. There was also only one independent dimension related to games (a second was overly correlated with the first factor), which encompassed, action, online, casino, browser, sports, card, and puzzle games. There were three dimensions related to relationships and dating: female-to-male ratios across stated statuses; female-to-male ratio in “unspecified” status; and fraction of females “in a relationship” with an interest in online dating services. There were three dimensions of demographics: affluence; proportion Black; and concentrated disadvantage.

Analysis

Once the factor scores were computed, they were used as the input variables in Ordinary Least Squares (OLS) regression models seeking to explain the geographic variation in crime rates for each of the three crimes of assaults, robberies and burglaries. Three different OLS models were fit each using a different subset of variables: (i) the factor scores from the demographic data only, (ii) the factor scores from the Facebook variables only, (iii) the factors scores from both the demographic variables and the Facebook variables. Models were fit with a backwards regression procedure in which we iteratively removed the least significant variables at each step until all model variables were significant at the 5% p-value. This was necessary given heavy collinearity between variables. Fig 1 shows the correlations between the various Facebook and demographic factors.
Fig 1

Correlation matrix of Facebook and demographic factor variables.

For the final set of models chosen through the step-wise regression procedures, we report two measures of model performance: (i) the adjusted R-squared, (ii) Mean Absolute Error (MAE). We report the MAE of the models on the dataset as well as an estimate of out-of-sample predictive error of the models computed through a cross validation approach; the cross validation involved fitting the chosen model on different subsets of the dataset and averaging its error over the subsets it was not fitted on.

Results

We ran a series of three regression models for each of the three crime types–assaults, burglaries, and robberies. The details of the regression models are presented in Table 3 for assaults, Table 4 for burglaries and Table 5 for robberies. The first model used only demographic factors to predict crime rates, the second used only Facebook interests, and the third used both. All models included a series of dummy variables controlling for each city’s baseline crime rate and also controlled for age composition of the neighborhood (percentage of 18-24 year-olds and median age), which might be correlated both with crime rates and with Facebook usage patterns. Owing to collinearity between variables, the models were run as a backwards stepwise regression, beginning with a comprehensive model and then trimming back to only the significant predictors. Across all three, we see that the combination of demographic factors and Facebook interests had the greatest predictive strength for both the initial in-sample (using adjusted R2) and the out-of-sample prediction (using MAE), though the advantage over the demographics-only model varied by crime type.
Table 3

Parameter estimates and fit statistics for regression models predicting assault crimes.

Demog. ModelFB ModelDemog. & FB Model
Intercept-0.100 (0.123)-0.187 (0.131)-0.016 (0.123)
% Population aged 18-24-0.075 (0.042)-0.021 (0.043)
Median age-0.208*** (0.040)-0.129** (0.045)
affluence
proportion black0.553*** (0.031)0.262** (0.080)
concentrated disadvantage0.220*** (0.052)
hip-hop soul and related0.590*** (0.035)0.332*** (0.097)
rock-country-0.528*** (0.052)
easy listening
movies factor-0.143* (0.061)
games factor-0.170** (0.064)
female-to-male ratios across stated statuses
female-to-male ratio in “unspecified” status
frac. Of females “in a relationship” with an interest in online dating services
Adjusted R-squared0.6390.6040.656
Marginal adjusted R-squared (from city dummies)0.4880.4370.511
RSS151.50166.78143.17
MAE (train)437.77450.89423.50
MAE (CV)450.18465.38439.08
F-statistics70.4466.7055.76
df420421416
N432432432

*** p < 0.001,

** p < 0.01,

* p < 0.05

Demog. = demographic, FB = Facebook. Coefficient standard errors are in parenthesis. All variables were standardized before the regression. City-level fixed effects are accounted for by models.

Table 4

Parameter estimates and fit statistics for regression models predicting burglary crimes.

Demog. ModelFB ModelDemog. & FB Model
Intercept0.780*** (0.135)0.922*** (0.137)0.899*** (0.136)
% Population aged 18-24-0.086 (0.047)-0.039 (0.046)
Median age-0.071 (0.044)-0.023 (0.044)
affluence
proportion black0.199*** (0.035)0.144* (0.059)
concentrated disadvantage
hip-hop soul and related0.524*** (0.057)0.338*** (0.076)
rock-country
easy listening
movies factor-0.152** (0.054)
games factor-0.249*** (0.054)-0.275*** (0.052)
female-to-male ratios across stated statuses-0.174*** (0.043)-0.149*** (0.044)
female-to-male ratio in “unspecified” status
frac. Of females “in a relationship” with an interest in online dating services
Adjusted R-squared0.5620.6010.598
Marginal adjusted R-squared (from city dummies)0.0830.1630.157
RSS183.77167.22167.62
MAE (train)168.14161.68161.72
MAE (CV)174.29167.62168.12
F-statistics51.3755.0846.80
df420419417
N432432432

*** p < 0.001,

** p < 0.01,

* p < 0.05

Demog. = demographic, FB = Facebook. Coefficient standard errors are in parenthesis. All variables were standardized before the regression. City-level fixed effects are accounted for by models.

Table 5

Parameter estimates and fit statistics for regression models predicting robbery crimes.

Demog. ModelFB ModelDemog. & FB Model
Intercept0.761*** (0.136)0.820*** (0.147)0.906*** (0.137)
% Population aged 18-24-0.119* (0.047)-0.077 (0.047)
Median age-0.292*** (0.044)-0.272*** (0.046)
affluence-0.170** (0.054)
proportion black0.482*** (0.035)0.250** (0.089)
concentrated disadvantage
hip-hop soul and related0.6*** (0.046)0.283** (0.105)
rock-country-0.645*** (0.059)
easy listening
movies factor-0.240*** (0.070)
games factor-0.171** (0.064)
female-to-male ratios across stated statuses-0.139** (0.045)
female-to-male ratio in “unspecified” status
frac. Of females “in a relationship” with an interest in online dating services
Adjusted R-squared0.5580.5280.581
Marginal adjusted R-squared (from city dummies)0.4110.3710.441
RSS185.63198.17174.46
MAE (train)111.61116.16109.85
MAE (CV)115.18120.32114.55
F-statistics50.4744.8640.78
df420420416
N432432432

*** p < 0.001,

** p < 0.01,

* p < 0.05

Demog. = demographic, FB = Facebook. Coefficient standard errors are in parenthesis. All variables were standardized before the regression. City-level fixed effects are accounted for by models.

*** p < 0.001, ** p < 0.01, * p < 0.05 Demog. = demographic, FB = Facebook. Coefficient standard errors are in parenthesis. All variables were standardized before the regression. City-level fixed effects are accounted for by models. *** p < 0.001, ** p < 0.01, * p < 0.05 Demog. = demographic, FB = Facebook. Coefficient standard errors are in parenthesis. All variables were standardized before the regression. City-level fixed effects are accounted for by models. *** p < 0.001, ** p < 0.01, * p < 0.05 Demog. = demographic, FB = Facebook. Coefficient standard errors are in parenthesis. All variables were standardized before the regression. City-level fixed effects are accounted for by models. As seen in Table 4, accounting for each city’s baseline crime rate, burglary rate was very weakly predicted by demographics (marginal R2 = .08; MAE = 174.3), but this rose with the incorporation of Facebook interests (marginal R2 = .16; MAE = 168.12). In fact, the model including only Facebook interests was not only much stronger than the demographics-only model, it was more efficient at capturing the same quantity of information as the combined model (R2 = .16; MAE = 167.62). In contrast, for assaults and robberies, demographics played a stronger role in predicting crime rates. In each case, the Facebook interests model was comparable in strength to the demographics-only model, though somewhat weaker (assaults, Table 3: marginal R2 = .44 vs .49, MAE = 465.35 vs. 450.18; robberies, Table 5: R2 = .37 vs .41, MAE = 120.32 vs. 115.18). That said, the combination of the two sets of predictors was always the most effective at predicting crime rates (assaults, Table 3: R2 = .51, increase in variance explained with the introduction of Facebook interests, F = 6.05, p <.001, MAE = 439.08; robberies, Table 5: R2 = .44, increase in variance explained with the introduction of Facebook interests, F = 7.53, p <.001, MAE = 114.55). Examining the individual predictors more closely, we see some patterns across crime types, especially assault and robbery. Proportion Black predicted higher levels of assault, robbery, and burglary, with all effects remaining in the final models with Facebook interests included (assault, Table 3: B = .26, p <.001; burglary, Table 4: B = .14, p <.05; robbery, Table 5: B = .25, p <.01). Additionally, concentrated disadvantage independently predicted a higher assault rate (Table 3: B = .22, p <.001), though was unrelated to the other two outcomes in the final models. Concentrated poverty was not independently predictive of any of the three types of crime. Results regarding Facebook interests were diverse, and shifted substantially between the Facebook interests-only and Facebook-and-demographics models. For this reason we describe the results for music interests, other media, and dating and relationships in turn. All three Facebook interests-only models found that hip-hop and soul predicted higher crime rates (assault, Table 3: B = .59, p <.001; burglary, Table 4: B = .52, p <.001; robbery, Table 5: B = .60, p <.001). In contrast, country-rock predicted lower assault and robbery rates (assault, Table 3: B = −.53, p <.001; robbery, Table 5: B = −.64, p <.001). These effects were largely attenuated by the incorporation of demographic factors, but not entirely. Country-rock was no longer predictive of any outcomes in the final models, but hip-hop and soul remained predictive of higher rates of all three types of crime, albeit to a lesser extent than in the Facebook interests-only models (assault, Table 3: B = .33, p <.001; burglary, Table 4: B = .34, p <.001; robbery, Table 5: B = .28, p <.01). The third factor based on music interests, easy listening, was not predictive of crime rates in any of the models. Other media consumption had an inconsistent relationship with crime outcomes. Areas that had a greater density of people with interests in movies had lower burglary rates in the Facebook interests-only model (Table 4: B = −.15, p <.05), but this relationship was no longer present when demographics were incorporated. However, interests in movies became predictive of fewer assaults and robberies after accounting for demographics, despite not being a significant predictor in the Facebook interests-only model (assault, Table 3: B = −.14, p <.05; robbery, Table 5: B = −.24, p <.001). Similarly, interests in games (e.g., puzzles, video games, sports games) were associated with lower burglary rates in both models (Table 4, final model: B = −.28, p <.001), but only emerged as predictive of lower assault and robbery rates in once demographics were accounted for (assault, Table 3: B = −.17, p <.05; robbery, Table 5: B = −.17, p <.001). In terms of dating and relationships, the ratio of females to males with specified dating statuses (e.g., in a relationship, single) predicted lower burglary and robbery rates in the Facebook interests-only models (burglary, Table 4: B = −.17, p <.001; robbery, Table 5: B = −.14, p <.01). It only remained a significant predictor, though, for burglary rates (Table 4, B = .15, p <.001). Neither of the other factors describing dating and relationships–ratio of females to males with an unspecified status and fraction of females “in a relationship” with an interest in online dating–was predictive of any of the three crime rates. As a visual illustration for New York city, Figs 2 and 3 show maps of the assault crime rates as predicted by the Facebook model and as reported in the year 2017 respectively. We choose to illustrate New York city as it is the most highly populated city in the dataset with a large coverage of ZIP code areas and relatively good model performance (prediction MAE of 325 for FB assault crime model). From this visual comparison, several observations can be made. For low crime areas, such as in Staten Island (bottom left), Brooklyn and Queens (bottom right) we generally observe predictions to be consistent with the reported crime rates; however, we also observe low crime areas that are predicted to have much higher crime rates (dark orange areas in bottom of the plot). We also observe lower predicted crime rates for the high crime areas in the Bronx/Manhattan (top right).
Fig 2

Predicted assault crime rates.

Assault crime rates predicted by the Facebook model for ZIP codes in New York City.

Fig 3

Assault crime rates 2017.

2017 Assault crime rates for ZIP codes in New York City.

Predicted assault crime rates.

Assault crime rates predicted by the Facebook model for ZIP codes in New York City.

Assault crime rates 2017.

2017 Assault crime rates for ZIP codes in New York City.

Discussion

The results demonstrate the utility of Facebook interests to predict crime rates across the ZIP codes of a city. Across three types of crime—assaults, robberies, and burglaries—the prevalence of certain interests among the Facebook population improved the predictive power of models already accounting for the racial composition and socioeconomic status of the population. We also segmented the population by age and gender to see if interests among populations known to be more active as offenders (e.g., young males) were more strongly associated with crime rates, but Facebook interests of the overall population were the most effective predictors. This could be in part because the whole population will be substantially larger than any sub-population, permitting more precise measurement. Nonetheless, it suggests that the power of Facebook interests to predict crime rates lies less in the behaviors of particular individuals and more in the overall behavioral ecology of a region. For assaults and robberies, demographics already explained a substantial proportion of the variance, but the Facebook interests offered an incremental improvement in model fit. Importantly, the models using Facebook interests but not demographics were only modestly less effective than models with demographics alone, indicating a strong set of intercorrelations between demographics, Facebook interests, and crime rates. The potential value of Facebook interests as a novel data set, however, shone through in the analysis of burglary rates. Burglary was only modestly explained by racial composition and socioeconomic status, as has been seen previously in the literature [35]. This is attributed to two contrasting pressures: more affluent neighborhoods offer more targets, but perpetrators are more likely to be lower income and tend to commit crimes closer to home [36]. In this regard, Facebook interests explained 16 percent of the marginal variance in predictions of burglary rates, which was twice that of the demographics-only model. Just as important as the ability of Facebook interests to help predict future crime rates across ZIP codes is how they do so. We saw measures from two generalized categories—media consumption and relationships and dating—each contribute to the models, though each appears to tell its own story. For media consumption, we see two sets of results. For music, a prevalence of people with interests in hip hop and soul and related genres predicted higher crime rates, even when controlling for racial composition and socioeconomic status. There are multiple possible explanations for this. First, it is possible that the poor black neighborhoods hit hardest by high crime rates are those where hip hop music and related genres are most popular. In fact, this finding might also be driven in part by a decoupling of race and culture, where neighborhoods dominated by other ethnicities, by they White, Latino, Asian, or otherwise, that listen to large amounts of hip hop and related music also have elevated crime rates. Alternatively, it could be that neighborhoods with cultural interests that are stereotypically associated with crime might be monitored more strongly by police, resulting in more crimes identified and arrests (e.g., [37]). On the other hand, elevated interests in movies predicted lower rates of assault and robbery controlling for demographics, and interests in games predicted lower rates of burglary. This combination of findings might point to a potential pattern in that those items that predicted fewer crimes are reflective of a more subdued lifestyle with a greater investment of time in the consumption of digital media. What this means theoretically, however, might be debated. For example, proponents of the general theory of crime might argue that such consumption is a manifestations of a more patient, future-oriented perspective on life that also is reflected in lower crime rates. Strain theory might instead rephrase the same distinction, viewing these activities as a potential outlet for strain, which would not then be channeled into crime. A third, simpler interpretation would be that people who are spending large amounts of time watching movies and playing video have fewer opportunities to commit crimes as they are occupied with these activities. Relationships and dating were also associated with crime, though only in that a higher ratio of females with stated relationship statuses to males with stated relationship status predicted burglary rates. It is difficult to extrapolate too much from this single finding, though it is consistent with one theoretical perspective in this area that focuses on male-male intrasexual competition. It may be that the greater overall availability of females in a community–as indicated by the high ratio of females to males reporting any sort of dating status– leads males to be less likely to commit crime as they have less need to compete for attention. That said, it is not entirely clear whether this is because of availability of females for particular types of relationships, or whether this is just a broader impact of male-female sex ratio, which is well-captured by “ratio of females to males with a stated status” as most individuals indicate their status [9]. As noted at the forefront, this study was exploratory, seeking to determine whether Facebook interests could act as a novel tool that could improve upon demographic-driven models for predicting crime rates across the neighborhoods of a city. We found, indeed, that this is the case, and thus believe there are opportunities for constructing more formalized forecasting systems using these resources, especially if the work is expanded to more cities than the 9 we were able to examine here. There is also the potential to use these data to test competing and complementary theories of criminogenesis at the neighborhood and individual levels [38]. That said, there are important limitations that will need to be addressed moving forward. The first entails the precision of the methodology. Here we have taken an omnibus approach to testing the relationship between a wide array of Facebook interests and crime rates. This is an appropriate first step, but will need to be followed by a more scrutinous approach that organizes interests according to theoretical propositions [39]. The Facebook Advertising API is also complex in its ability to segment the population by various demographic characteristics. This might be used to better specify “offender” and “victim” groups and how their own interests might be reflected. We have used this capacity limitedly here, finding that interests among young males were not more predictive of crime rates than interests of the general public. That said, there may be additional opportunities in this vein that could be probed. A challenge, however, will be data sparsity, as such segmentation reduces the overall pool of users from which data is collected. Last, there is a general caveat for modern digital data resources: “researcher beware” [40-42]. The Facebook algorithms that generate the data are a black box, creating two issues. The first is one of substantive interpretation and what exactly it means for a particular ZIP code to be high in a given interest. The second is that changes in these algorithms would mean that the models need to be re-calibrated over time for long-term prediction purposes. We have demonstrated an initial set of relationships between the analyzed interests, demographics, and crime rates, but these only tell us so much about the data and even less about their stability in the coming years. More targeted work will need to be done to fully understand these data and their utility.

Preliminary analysis across various demographic groups on Facebook.

(PDF) Click here for additional data file.

Factor loadings for the demographic variables.

(PDF) Click here for additional data file.

Details on the factor analysis.

(PDF) Click here for additional data file.
  6 in total

1.  The interaction between impulsivity and neighborhood context on offending: the effects of impulsivity are stronger in poorer neighborhoods.

Authors:  D R Lynam; A Caspi; T E Moffitt; P O Wikström; R Loeber; S Novak
Journal:  J Abnorm Psychol       Date:  2000-11

2.  Life stress, anger and anxiety, and delinquency: an empirical test of general strain theory.

Authors:  R H Aseltine; S Gore; J Gordon
Journal:  J Health Soc Behav       Date:  2000-09

3.  Life expectancy, economic inequality, homicide, and reproductive timing in Chicago neighbourhoods.

Authors:  M Wilson; M Daly
Journal:  BMJ       Date:  1997-04-26

4.  Broken windows and low adolescent prosociality: not cause and consequence, but co-symptoms of low collective efficacy.

Authors:  Daniel Tumminelli O'Brien; Richard A Kauffman
Journal:  Am J Community Psychol       Date:  2013-06

5.  Big data. The parable of Google Flu: traps in big data analysis.

Authors:  David Lazer; Ryan Kennedy; Gary King; Alessandro Vespignani
Journal:  Science       Date:  2014-03-14       Impact factor: 47.728

6.  Burglar Target Selection: A Cross-national Comparison.

Authors:  Michael Townsley; Daniel Birks; Wim Bernasco; Stijn Ruiter; Shane D Johnson; Gentry White; Scott Baum
Journal:  J Res Crime Delinq       Date:  2015-02
  6 in total
  1 in total

1.  How Neighborhood Characteristics Influence Neighborhood Crimes: A Bayesian Hierarchical Spatial Analysis.

Authors:  Danlin Yu; Chuanglin Fang
Journal:  Int J Environ Res Public Health       Date:  2022-09-10       Impact factor: 4.614

  1 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.