Socio-economic, built environment, and mobility conditions associated with crime: a study of multiple cities

Abstract

Nowadays, 23% of the world population lives in multi-million cities. In these metropolises, criminal activity is much higher and violent than in either small cities or rural areas. Thus, understanding what factors influence urban crime in big cities is a pressing need. Seminal studies analyse crime records through historical panel data or analysis of historical patterns combined with ecological factor and exploratory mapping. More recently, machine learning methods have provided informed crime prediction over time. However, previous studies have focused on a single city at a time, considering only a limited number of factors (such as socio-economical characteristics) and often at large in a single city. Hence, our understanding of the factors influencing crime across cultures and cities is very limited. Here we propose a Bayesian model to explore how violent and property crimes are related not only to socio-economic factors but also to the built environmental (e.g. land use) and mobility characteristics of neighbourhoods. To that end, we analyse crime at small areas and integrate multiple open data sources with mobile phone traces to compare how the different factors correlate with crime in diverse cities, namely Boston, Bogotá, Los Angeles and Chicago. We find that the combined use of socio-economic conditions, mobility information and physical characteristics of the neighbourhood effectively explain the emergence of crime, and improve the performance of the traditional approaches. However, we show that the socio-ecological factors of neighbourhoods relate to crime very differently from one city to another. Thus there is clearly no “one fits all” model.

Introduction

Criminology widely recognizes the importance of places1,2: crime occurs in small areas such as street segments, buildings or parks, and it is spatially stable over time3,4. However, theoretical and empirical research showed that crime is also a consequence of socio-economic contextual characteristics, usually referred to as the “neighbourhood effect”5,6. In criminology, cooperation, as opposed to disorganization of neighbours, is indeed believed to create the mechanisms by which residents themselves achieve guardianship and public order7, solve common problems, and reduce violence7,8,9. This mechanism also finds its roots in urban planning, where the relationship between specific aspects of urban architecture10 and urban physical characteristics11 are related to security. Places and neighbourhoods are not to be considered islands unto themselves, as they are embedded in a city-wide system of social interactions. On a daily basis, people’s routine exposes residents to different conditions, possibilities12, and this routine may favour crime13. Nevertheless, many empirical studies focus on just a subset of static factors at a time such as socio-economic factors without considering the contextual built environment8,9,14,15,16,17, or ignoring mobility15,16,18,19, and often only drawing results in a single city (e.g. Chicago)8,9,15,19,20,21,22,23,24,25,26.

Studies on small areas and neighbourhoods roughly come from two streams of literature. The first stream focuses on the routine activity and crime pattern theories13,27,28 at places. These studies suggest that crime occurs when an offender, its suitable target, and the absence of any deterrence system, such as police or even ordinary citizens29, converge at a place. The presence of people influence the number of offenders and targets, but the daily routine of residents exposes homes and people to predatory crimes30. The built environment was also found to affect criminal activities, as physical disorder and specific locations (e.g. bar, taverns) attract offenders and suitable targets31,32,33. The second stream of literature builds on the social context upon which the place of the crime is embedded. A notable example is the Social Disorganization theory7,9, which found high crime concentration in socially and economically disadvantaged neighbourhoods. In it, the structural predictors are often seen through the concentrated disadvantage, ethnic diversity, residential instability of neighbourhoods7,9,34 While most of these studies use census data as primary data source, recent years have witnessed a growing interest in alternative data. For example, scholars exploited synthetic social ties to simulate neighbourhood cohesion35, and mobility flows to indicate crime opportunities and connections between neighbourhoods23. Others leveraged crowd-sourced Point of Interests (POIs), taxi flows36, and dynamic population mapping from satellite imagery17,37 and mobile phone activity14,20 to assess the presence of people. Altogether, these results highlight the tight relation between the socio-economic, the built environment and mobility conditions, and their impact on criminal activities. Although the two streams of the theory are often seen as competing, we argue that they can complement each other. However, very limited work has integrated socio-economic, built environment and mobility conditions together in multiple cities and in small areas. Moreover, while crime theories are not limited to specific cities5, and several cross-disciplinary results suggest common and universal patterns in mobility38,39, urban environment40 and aggregated crime41,42 in urban systems, our comparative knowledge base is limited5. These limitations result in a fragmented and incomplete picture5,43 of how the numerous factors influence crime in the urban context and limit the impact of the conclusions.

Here, we seek to shed light on the diverse set of factors at play with urban crime exploring how violent and property crimes are related, at the same time, to the Social Disorganisation, to the built environment characteristics and to human mobility. Specifically, we analyse crime at the level of group of blocks (measuring on average 0.378 square kilometers), considering both the local features of the group and its surrounding context, represented by all the blocks within a half-mile. The contribution of this paper is twofold. First, we address the need for a comprehensive study that explores crime patterns at fine grained resolution across multiple cities of the world, analysing Bogotá, Boston, Los Angeles and Chicago. Secondly, we show that taking into account the complex interplay between crime, people, places, and human mobility significantly improves the performance of the crime inference. We make use of massive and ubiquitous data sources such as mobile phone records and geographical data, implying that the resulting framework can be replicated at scale. Our generated insights can help recommend effective policies and interventions that improve urban security.

Results

We study criminal activity in Bogotá (Colombia), Boston (USA), Chicago (USA) and Los Angeles (USA), four very different cities with respect to cultural, urban and socio-economic conditions.

Our approach follows the aforementioned two streams of literature of place and neighborhood, assuming the existence of a social process named neighborhood effect, namely the relation of crime patterns with small places characteristics and mobility. To account for all these factors we analyse criminal activity and small places characteristics at census block group, the smallest geographical unit for which the U.S. census publishes data, and measuring on average 0.378 square kilometers. Each block group, here called core, is exposed to a surrounding context, named corehood, which is the set of all the surrounding block groups within a half mile from the core (see Figure 1). As the context of nearby cores is similar, corehoods might overlap. The idea of using overlapping units is not new16,44,45, and it is focused on creating an ego-centric neighborhood for each core (see Supplementary Information (SI) Note 11 for a technical discussion). We describe the characteristics of the place where crime happens through specific features of the core, while we describe the context at which it is embedded through the features at the corehood. As neighborhoods in literature are loosely defined, we tested different sizes of the corehood, finding the half mile distance as the best to describe the neighborhood effect (see the SI Note 11).

Criminal activity is provided by police agencies, which record through police reports the geographic location (i.e. latitude and longitude), date, time of day and category of each crime event. For all the cities we map each category of crime into the US Uniform Crime Reporting (UCR) categories46 and analyse crime belonging to two broad categories: violent and property crimes. They include homicides, sexual and non-sexual aggravated assaults, robbery, motor vehicle thefts and arson. We assign each crime to a corehood through its geographical position.

We describe cores through the features that were previously found to attract potential offenders and targets36, such as the census residential population and the number of nightlife, shops and food POIs inside each core, which are extracted from web data (more details in the Methods Section). Then, we describe corehoods through the environmental (neighbourhood) characteristics found to influence crime11,24. The corehood features are estimated from all the block groups surrounding the core. We group them in Social Disorganization (SD), Built Environment (BE) and Mobility (M) features. The SD characteristics include some of the standard Social Disorganization theory features, namely concentrated disadvantage, instability and ethnic diversity. Consistently with the literature7,9,15,26, disadvantage and instability are composite variables built from the two largest principal components of: (i) unemployment rate, (ii) poverty rate, defined as people living below the poverty line, and (iii) residential mobility rate, defined as the percentage of people who recently changed residency. Again, in accordance with the literature7,47,48, ethnic diversity is computed as the Hirschman-Herfindahl index across six population groups (e.g. hispanic, black, white people, etc.). Additional details are present in the Methods Section. Note that we excluded all race-specific variables that are usually employed (e.g. percentage of black people in36) to build an evidence-based and race-neutral model.

The BE corehood features are based on the Jane Jacobs theory11, which states that the presence of people and a vibrant neighborhood life form a virtuous loop controlling local crime. From her own words “a well-used city street is apt to be a safe street and a deserted city street is apt to be unsafe”11. Four conditions have to be valid to ensure this virtuous loop. First, a district should serve at least two or more functions to have streets continuously used by residents and strangers. Second, street blocks should be small and short to ensure both high walkability and frequent meeting of people at street intersections. Third, diverse buildings make it possible to have low- and high-rent spaces, and thus a mixture of people and enterprises. The fourth condition is about dense concentration, which ensures a sufficient presence of people and enterprises to attract dwellers from different neighbourhoods continuously. Thus, in accordance with the literature49 we operationalize through census and geographical data the four conditions in: i) land-use mix; ii) block size iii) building age diversity; iv) population density and walkability, which promotes social relations50 and is connected to local cohesion of neighbors. The details, data sources, and formula for these metrics are available in the Methods Section.

The M features are built upon recent mobility and criminology literature, which found mobility to be tightly coupled with criminal activity in space and time14,20,25,42. People at risk in urban areas can be essentially measured through residential and floating population. The first one measures the number of people who resides in an area, while the second one measures the average number of people that can be expected in an area at any given time37 (e.g. average number of people at a mall). We measure floating population through the average number of people for each core, named ambient population37, and the attractiveness of the corehood, measured through the number of people movements to the corehood for reasons different than travelling to work or home. We extract this valuable information from passively and anonimized mobile phone data, collected by mobile phone operators for billing reasons. From mobile phone data, we fit the mobility model TimeGeo51 and simulate realistic urban traces that are used to extract the ambient population and attractiveness features. We do not include M features for Chicago, as we do not have mobile phone traces. Even if mobility is not available, Chicago is considered by many the testbed for empirical crime analysis, thus we include it to allow readers to do useful comparisons for socio-economic and urban environment characteristics.

Crime patterns have been observed to be highly concentrated in the space, overdispersed52, and positively spatial correlated. Thus, we model and predict crime through a spatially filtered Bayesian Negative Binomial, which is specifically tailored for discrete data, accounts for the overdispersion of crime events, models uncertainty and avoids the biased parameters of non-spatial models53,54. Through this model, criminal activity at cores is described by a linear combination of an intercept, the fixed effects (i.e. the aforementioned core and corehood features), and some random effects that represent the latent and unexplained variance that emerge from the spatial-autocorrelation of neighboring areas. Our model accounts for the high spatial correlation in crime events, and we did not find any significant spatial auto-correlation in the model residuals (see Note 4 in the SI). The reader can refer to the Methods section for additional details about the model and its formulation.

Description and prediction of crime

We begin by presenting the aggregated performance of our model predicting crime in the four analysed cities. We evaluate our model under various feature combinations to assess the contribution of each group of features. We measure the capability of the model to describe crime through the marginal $$R^2_m$$55 and the conditional $$R^2_c$$55 (the higher the better). The marginal $$R^2_m$$ measures the proportion of variance explained by the fixed effects (i.e. the input features), while the conditional $$R^2_c$$55 takes also into account the variance explained by the auto-correlation but not the input features (absorbed by the random effects). The difference between the two can be used to find clustering effects and missing variables. To assess the point-wise out-of-sample prediction accuracy we use the Pareto-smoothed importance sampling Leave-One-Out cross-validation (here called LOO for simplicity)56 (the higher, the better).

First, we evaluate the baseline model that includes only the core variables, namely the residential population and the number of nightlife, shops and food POIs. Table 1 shows that the core-only model performs poorly in Chicago, Los Angeles and Boston, while it has high $$R^2_m$$ in Bogotá. We observe high difference between $$R^2_m$$ and $$R^2_c$$, which means that there is a significant unexplained variance that is not explained by the core features.

The SD, BE and M features significantly increase the explanatory power of our model. Particularly, in US cities, the $$R^2_m$$ increases up to 161%, 194% and 633% in Boston, Los Angeles and Chicago. Notably, and not surprisingly, the SD features are very important, especially in Chicago, where the “Chicago school”57 forged the Social Disorganization theory and further elaborated the role of collective efficacy on dealing with crime. Differently, the increase in Bogotá is less pronounced, suggesting that the neighbourhood impact on crime is limited. Turning to M and BE features, we find that they describe the crime, but they are often as not meaningful as the SD features for crime prediction. However, the importance of mobility confirms the importance of floating population at describing micro-dynamic behaviour of criminal activity25,42. We observe that in all cities the conditional $$R^2_c$$ increases when adding the SD, BE and M features, revealing that the included variables also help explain the variance of crime.

Overall, Table 1 shows that considering together SD, BE and M variables result in the highest descriptive ($$R^2_m$$) and predictive (LOO) performance. This result means that, in order to model crime, one needs to account for multiple aspects of urban life, including Social Disorganization, the physical characteristics of the neighbourhoods, and mobility. This result holds also against different combinations of the features (i.e. SD+BE, SD+M and BE+M). Nonetheless, some of the SD+BE and SD+M models are very competitive and might be considered when all data-sources are available. Particularly, the ambient population (i.e. the average number of people who stop at the core) is one of the most important variables in the model and allows to better assess the number of people at risk, as suggested by previous works on aggregated mobility42, satellite imagery37, Twitter20 and census data58. The $$R^2_m$$ improvements also indicate that the model relies less on the random effects and it is better at explaining crime from the input features. However, we found that it might generate large errors due to places that are outliers of mobility in densely populated areas or hotspots of activity (see Figure S16 and Figure S17 in the SI).

Figure 2 shows the spatial gain in performance from the baseline in Bogotá. First, it reveals that our Full model prediction resembles the ground truth data (Figure 2 D-E), as confirmed by the high value of $$R^2_c = 0.80$$. Second, it shows that, while the SD and BE models achieve localized improvements (Figure 2 A-B), the Full model improves the prediction almost everywhere. However, the Full model performs quite poorly in a specific area of Bogotá (see Figure 2 C), part of the Engativá neighbourhood. By inspecting the coefficients of the model, we find that this area is an outlier as it is densely populated, thus causing an inflated prediction of crime, due to the high importance of residential and ambient population in the Bogotá model. Note, however, that our prediction is at the block level and the city-wide goodness of fit is $$R^2_c = 0.80$$.

The difference between $$R^2_c$$ and $$R^2_m$$ represents the unexplained variance due to spatial auto-correlation, which might suggest missing effects and variables. In Bogotá, our model points out that the touristic and dangerous neighbourhood La Candelaria, and the populous district of Engativá have significant unexplained variance that our input features cannot capture (see Figure S13 in the SI). In Boston, the area near the Franklin park indicates missing local factors (see Figure S12 in SI). In Los Angeles, unexplained variance seems to be tied to places with a large number of people, namely the international airport and the UCLA campus (see Figure S14 in SI). Again, in Chicago, missing variables are suggested near the prison and the southern area (see Figure S15 in SI). Altogether, these signals could help policymakers on including the best factors for each city and enacting policies that prevent crime.

Previous results suggested that human movements between different regions might help describing crime36,59. Thus, we test our model against this hypothesis by using the people trips between areas to model the auto-correlation between corehoods. This connectivity is not only influenced by distance but also by geographical barriers, roads, traffic, and public transportation. Moreover, it could be interpreted as a proxy of spatial mismatch and isolation, which was empirically found to be connected with crime60. To build the connectivity matrix we use the TimeGeo model, which simulates a reliable Origin-Destination matrix between regions and it is validated towards transportation surveys (see Supplementary Note 3.1). However, we find that mobility flows alone do not have good predictive power in LA and Boston. The interested reader can find more information on the definition and results of this connectivity matrix in Supplementary Note 6.

While the effects of urban environment characteristics, socio-economic conditions, and mobility have been empirically tested separately9,49,60,61,62, to the best of our knowledge, this is the first study to support with large-scale data the association of crime with socio-economic conditions, the built environment, and mobility. However, we find that these aspects do not play the same role across cities, and only some of them contribute to the crime prediction model.

Neighborhood variables across cities

By comparing how features play different roles in different cities, we can understand how far can we push previous theoretical and empirical studies. In this section, we turn our attention to the standardized $${\beta }$$ coefficients that reveal how features correlate with criminal activity.

First, we focus on the coefficients of the Full model, which combines socio-economic features with the characteristics of the built environment and human mobility. Note that here Chicago is excluded for lack of data. Figure 3 pictures that the $${\beta }$$ coefficients vary greatly across cities. For example, land-use mix correlates negatively with criminal activity in Bogotá and Los Angeles, but positively in Boston. Similarly, higher population building age diversity is present in low-crime areas in Boston and Los Angeles, but in high-crime areas in Bogotá. Social Disorganization variables are no less different, as corehood instability is correlated with crime activity only in Bogotá, differently from what expected from the theory7,63.

The discrepancies between cities could be explained by the different spatial and socio-economic processes at play. When we look at the bivariate correlations across features, we observe interesting patterns. For example, in Los Angeles and Boston, walkability is strongly positively correlated with population density and neighbourhood attractiveness, as expected7,63, and slightly correlated with advantaged neighbourhoods. Differently, walkable areas in Bogotá have low population density and are highly advantaged, while the attractiveness is slightly correlated (see Figure S20 in SI). A possible reason for the $${\beta }$$ coefficients disagreement lies on the multi-collinearity of the input features. Although we use the QR decomposition and Ridge penalty to shrink down the variables that are not necessary, the difference between the coefficients is present also in simpler models (e.g. core-only).

The difference between the results across cities also suggests that crime correlates differently with space and people. For example, we observe that in Bogotá high crime areas relate to advantaged neighbourhoods, while in Boston and Los Angeles higher crime seem to be linked to disadvantaged neighbourhoods, according to the theory7,63. A possible explanation might be related to under-reporting and police disrespecting, which seems to be a problem particularly in Bogotá64. However, literature has shown how neighbourhood cultural codes, informal local control, and problematic policing are also related to violent criminal activities15.

We also found some commonalities in all the cities. We find that corehoods with high disadvantage and ethnic diversity but, surprisingly, smaller blocks have higher crime activity. While in the core we find that the presence of Shops, Food POIs, and population (both residential and ambient) correlates positively with criminal activity. These results resonate with literature showing that the presence of POIs and ambient population increase crime due to a higher number of potential targets and offenders in an area. Additionally, we find that corehood attractiveness has a strong connection with crimes, suggesting that the presence of people that do not live nor work in the area might influence crime. This result is in contrast with literature based on Jacobs’ theory11,22, but resonate with Oscar Newman’s one arguing that a high number of visitors results in higher anonymity and, thus, crime10. Additionally, a recent empirical study from survey data65 agrees with our result, obtained instead with large-scale and passively collected information. In the supplementary materials (SI), we compare all the cities in detail (see Supplementary Note 5-11).

We acknowledge the big difference between crime types. In this paper, we analysed serious crimes, which comprise heterogeneous crime types such as rape and robberies. Thus, we also test our model by disentangling criminal activity into two main categories: property and violent crimes. We found that the Full model still outperforms the others, and that precise patterns can be extracted from the $$\beta$$ coefficients analysis. For example, in Bogota walkability is much more important in describing property crime than violent crime, while in Los Angeles, higher walkability seems to suggest a lower presence of property crimes. However, we observe that the multifaceted picture found in the aggregated crimes still holds for the disentangled models.

We also tested the alternative assumption where all corehood features are computed at the core, and found that the models with features computed at the corehood perform better than the models using SD, BE and M features only at the core, which highlights the validity of the corehood (and neighbourhood) assumptions (see Supplementary Note 11).

Previous research have found universal common patterns even in highly heterogeneous data and behaviour. Literature has shown the existence of common mathematical models describing mobility38,39, cities40 and aggregated crime at the city level41,42. To test the possibility of having a universal model that predicts crime in small areas, we test a model that uses only the features that behave in the same direction in all the cities. This model consistently performs worse than the Full model (see Note 10 in SI), showing that at this moment, no model is convenient to be easily applied to all cities. We also studied at what extent a model trained in one city can be tested to another city. We found that US cities are, as expected, more similar to each other than Bogotá, and that Los Angeles behave similarly to Chicago.

Discussion

In this paper, we modelled the presence of crime across four cities, widely different with respect to cultural, economic, historical and geographical aspects. We found that the variability of the dynamics and history of each city poses a challenge to the existence of a model that “fits it all”, able to learn from one city and to predict on another one. Instead, we presented a model that could describe and disentangle the role of diverse factors in urban crime and draw some theoretical and practical implications.

The goal of this research goes beyond crime prediction in time (i.e. forecasting). Offences are concentrated in a small number of places66, and are tightly coupled with places, stable over time1. Thus, the easiest way to predict crime is modelling those few places with the highest number of crimes, also known as hotspots14,67. On the contrary, we seek to shed light on the diverse set of factors at play with urban crime and do predictions for those areas without crime statistics (i.e. nowcasting).

Our cumulative results show little evidence in support of the Jane Jacobs’ theory, arguing that specific urban features and people on the street generate higher security. On the contrary, we often found that Jacobs’ features and urban vibrancy increase people’s vulnerability to crime, suggesting that further work has to be done in this direction.

We found that different theories often seen as competing can complement each other in models that take into account the socio-economic, built environment and mobility conditions together. The importance of mobility and built environment characteristics showed that competitive descriptive and predictive models can be built from data available at large scale without the necessity of costly in-field survey studies. However, we found that aspects related to the Social Disorganisation are important for crime description and prediction. Therefore, it is crucial to consider alternative sources of data to infer social cohesion and interactions and overcome the use of census information, which is costly to collect and rarely updated. There have been multiple attempts at inferring social interactions68, poverty69, well-being70 and unemployment71 but so far very little work has been done at small areas.

Comparing multiple cities in different countries do not come without limitations. First, our analysis ignore temporal variation such as opening times of POIs or temporal variation in mobility. Second, due to lack of consistent data, we did not account for variables such as political and housing policies, security perception, community participation, and social ties within family and within neighbourhoods that were previously found to be related to crime33,72,73. Finally, official crime data do not come without errors, given that not all crimes are reported nor recorded74, and there is no “ground truth” data to gauge any bias in police records. We use official police records similarly to recent literature in the field14,16,20,25,36.

Our work seeks to make headway on the previous limitation of a single site of study. While recent works have started the use of street units and blocks to study criminal activity19,21,75,76, they often relied on a small subset of variables and one city. Analysing multiple cities together exposed criminology theories to discrepancies and differences, and answers to the call of a framework to compare crime in different cities43. Descriptive and comparative modelling can help policymakers to see common patterns between cities, understand the use of urban space and deploy future investments and resources thoughtfully. Moreover, from the scientific perspective, descriptive modelling can provide insights for strong predictors, and potentially for explanatory variables, to be further investigated by explanatory modelling and experiments77. Thus, we hope that additional research keeps exploring multi-dimensional aspects related to crime, to clarify potential crime causes and design better cities.

Methods

The socio-economical and Jane Jacobs’ urban theories are dependent upon the actions and activities at work in communities. Thus, we identified corehoods as social and geographical units of analysis. Then, we obtained and aggregated the data for each corehood of Bogotá, Boston, Los Angeles and Chicago.

Crime data

Our crime data is obtained directly from police departments. Crime records are collected by the police, which annotates in the report the crime event at point locations (latitude and longitude) along with the category of crime and the time it happened.

Through its category, we associate each event to the Uniform Crime Reporting (UCR)46 categorization. The UCR program is a US statistical effort to make crime reports uniform across the country. The UCR divides crime in two main groups: Part 1 and Part 2 offences. The former is composed by violent crimes (aggravated assault, forcible rape, robbery and murder) and property crimes (larceny-theft, motor vehicle theft, burglary and arson), while the latter are considered less serious and they include offences such as simple assaults and nuisance crimes.

We filter out those crimes not belonging to Part 1 of UCR, similarly to most of the criminology literature. For Bogotá we mapped crime categories consistently with UCR categories, and we released the mapping for future research and comparisons. We also filtered out larceny crime events, which include among others thefts of bicycles, shoplifting, pick-pocketing, or the stealing of any property or article that is not taken by force and violence or by fraud. We consider larceny-thefts (except motor vehicle theft) as sometimes noisy and we expect the neighborhood effect to have a negligible impact on larceny-thefts (e.g. social cohesion with pick-pocketing in a shop). We geo-reference crimes to cores and, when a crime event happens in a street segment shared between cores, we evenly assign the event to both cores. Due to the limit in accuracy of GPS positioning, we create a buffer of 30 meters for each crime, which is the distance usually employed for stop location detection algorithms78 and criminology literature at micro-places21,44,76. We have no reason to suspect that the effect of the crime events stops at distances lower than 30 meters (e.g. robberies on the other side of the street are likely to affect residents on both sides). On the contrary, crime risk at hotspots has been observed to spread to distances up to 2000 meters67 spatially. Moreover, we note that the median area of cores are 0.378 square kilometers, which roughly means that each core has a median side of 615 meters (see Figure S11 in the SI).

More details are presented in the SI. We summed crime events over one year to minimize seasonal fluctuations.

Mobile phone data

We computed the ambient population and the OD matrices for Bogotá, Boston and Los Angeles from Call Detail Records (CDRs) of millions of individuals in the three cities. Mobile phone activity includes received and made calls and SMS activity. Each time a call or SMS is made/received, a CDR is generated. It includes some metadata such as the time and the tower at which the phone was connected when the activity was collected. Due to the inherent noise of CDRs79, which are collected only for billing purposes, we follow seminal literature78,80,81 and apply a stop location algorithm to classify the geo-located points where people stay or pass-by. Then, we simulate reliable human mobility traces through the TimeGeo modelling framework51, which generates traces that well describe the real mobility of people. To be consistent with the travel surveys of each city it simulates the time, duration, direction and type of travels within the city. The types of travels are classified as Home-Based from/to Work (HBW), Home-Based from/to Other type of locations (HBO) and Non-Home-based from/to Other type of locations (NHB).

We fitted the model starting from aggregated and anonymized Call Detailed Records (CDRs) collected from 12-01-2013 to 05-31-2014, 6 weeks in 2010, and 10-15, 2012 to 11-24, 2012 for Bogotá, Boston and Los Angeles respectively. We validated the model with the National Household Travel Survey (NHTS)82 and California Household Travel Survey (CHTS)83 datasets. We refer to the SI for the validation of TimeGeo.

To build the ambient population we counted the number of people who stops at a specific location for at least one hour. Since TimeGeo is validated and peer reviewed with HBW, HBO and NHB types of trips, we define the corehood attractiveness counting the number of NHB trips with the corehood as destination. We did not use HBW trips, as we cannot differentiate the origin from the destination and thus attractiveness could correlate with residential places. For the same reason, we excluded HBO trips from the attractiveness definition.

The anonymized data for the three cities was collected for billing purposes by two mobile operators, who also kindly provided to us the data for the present research.

Spatial and census data

Census blocks, population, employment and poverty for US cities were drawn from the American Community Survey (ACS) (https://www.census.gov/programs-surveys/acs). The census data of Bogotá was obtained by the Departmento Administrativo Nacional de Estadística (DANE), which organized the 2005 general census for the city (http://www.dane.gov.co). The poverty data of Bogotá was extracted from the Sisbén in the Identification System III of 2014. We also use the US Tiger dataset, OpenStreetMap (http://www.openstreetmap.org) geographical data and the POIs extracted from Foursquare (http://www.foursquare.com). The detailed description of datasets and related source URLs are listed in the SI.

Built environment features

We operationalize the Jane Jacobs conditions through some state of the art metrics defined in literature49 in all the corehoods. The land-use mix is computed as the average entropy among land uses: $$\text {LUM}_{L,i} = - \sum _{j \in L} \frac{P_{i,j} \log (P_{i,j})}{\log (|L|)}$$, where $$P_{i,j}$$ is the percentage of square meters having land use j in unit i, and $$L = \{\text {residential}, \text {commercial and institutional},$$$$\text {park and recreational}\}$$ represents the considered land uses in the metric. The LUM ranges between 0, wherein the unit is composed by only one land use (e.g. residential), and 1, wherein developed area is equally shared among the n land-uses.

Then, for each corehood we determine the walkability through the accessibility of the core to the nearest point of interests (e.g. convenience stores, restaurants, sport facilities). Consistently with literature84, we define the weighted walkability score as: $$\text {walk}_i = \frac{1}{|B_i|} \sum _{c \in C} \sum _{b \in B_i} {{\,{\mathrm{wdist}}\,}}(b, {{\,{\mathrm{closest}}\,}}(b, \text {POI}_c))$$, where C is the set of categories (i.e. Food, Shops, Grocery, Schools, Entertainment, Parks and outside, Coffee, Banks, Books), $${{\,{\mathrm{wdist}}\,}}$$ is the street-network distance decay function, and $$\text {POI}_c$$ is the set of POIs of category c. The distance decay function gives a weight (importance) to each POI reachable from a starting point. Additional information about the walkability score can be find in the SI.

We then compute the average block area among the set $$B_i$$ of blocks in unit i as $$\text {Blocks area}_i = \frac{1}{|B_i|} \sum _{b \in B_i} {{\,{\mathrm{area}}\,}}(b)$$, and the building age diversity as the standard deviation of building ages in the corehood.

Finally, we operationalize Jacobs’ density condition with the dwelling units density, computed from census data. Additional details are described in the SI.

Social Disorganization

We create the feature disadvantage and instability7,9,15,26 through the two largest PCA principal components of: (i) unemployment rate, (ii) poverty rate, defined as people living below the poverty line, and (iii) residential mobility rate, defined as the percentage of people who recently changed residency (one year for US cities and fiver years for Bogotá). From the loadings of the PCA linear combination we verified that disadvantage is mainly a linear combination of poverty rate and unemployment, while instability is mainly about residential mobility rate.

In the Social Disorganization variables we do not include any ethnic-specific variables (e.g. percentage of black people) other than diversity because they might be present only in some places and not in others (e.g. native Americans in Bogotá), and to avoid any ethnic-specific bias. Ethnic diversity represents the difficulties of a community to communicate and collaborate for a common goal. Accordingly to the literature7,47,48, it is computed as the Hirschman-Herfindahl diversity index of six population groups $$H = 1- \sum _{i=1}^N s_i^2$$, where $$s_i$$ is the proportion of people belonging to the ethnicity i, and N is the number of ethnicities. Consistently with the literature we include for US cities: Hispanics, non-Hispanic Blacks, Whites, Asians, Native Hawaiians - Pacific Islanders and others. For Bogotá we include: Indigenous, Rom, Islanders (San Andrés), Palenquero, Black and others.

Bayesian model

Let $$y_i$$ be the discrete number of crimes for a set of spatial regions $$i= 1 ,\ldots , N$$. We approximate the relation between crimes and spatial features through a Negative Binomial approach that models the non-negative nature of the crime-counts in a city, but also the overdispersion found in the data (Note 4 in the SI). Specifically, $$\ln ({{\mathbb {E}}}(Y)) = {\mathbf {X}}\beta + {\mathbf {b}}$$ where $${\mathbf {X}}$$ is the input data and $${\beta }$$ the coefficients of the model. $${\mathbf {b}}$$ are the random effects that accounts for the unexplained variability of crime (i.e. the spatial-autocorrelation). In this paper, we account the spatial auto-correlation with the Bayesian Spatial Filtering (BSF)85 that defines $${\mathbf {b}} = {\mathbf {E}}{\gamma }$$ where $${\gamma }$$ are coefficients to be found. $${\mathbf {E}}$$ is instead defined as the first principal components of $${\mathbf {E}}_{\mathrm{full}} = \mathbf {MCM}$$, where $${\mathbf {C}}$$ is a spatial matrix that describes the graph between spatial locations, while $${\mathbf {M}} = {\mathbf {I}} - {\mathbf {X}}({\mathbf {X}}'{\mathbf {X}})-{\mathbf {X}}'$$, which is an approximation of the spatial error model54. We tested for the presence of spatial auto-correlation on the residuals of all the models without finding significant auto-correlation. As the results might change with different definitions of $${\mathbf {C}}$$, we tested all the models for three definitions: i) $${\mathbf {C}}$$ is a binary adjacency matrix identifying whether a corehood overlaps another corehood, ii) $${\mathbf {C}}$$ is a inverse distance matrix between corehoods, iii) $${\mathbf {C}}$$ describes the flow of people between corehoods, which is extracted from mobile phone data. We found that the binary matrix consistently outperforms other definitions. Additional details of the presented models, definition of $${\mathbf {C}}$$, and other competitive models tested are present in the SI.

As we have to account for collinearity, we employ a Ridge penalty to all fixed effects.

Model calibration ed evaluation

Model calibration is carried out by means of Markov Chain Monte Carlo (MCMC) approach. We run the MCMC method for 20,000 iterations and chose as burn-in the first 15,000 iterations to ensure that the remaining 5,000 iterations are in the high-probability region. Convergence for all the models was assured by the Gelman-Rubin convergence statistics86 and visual inspection of the traces.

We assess how well the models describe crime through the conditional $$R^2$$ and the marginal $$R^2$$55, which adapt the popular coefficient of determination to the generalized linear mixed-effects models. They are defined as:

\begin{aligned} R^2_m&= \frac{\sigma _f^2}{\sigma _f^2 + \sigma _r^2 + \sigma _{\epsilon }^2}\\ R^2_c&= \frac{\sigma _f^2 + \sigma _r^2}{\sigma _f^2 + \sigma _r^2 + \sigma _{\epsilon }^2} \end{aligned}

where $$\sigma _f^2$$ is the variance explained by the fixed effects, $$\sigma _r^2$$ is the variance explained by the random effects, and $$\sigma _{\epsilon }^2$$ is the variance of the residuals. Specifically, $$f= {\mathbf {X}}\beta$$, $$r= {\mathbf {E}}\gamma$$ and $$\epsilon$$ is specific to the Negative Binomial and defined55 as $$\epsilon = \ln {(1+1/\mu +1/\phi )}$$, with $$\mu = \frac{1}{N} \sum _i^N y_i$$ and $$\phi$$ is the shape parameter of the Negative Binomial distribution.

We assess the out of sample predictive accuracy through the Pareto-smoothed importance sampling Leave-One-Out cross-validation (PSIS-LOO, here simply referred as LOO)56 and the Deviance Information Criterion (DIC)87. Even though DIC has been used extensively for practical model comparison in many disciplines, recent literature on Bayesian models evaluation strongly discourage the use of DIC due to its numerous disadvantages including the fact that it works well only if the posterior is close to a Gaussian, its lack of consistency and the fact that is not a proper predictive criterion56,88. Since LOO overcome the DIC issues, it has rapidly become the state of the art for evaluating Bayesian models. We employ the LOO in the main paper, while we present the DIC results in the supplementary. The LOO is defined in the log score as:

\begin{aligned} \text {LOO} = \sum _{i=1}^n \ln \left( \frac{\sum _{s=1}^S w_i^s p(y_i|\theta ^s)}{\sum _{s=1}^S w_i^s}\right) . \end{aligned}
(1)

where n is the number of data points, $$\theta ^s$$ are draws from the full posterior $$p(\theta |y)$$, $$s=1,\dots ,S$$ represent the S draws, and $$w_i^s$$ is a vector of weights that are the Pareto Smoothed importance ratios built through an algorithm described in the LOO original paper56. The best model is associated with the smallest LOO value.

Data availability

We are pleased to make available the source-code and datasets accompanying this research. The projects files are available at https://github.com/denadai2/bayesian-crime-multiple-cities/.

References

1. 1.

Weisburd, D., Groff, E. R. & Yang, S.-M. The Criminology of Place: Street Segments and Our Understanding of the Crime Problem (Oxford University Press, Oxford, 2012).

2. 2.

Tita, G. E. & Greenbaum, R. T. Crime, neighborhoods, and units of analysis: putting space in its place. In Putting Crime in Its Place, 145–170 (Springer, Berlin, 2009).

3. 3.

Spelman, W. Criminal careers of public places. Crime Place 4, 115–144 (1995).

4. 4.

Weisburd, D., Bushway, S., Lum, C. & Yang, S.-M. Trajectories of crime at places: a longitudinal study of street segments in the city of seattle. Criminology 42, 283–322 (2004).

5. 5.

Sampson, R. J. Great American City: Chicago and the Enduring Neighborhood Effect (University of Chicago Press, Chicago, 2012).

6. 6.

Graif, C., Gladfelter, A. S. & Matthews, S. A. Urban poverty and neighborhood effects on crime: incorporating spatial and network perspectives. Soc. Compass 8, 1140–1155 (2014).

7. 7.

Sampson, R. J. & Groves, W. B. Community structure and crime: testing social-disorganization theory. Am. J. Sociol. 94, 774–802 (1989).

8. 8.

Graif, C. & Sampson, R. J. Spatial heterogeneity in the effects of immigration and diversity on neighborhood homicide rates. Homicide Stud. 13, 242–260. https://doi.org/10.1177/1088767909336728 (2009).

9. 9.

Sampson, R. J. Neighborhoods and violent crime: a multilevel study of collective efficacy. Science 277, 918–924. https://doi.org/10.1126/science.277.5328.918 (1997).

10. 10.

Newman, O. Defensible Space (Macmillan, New York, 1972).

11. 11.

Jacobs, J. The Death and Life of Great American Cities (Vintage, New York, 1961).

12. 12.

Wang, Q., Phillips, N. E., Small, M. L. & Sampson, R. J. Urban mobility and neighborhood isolation in Americas 50 largest cities. PNAS 115, 7735–7740 (2018).

13. 13.

Cohen, L. E. & Felson, M. Social change and crime rate trends: a routine activity approach. Am. Soc. Rev. 44, 588–608 (1979).

14. 14.

Bogomolov, A. et al. Once upon a crime: towards crime prediction from demographics and mobile data. In ICMI, 427–434 (ACM, 2014).

15. 15.

Kubrin, C. E. & Weitzer, R. Retaliatory homicide: concentrated disadvantage and neighborhood culture. Soc. Probl. 50, 157–180 (2003).

16. 16.

Hipp, J. R. & Boessen, A. Egohoods as waves washing across the city: a new measure of neighborhoods. Criminology 51, 287–327 (2013).

17. 17.

Andresen, M. A. The ambient population and crime analysis. Prof. Geogr. 63, 193–212 (2011).

18. 18.

Jones, R. W. & Pridemore, W. A. Toward an integrated multilevel theory of crime at place: routine activities, social disorganization, and the law of crime concentration. J. Quant. Criminol. 35, 543–572 (2019).

19. 19.

Contreras, C. A block-level analysis of medical marijuana dispensaries and crime in the city of los angeles. Justice Q. 34, 1069–1095 (2017).

20. 20.

Malleson, N. & Andresen, M. A. Spatio-temporal crime hotspots and the ambient population. Crime Sci. 4, 10 (2015).

21. 21.

Hipp, J. R., Kim, Y.-A. & Kane, K. The effect of the physical environment on crime rates: capturing housing age and housing type at varying spatial scales. Crime Delinq. 65, 1570–1595 (2019).

22. 22.

Traunmueller, M., Quattrone, G. & Capra, L. Mining mobile phone data to investigate urban crime theories at scale. In International Conference on Social Informatics, 396–411 (Springer, 2014).

23. 23.

Song, G. et al. Crime feeds on legal activities: daily mobility flows help to explain thieves target location choices. J. Quant. Criminol. 35, 831–854 (2019).

24. 24.

Sohn, D.-W. Residential crimes and neighbourhood built environment: assessing the effectiveness of crime prevention through environmental design (CPTED). Cities 52, 86–93 (2016).

25. 25.

Kadar, C. & Pletikosa, I. Mining large-scale human mobility data for long-term crime prediction. EPJ Data Sci. 7, 26 (2018).

26. 26.

Sampson, R. J., Morenoff, J. D. & Earls, F. Beyond social capital: spatial dynamics of collective efficacy for children. Am. Soc. Rev. 64, 633–660 (1999).

27. 27.

Felson, M. & Clarke, R. V. Opportunity makes the thief. Police Res. Ser. Paper 98, 1–36 (1998).

28. 28.

Brantingham, P. L. & Brantingham, P. J. Nodes, paths and edges: considerations on the complexity of crime and the physical environment. J. Environ. Psychol. 13, 3–28 (1993).

29. 29.

Felson, M. & Boba, R. L. Crime and Everyday Life (Sage, Thousand Oaks, 2010).

30. 30.

Hindelang, M. J., Gottfredson, M. R. & Garofalo, J. Victims of Personal Crime: An Empirical Foundation for a Theory of Personal Victimization (Ballinger, Cambridge, MA, 1978).

31. 31.

OBrien, D. T. & Sampson, R. J. Public and private spheres of neighborhood disorder: assessing pathways to violence using large-scale digital records. J. Res. Crime Delinq. 52, 486–510 (2015).

32. 32.

Murray, R. K. & Roncek, D. W. Measuring diffusion of assaults around bars through radius and adjacency techniques. Criminal Justice Rev. 33, 199–220 (2008).

33. 33.

Salesses, P., Schechtner, K. & Hidalgo, C. A. The collaborative image of the city: mapping the inequality of urban perception. PloS ONE 8, e0119352 (2013).

34. 34.

Sampson, R. J. Neighborhood and crime: the structural determinants of personal victimization. J. Res. Crime Delinq. 22, 7–40. https://doi.org/10.1177/0022427885022001002 (1985).

35. 35.

Hipp, J. R., Butts, C. T., Acton, R., Nagle, N. N. & Boessen, A. Extrapolative simulation of neighborhood networks based on population spatial distribution: do they predict crime?. Soc. Netw. 35, 614–625 (2013).

36. 36.

Wang, H., Kifer, D., Graif, C. & Li, Z. Crime rate inference with big data. In ACM SIGKDD, KDD’16, 635–644, https://doi.org/10.1145/2939672.2939736 (ACM, New York, NY, USA, 2016).

37. 37.

Andresen, M. A. Crime measures and the spatial analysis of criminal activity. Br. J. Criminol. 46, 258–285 (2006).

38. 38.

Gonzalez, M. C., Hidalgo, C. A. & Barabasi, A.-L. Understanding individual human mobility patterns. Nature 453, 779–782 (2008).

39. 39.

Barbosa, H. et al. Human mobility: models and applications. Phys. Rep. 734, 1–74 (2018).

40. 40.

Louail, T. et al. From mobile phone data to the spatial structure of cities. Sci. Rep. 4, 5276 (2014).

41. 41.

Gomez-Lievano, A., Patterson-Lomba, O. & Hausmann, R. Explaining the prevalence, scaling and variance of urban phenomena. Nat. Energy 1–9, (2018).

42. 42.

Caminha, C. et al. Human mobility in large cities as a proxy for crime. PLoS ONE 12, e0171609 (2017).

43. 43.

Ojo, A. et al. Urbanisation and Crime in Nigeria (Springer, Berlin, 2019).

44. 44.

Lee, I., Jung, S., Lee, J. & Macdonald, E. Street crime prediction model based on the physical characteristics of a streetscape: analysis of streets in low-rise housing areas in South Korea. Environ. Plan. B Urban Anal. City Sci. 46, 862–879 (2019).

45. 45.

De Nadai, M. & Lepri, B. The economic value of neighborhoods: predicting real estate prices from the urban environment. In 2018 IEEE 5th International Conference on Data Science and Advanced Analytics (DSAA), 323–330 (IEEE, 2018).

46. 46.

FBI. Uniform crime reporting (UCR) program. https://ucr.fbi.gov/. Accessed 21 June 2020.

47. 47.

Sampson, R. J. The place of context: a theory and strategy for criminologys hard problems. Criminology 51, 1–31 (2013).

48. 48.

Sampson, R. J. & Graif, C. Neighborhood social capital as differential social organization: resident and leadership dimensions. Am. Behav. Sci. 52, 1579–1605 (2009).

49. 49.

De Nadai, M. et al. The death and life of great Italian cities: a mobile phone data perspective. In WWW, 413–423, https://doi.org/10.1145/2872427.2883084 (International World Wide Web Conferences Steering Committee, Republic and Canton of Geneva, Switzerland, 2016).

50. 50.

Leyden, K. M. Social capital and the built environment: the importance of walkable neighborhoods. Am. J. Public Health 93, 1546–1551 (2003).

51. 51.

Jiang, S. et al. The TimeGeo modeling framework for urban mobility without travel surveys. PNAS 113, E5370–E5378. https://doi.org/10.1073/pnas.1524261113 (2016).

52. 52.

Osgood, D. W. Poisson-based regression analysis of aggregate crime rates. J. Quant. Criminol. 16, 21–43 (2000).

53. 53.

Griffith, D. A. & Peres-Neto, P. R. Spatial modeling in ecology: the flexibility of eigenfunction spatial analyses. Ecology 87, 2603–2613 (2006).

54. 54.

Tiefelsdorf, M. & Griffith, D. A. Semiparametric filtering of spatial autocorrelation: the eigenvector approach. Environ. Plan. A 39, 1193–1221 (2007).

55. 55.

Nakagawa, S., Johnson, P. C. & Schielzeth, H. The coefficient of determination r 2 and intra-class correlation coefficient from generalized linear mixed-effects models revisited and expanded. J. R. Soc. Interface 14, 20170213 (2017).

56. 56.

Vehtari, A., Gelman, A. & Gabry, J. Practical bayesian model evaluation using leave-one-out cross-validation and waic. Stat. Comput. 27, 1413–1432 (2017).

57. 57.

Lutters, W. G. & Ackerman, M. S. An introduction to the chicago school of sociology. Interval Res. Propr. 2, 1–25 (1996).

58. 58.

Mburu, L. W. & Helbich, M. Crime risk estimation with a commuter-harmonized ambient population. Ann. Am. Assoc. Geogr. 106, 804–818. https://doi.org/10.1080/24694452.2016.1163252 (2016).

59. 59.

Wang, H. & Li, Z. Region representation learning via mobility flow. In Proceedings of the 2017 ACM on Conference on Information and Knowledge Management, 237–246 (2017).

60. 60.

Graif, C., Lungeanu, A. & Yetter, A. M. Neighborhood isolation in chicago: violent crime effects on structural isolation and homophily in inter-neighborhood commuting networks. Soc. Netw. 51, 40–59 (2017).

61. 61.

Lee, S., Yoo, C., Ha, J. & Seo, J. Are perceived neighbourhood built environments associated with social capital? Evidence from the Seoul survey in South Korea. Int. J. Urban Sci.https://doi.org/10.1080/12265934.2017.1396909 (2012).

62. 62.

Sung, H. & Lee, S. Residential built environment and walking activity: empirical evidence of Jane Jacobs Urban Vitality. Transp. Res. D Transp. Environ. 41, 318–329 (2015).

63. 63.

Shaw, C. R. & McKay, H. D. Juvenile Delinquency and Urban Areas (University of Chicago Press, Chicago, 1942).

64. 64.

Godoy, J. F., Rodriguez, C. & Zuleta, H. Security and sustainable development in bogota, colombia. Geneva: DCAF (2018).

65. 65.

Boivin, R. & Felson, M. Crimes by visitors versus crimes by residents: the influence of visitor inflows. J. Quant. Criminol. 34, 465–480 (2018).

66. 66.

Lee, Y., Eck, J. E., Soo, Hyun O. & Martinez, N. N. How concentrated is crime at places? a systematic review from 1970 to 2015. Crime Sci. 6, 6. https://doi.org/10.1186/s40163-017-0069-x (2017).

67. 67.

Short, M. B., Brantingham, P. J., Bertozzi, A. L. & Tita, G. E. Dissipation and displacement of hotspots in reaction-diffusion models of crime. PNAS (2010).

68. 68.

Eagle, N., Pentland, A. S. & Lazer, D. Inferring friendship network structure by using mobile phone data. PNAS 106, 15274–15278 (2009).

69. 69.

Blumenstock, J., Cadamuro, G. & On, R. Predicting poverty and wealth from mobile phone metadata. Science 350, 1073–1076. https://doi.org/10.1126/science.aac4420 (2015).

70. 70.

Pappalardo, L. et al. An analytical framework to nowcast well-being using mobile phone data. Int. J. Data Sci. Anal. 2, 75–92. https://doi.org/10.1007/s41060-016-0013-2 (2016).

71. 71.

Toole, J. L. et al. Tracking employment shocks using mobile phone data. J. R. Soc. Interface 12, 20150185. https://doi.org/10.1098/rsif.2015.0185 (2015).

72. 72.

Faust, K. & Tita, G. E. Social networks and crime: pitfalls and promises for advancing the field. Ann. Rev. Criminol. 2, 99–122 (2019).

73. 73.

Tran, V. C., Graif, C., Jones, A. D., Small, M. L. & Winship, C. Participation in context: neighborhood diversity and organizational involvement in boston. City Commun. 12, 187–210 (2013).

74. 74.

Small, M. L. Understanding when people will report crimes to the police. Proc. Nat. Acad. Sci. 115, 8057–8059 (2018).

75. 75.

Kim, Y.-A. & Hipp, J. R. Street egohood: an alternative perspective of measuring neighborhood and spatial patterns of crime. J. Quant. Criminol. 36, 29–66 (2020).

76. 76.

Rosser, G., Davies, T., Bowers, K. J., Johnson, S. D. & Cheng, T. Predictive crime mapping: arbitrary grids or street networks?. J. Quant. Criminol. 33, 569–594 (2017).

77. 77.

Kenett, R. S., Pfeffermann, D. & Steinberg, D. M. Election polls—a survey, a critique, and proposals. Ann. Rev. Stat. Appl.https://doi.org/10.1146/annurev-statistics-031017-100204 (2018).

78. 78.

De Nadai, M., Cardoso, A., Lima, A., Lepri, B. & Oliver, N. Strategies and limitations in app usage and human mobility. Sci. Rep. 9, 1–9 (2019).

79. 79.

Xu, Y., Çolak, S., Kara, E. C., Moura, S. J. & González, M. C. Planning for electric vehicle needs by coupling charging profiles with urban mobility. Nat. Energy 3, 484–493 (2018).

80. 80.

Jiang, S. et al. A review of urban computing for mobile phone traces: current methods, challenges and opportunities. In Proceedings of the 2nd ACM SIGKDD International Workshop on Urban Computing, 1–9 (2013).

81. 81.

Zheng, Y. & Xie, X. Learning travel recommendations from user-generated gps traces. ACM Trans. Intell. Syst. Technol. (TIST) 2, 1–29 (2011).

82. 82.

US Department of Transportation, F. H. A. National household travel survey. http://nhts.ornl.gov. Accessed 19 June (2020).

83. 83.

California Department of Transportation (Caltrans). California household travel survey (CHTS). https://dot.ca.gov/programs/transportation-planning/economics-data-management/transportation-economics/ca-household-travel-survey. Accessed 19 June (2020).

84. 84.

Front seat walk score methodology. Tech. Rep. Available online at http://pubs.cedeus.cl/omeka/files/original/b6fa690993d59007784a7a26804d42be.pdf. Accessed on 3 January 2020, (Accessed February 20, 2020).

85. 85.

Hughes, J. Spatial regression and the bayesian filter. arXiv preprintarXiv:1706.04651 (2017).

86. 86.

Brooks, S. P. & Gelman, A. General methods for monitoring convergence of iterative simulations. J. Comput. Graph. Stat. 7, 434–455 (1998).

87. 87.

Spiegelhalter, D. J., Best, N. G., Carlin, B. P. & Van Der Linde, A. Bayesian measures of model complexity and fit. J. R. Stat. Soc. Ser. B (Stat. Methodol.) 64, 583–639. https://doi.org/10.1111/1467-9868.00353 (2002).

88. 88.

Spiegelhalter, D. J., Best, N. G., Carlin, B. P. & Van der Linde, A. The deviance information criterion: 12 years on. J. R. Stat. Soc. Ser. B (Stat. Methodol.) 76, 485–493 (2014).

Acknowledgements

We thank Paolo Bosetti and Junpeng Lao for the helpful comments. We especially thank Andrés Clavijo for his support on the data, we all hope that this work could make Bogotá better. This work was supported by the Berkeley DeepDrive and the ITS Berkeley 2018-19 SB1 Research Grant (to M.C.G.); the French Development Agency and the World Bank (to M.D.N., B.L. and E.L.).

Author information

Authors

Contributions

M.D.N, E.L., M.C.G. and B.L. designed research and experiments; M.D.N, Y.X., M.C.G. and B.L. performed research and experiments; M.D.N, M.C.G. and B.L. contributed new analytic tools; M.D.N, and Y.X. analysed the data; and M.D.N, M.C.G. and B.L. wrote the paper. All authors read, reviewed and approved the final manuscript.

Ethics declarations

Competing interests

The authors declare no competing interests.

Publisher's note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and Permissions

De Nadai, M., Xu, Y., Letouzé, E. et al. Socio-economic, built environment, and mobility conditions associated with crime: a study of multiple cities. Sci Rep 10, 13871 (2020). https://doi.org/10.1038/s41598-020-70808-2

• Accepted:

• Published: