betaFeedback

WorksPhysics and Astronomy

Popularity Trajectories and Mixing Patterns of Urban Venues in Two European Cities

Abstract

Urban venues such as restaurants, shops, bars and parks host the daily life of a city, and their collective rise and fall signals how vibrant a neighbourhood is. The usual assumption is that a venue's fortunes follow its neighbourhood's, so that how wealthy an area is and how many people live there will decide a venue's performance. Yet whether there is a common performance trajectory shared by venues over time is underexplored. In this study, we use 5.5 years of Foursquare data for about 10^4 venues in London and Barcelona. We found six distinguishable shapes recur in both cities, that are (1) Fall, (2) Rise, (3) Rise & Fall, (4) Steady, (5) Ephemeral (an early hit that loses popularity fast) and (6) Underdogs (a slow starter that gains popularity late). However, no recovery shape appears, that is neither city yields a U-shaped fall-and-rise group. Additionally, we found that deprivation and population density are not indicative which shape a venue follows. We also discovered that how early a shape can be recognized depends on when its distinctive segment occurs, not a shape's complexity. Proximity between venues, however, does predict how well-performing a venue is. We uncovered a mixing pattern where venues of the same shape tend to locate together more often than chance within roughly 200 to 600 metres. Finally, our qualitative reading of two contrasting districts, one rising in London and one falling in Barcelona, show that comparable socioeconomic conditions but divergent gentrification histories can generate vastly different popularity trajectories. All in all, our results altogether point at that urban vibrancy emerges at the block- and street- level, and social and historical contexts matter in terms of the characteristics of such patterns.

Introduction

Two cafes in the same neighbourhood can end up on opposite directions, that is one builds a following over a decade while the other, on the next street, quietly empties out. Sometimes it is hard to explain why, because both venues are located within the same neighbourhood. Urban venues such as restaurants, bars, shops and parks, where a city’s everyday social and economic life takes place, are usually explained by the neighbourhood around them. They provide the shared spaces in which residents meet and communities form, and a city’s long-term vitality is widely known to depend on its neighbourhoods’ vibrancy, a phenomenon that has been studied with both qualitative methods and large-scale data analyses [1, 2, 3, 4, 5]. Yet these venues change over time: they open, flourish, and potentially close, and the health of an urban space can bound up with a series of successes and failures of urban venues [6, 7]. Disentangling how venues gain, maintain, and lose popularity over time is therefore vital to business owners, urban planners, and the citizens who live in their vicinity.

Whether a business will thrive in the future is generally very hard to predict in advance, and restaurants and bars are among the hardest cases [6]. Being able to predict a business’s trajectory early offers its owners better insights for strategic planning and timely correction to avert failure. Despite prior work on the short and long-term success of individuals across contexts and markets, our understanding of how performance evolves over time for urban venues remains relatively scarce. Part of the difficulty is that success is that it cannot be measured merely by raw performance. So, what separates a successful venue from the rest is how the community (e.g., audience, customers) responds to it relative to its competitors [8]. Throughout this paper we call that relative response a venue’s popularity. The proliferation of location-based and transactional data has made measuring such “relative success” more accessible at fine spatio-temporal resolution. Credit-card transactions uncover the lifestyles and consumption patterns of urban populations [9] and GPS and mobile-phone traces reveal the temporal rhythms of streets and neighbourhoods [10]. In our case, crowdsourced platforms such as Yelp and Foursquare allow us access to signals of popularity, such as reviews, likes and check-ins of every venue, such that a venue’s popularity can be compared with another’s at the same moment. Crucially, such data are longitudinal, offering a granular digital trace of a venue’s popularity over time.

Several factors are thought to shape trajectories of venue popularity. The first set of factors is internal to the venue, such as product quality, pricing and branding. The second is what other people say about it — online reviews have been shown to act as public word-of-mouth, shaping business outcomes from revenue to how often a venue sells out [11, 12]. The third is the surrounding urban environment, which matters for two reasons. Similar businesses clustered together can draw more custom than they would alone, an effect called agglomeration [13]. Secondly, the surrounding population, including its income, its density, and other existing venues, also affects a venue’s performance overall, which is known as a neighbourhood effect [14]. The most studied case is gentrification, in which wealthier residents and upmarket competitors move into a poorer area and displace the venues already there [15, 16].

Nevertheless, the literature has yet to evaluate, over the longer term, how a mixture of urban features and venue characteristics shapes the evolving popularity trajectories of individual venues. To this end, we ask how far a venue’s own popularity trajectory can be predicted by its urban environment. We use a Foursquare dataset covering more than 10410^4 venues in London and Barcelona, each followed for up to 5.5 years. We study these two cities because both have dense, long-established venue scenes and good coverage in the data, yet differ in planning regimes and in their histories of gentrification. We treat each venue’s popularity as a time series, segmented into several six-month periods, and compare pairs of series using Dynamic Time Warping (DTW) to account for unequal time series lengths. Grouping venues by this similarity yields six distinct trajectory shapes common to both cities. We then train classifiers to evaluate the feature importance using the permutation importance test.

Our results show that a neighbourhood’s socioeconomic status and density do not predict a venue’s trajectory. Instead, a venue’s trajectory is mirrored by those of the venues that are in their vicinities, a pattern consistent with a local performance spillover. To measure this directly, we leverage assortativity [17] to understand whether venues of the same types are more (or less) likely to appear together than chance. Most venues with the same trajectory shape turn out to be neighbours far more often than chance within a few hundred meters. This is a mixing pattern that is only observed on a block- or street-scale, and the pattern weakens as we consider a larger geographical coverage. The effect holds across each city, although the two cities differ in which of the six shapes clusters most strongly. Knowing which shape is located beside which is of use to an owner only if they can tell early which shape their own venue is on, so we further assess how early in a venue’s history its trajectory can be told apart from the others, showing that some shapes are recognizable long before the observation period ends while others later. Finally, we offer a qualitative close reading of one rising and one falling district, in London and Barcelona respectively, examining the distinct explanations for spillover under a complex reality of state policies, social histories, and local cultures. Together, these results unveil the complexity behind urban venue performance, and show how neighbourhood vibrancy emerges from particular local conditions and histories.

Methods

We first describe the data and how we turn a venue’s raw popularity counts into a trajectory that can be compared across venues. Second, we explain how trajectories are compared with one another and grouped into recurring shapes. Third, we define the four features with which we describe a venue and the area around it. Fourth, we describe the classification and forecasting models, and the relevant evaluation metrics. Fifth, we define a chance-corrected assortativity coefficient, which measures how far a venue’s nearest neighbours follow the same shape as it does. Finally, we define our spatial null model, and with how the two case studies were chosen.

Dataset and popularity measure

Data selection. Our analyses use a proprietary Foursquare dataset covering two European cities: London, UK and Barcelona, Spain. On Foursquare, users check in to the places they visit and mark the ones they like. We use the likes over time as a primary proxy of popularity for the venues. The total like count of each venue in both cities are heavy-tailed, and thus the values span several orders of magnitude and there is no typical value (see Supplementary Materials A). We keep only venues with sufficient data for analysis. Specifically, we select only venues that have existed for at least 130 weeks, corresponding to approximately 2.5 years, and at least 13 likes in total. The process yields N=5923N = 5923 venues for London and N=4718N = 4718 for Barcelona. We then evaluated their evolution over a maximum of 5.5 years.

The clustering and the spatial analyses use all the filtered venues. The classification and forecasting experiments need every feature to be present for every venue, so for robust comparisons we kept only the venues with all features available, resulting in N=3694N = 3694 and N=1139N = 1139 in London and Barcelona respectively. Alongside the six-shape label, we also use a coarser, two-way label as a comparative case. A venue is positive when it ended the observation period more popular than it began, that is when si(0)<si(T)s_i(0) < s_i(T), and negative otherwise, to which we refer as the binary task.

Measuring performance. Following [8], we treat success not as something that can be measured in any absolute form but as a “collective measure, representing a community’s reaction to and acceptance of an individual’s performance” (p. 1). Following the urban venue success framework established in [18], we aggregate the like counts into 6-month bins for each venue and construct a time series of these counts. The raw number of likes a venue ii receives at time tt is defined as ϕi(t)\phi_i(t). Since raw counts cannot be compared across periods due to the number of users and activity on the platform grows over time, we normalize each raw count by first dividing it by the total popularity across all venues in that same period:

ϕi∗(t)=ϕi(t)∑jϕj(t).(1)\phi_i^*(t) = \frac{\phi_i(t)}{\sum_j \phi_j(t)}. \tag*{(1)}

We then divide by the mean of that quantity, si(t)=ϕi∗(t)/⟨ϕ∗(t)⟩s_i(t) = \phi_i^*(t) / \langle\phi^*(t)\rangle, which allows for a more interpretable metric with a value of 1 meaning the venue was exactly as popular as the average venue at that moment, and 2 means twice as popular, and so on. As a normalized metric, si(t)s_i(t) will be used the main dependent variable in our analyses. As a comparative case, we also consider the binary success of a venue, where a venue is deemed successful when si(0)<si(T)s_i(0) < s_i(T).

Because the time series have have different lengths since venues exist during various periods, we align the time series before comparing differences in trajectories. To do so, we use Dynamic Time Warping (DTW) to find the alignment that minimizes the Euclidean distance between any pair of trajectories si(t)s_i(t) and sj(t)s_j(t). Once the minimizing alignment is computed, we apply KMeans clustering to the DTW-aligned time series. Due to the fact that the classifiers and the forecaster described below both take an input of a fixed size, every trajectory is represented as a vector of T=11T = 11 six-month periods (i.e., summing up to 5.5 years in total).

Grouping trajectories into recurring shapes

Venues with the same shape can occur at different speeds and lengths. Therefore, comparing shapes period by period would require alignment between these trajectories. In this work, we use Dynamic Time Warping (DTW) to measure the distance between two popularity shapes after. Specifically, for any pair of trajectories si(t)s_i(t) and sj(t)s_j(t) we use DTW to find the alignment that minimizes the Euclidean distance between them, and we take that minimum as the distance between the pair. We then group venues collectively from London and Barcelona whose shapes are close under this measure using KMeans clustering, so that every venue in a group follows roughly the same shape. The number of groups is optimized by the gap statistic, a standard rule for choosing how many groups a dataset supports, which identifies 6 as the optimal number of clusters. Note that the kk in KMeans denotes the number of groups, and is a different quantity from the kk used in the classification subsection below for the length of the observed input. The number of groups is fixed at six throughout, and we call it the number of clusters from here on.

Urban features

We describe each venue with four features. Two are urban features, including an area’s population’s socioeconomic status and its population density. Two are venue features, which describe the venue’s neighbouring venues, including a venue’s uniqueness and the venue type assortativity.

Deprivation. We extracted two urban features attached to the venues in each city. We utilized both data from the original Foursquare datasets, as well as external datasets to compute the features. For London we use the Index of Multiple Deprivation (IMD), a standard measure of how disadvantaged a small area is. A high IMD score means a more deprived area. For Barcelona, we primarily used the average household income from a specific census tracts from the Income Account for Barcelona of the Idescat (Institut d’Estadístic de Catalunya) and the Atlas de Distribución de la Renta de las Hogares del INE (Instituto Nacional de Estadística) respectively. As these indices have varying ranges, we rescale the economic status index with the median and inter-quartile range (IQR). As these indices have varying ranges, we rescale the economic status index with the median and inter-quartile range (IQR):

Ei∗=Ei−EmedianEIQR,(2)E_i^* = \frac{E_i-E_{\mathrm{median}}}{E_{\mathrm{IQR}}}, \tag*{(2)}

where EiE_i is the socioeconomic status of the area containing venue ii. IMD is aggregated using Lower Layer Super Output Areas (LSOAs) and the income level in Barcelona is, on the other hand, aggregated from official census tracts. Both are comparable in terms of population sizes. Because IMD rises with deprivation whereas income rise, we reverse the sign of the Barcelona scores after rescaling, so that in both cities a high value of Ei∗E_i^* means a less wealthy area.

Population density. We also consider the population density (per hectare) of the areas where the venues are located at, denoted by DiD_i. Due to the different sizes of the census tracts, we again rescale the variables for a more general comparisons between cities. To check for the dispersion of the inequality of EiE_i and DiD_i, we also calculated the more robust Median Absolute Deviation (MAD).

Venue features

Venues themselves bear inherent characteristics that can catalyze their success or failure. In this light, we compute two metrics that measure these traits beyond the review level. Both are defined over a venue’s nearest neighbours, where proximity is defined by a RR−circle. An RR-circle of a venue is the disk of radius RR meters centered on that venue, and the venues inside it are treated as the venue’s neighbours. We use R=300R = 300 m for London and R=500R = 500 m for Barcelona, to account for the different levels of venue density in each city.

Venue uniqueness. First, competition matters to the survival and ratings of venues. With a view to taking into account the uniqueness of the venue within its own area, we first computed the RR−circle of a venue, which is its circular coverage with a radius of kk. We then compared the Euclidean distance between the focal venue ii and its competitors (i.e. belonging to the same category) within its RR−circle. Finally, we normalize this count by the average distance between ii and all of its neighboring venues. We can then define a venue’s uniqueness as follows

ui=⟨d(i,j∣categoryi=categoryj)⟩j⟨di,j⟩j.(3)u_i = \frac{\left\langle d(i,j \mid\mathrm{category}_i = \mathrm{category}_j)\right\rangle_j}{\left\langle d_{i,j}\right\rangle_j}. \tag*{(3)}

A high value means the venue has few same-category competitors close by, and vice versa.

Assortativity. The second venue feature is assortativity, which measures the intensity of venues of the same types co-occurring together spatially. The motivation is that the existence of high performer(s) can also bring positive externalities to its local competitors. It is known that the popularization of specific venues may induce positive and/or negative spillover effects on its neighbouring venues and surrounding areas [19, 20, 21]. To measure such a spillover effect, we leverage a chance-corrected assortativity coefficient α^i\hat{\alpha}_i for each node ii, which is given by:

αi(zi)=∑j∈Niδ(zj,zi)∣Ni∣,(4)\alpha_i^{(z_i)} = \frac{\sum_{j \in\mathcal{N}_i} \delta(z_j,z_i)}{\lvert\mathcal{N}_i\rvert}, \tag*{(4)}

where ∣Ni∣\lvert\mathcal{N}_i\rvert denotes the neighbourhood size, zz denotes the group label of a node, which here is the venue’s trajectory shape, and δ(⋅)\delta(\cdot) is the Kronecker delta function equal to 1 if node jj belongs to group ziz_i and 0 otherwise.

Concretely, α^i(zi)\hat{\alpha}_i^{(z_i)} is the fraction of venue ii’s neighbours that share its shape. Spatially, one must define the RR-circle to obtain the venue’s neighbourhood Ni\mathcal{N}_i, where RR is the radius of the circle of which the venue is the center. We can represent the venues as a co-occurrence network, whereby each venue is a node, and an edge is formed between two venues if and only if one lies within the other’s RR-circle. A venue’s set of neighbours Ni\mathcal{N}_i is thus the set of venues it is connected to. Due to a different level of venue density, we applied R=300R = 300 for London and R=500R = 500 for Barcelona. To account for the expected proportion of connections to any out-group ss under random mixing, we define the normalized node-level assortativity index as:

α^i(zi)=αi(zi)−qzi1−qzi,(5)\hat{\alpha}_i^{(z_i)} = \frac{\alpha_i^{(z_i)} - q_{z_i}}{1-q_{z_i}}, \tag*{(5)}

where qziq_{z_i} is the global null expected fraction of in-group connection, being

qzi=∑j≠iδ(zj,zi)n−1.(6)q_{z_i} = \frac{\sum_{j \ne i}\delta(z_j,z_i)}{n-1}. \tag*{(6)}

Here nn is the number of venues in the city, so qziq_{z_i} is simply the share of all venues that carry venue ii’s shape. Similar to general assortative mixing coefficients, α^i(zi)=0\hat{\alpha}_i^{(z_i)} = 0 under random mixing, positive when the propensity for in-group connection is higher than expected and vice versa for negative values. The features described earlier use one radius per city. Therefore, positive values indicate assortative behavior (i.e., being connected more often to the same performance group than a different group), and vice versa.

Spatial null model. To evaluate the spatial uniformity of the mixing pattern of trajectory types, we devised a spatial null model that places random circles in a given space. Our permutation test starts with randomly choosing nn venues and creating a circle of radius RR centered on each chosen venue. Within each circle, we take the mean α^\hat{\alpha} of the venues it contains, and calculate the between-circle variance. A spatially concentrated mixing pattern, in which some areas are far more assortative than others, would produce a high between-circle variance, whereas a spatially uniform pattern would produce a lower one. To determine whether the observed variance is greater than would be expected by chance, we compare it against a null distribution generated by reshuffling the trajectory type labels across venues N=1000N = 1000 times while holding their coordinates fixed, recomputing the between-circle variance for each shuffle. The one-sided pp-value is the proportion of shuffled variances that is equal to or exceed the observed variance, that is:

p=1+∑s=1N1[σnull,s2≥σobs2]N+1.(7)p = \frac{1+\sum_{s=1}^{N}\mathbf{1}\left[\sigma_{\mathrm{null},s}^{2} \ge\sigma_{\mathrm{obs}}^{2}\right]}{N+1}. \tag*{(7)}

To avoid unstable estimates in sparsely populated circles, we discard any circle containing fewer than five venues, which leaves between 327 and 471 usable circles depending on the city and the radius used. In the main analysis, we set n=500n = 500 m for London and R=300R = 300 m for Barcelona. We also repeat the test at R=200R = 200, 250, and 500 m as a robustness check (see Supplementary Materials C.5 Table 10). We treat p<0.05p < 0.05 as significant, and note that the test is run at four radii in each of two cities without correction for the number of tests.

Finally, to evaluate the pairwise co-occurrence of shapes, we construct a mixing matrix MM, where each cell MabM_{ab} is the observed co-occurrence between any given pair trajectory shapes a,ba,b. We compute the ratio of MabM_{ab} to the expected co-occurrence under random mixing EabE_{ab}, which is given by

Eab={2papbL,a≠b,pa2L,a=b,(8)E_{ab} = \begin{cases} 2p_a p_b L, & a \ne b,\\ p_a^2 L, & a = b, \end{cases} \tag*{(8)}

where pap_a and pbp_b denote the fraction of venues of shape aa and bb respectively, and LL denotes the total number of neighbouring venue pairs. For interpretability purposes, we take the log⁡2\log_2 of the ratio

Sab=log⁡2(MabEab),(9)S_{ab} = \log_{2}\left(\frac{M_{ab}}{E_{ab}}\right), \tag*{(9)}

such that Sab=0S_{ab}=0 means exactly as often as chance, Sab>0S_{ab}>0 means more often than chance, and Sab<0S_{ab}<0 means less often.

Review Feature. Finally, we extract the reviews of all venues across its lifespan and focus on the reviews’ sentiment. We first annotated the sentiment polarity using a DistilBERT-based multilingual sentiment analysis model due to the existence of non-English comments in our datasets, particularly in the Barcelona sample. We then recoded the sentiment label into a 5-point Likert scale γ∈{−2,−1,0,1,2}\gamma\in\{-2,-1,0,1,2\}, from strongly negative to strongly positive. We computed the mean γ\gamma of each venue on a six-monthly basis and constructed a vector of a normalized length T=11T=11 using linear interpolation and extrapolation for venues with different ages. Missing data were imputed using the mean value of the vector. We report the descriptive statistics of the sentiment values in Supplementary Materials Figure S5. Note that the sentiment feature is only used for the early classification task given that sentiment feature is a time series vector and is secondary to our main research questions regarding urban surroundings of venues, we therefore do not report regarding the sentiment in the main results.

Classification and Forecast Models

Toy example of early classification of venue popularity trajectories

Figure 1. Toy example of early classification of venue popularity trajectories. We test at which point of time tt (denoted as the percentage of data available to the model in the figure) the cost is minimized. Intuitively, for instance, trends are nearly indistinguishable when the data completeness is insufficient and if they are moving into the same direction (cluster 1 and cluster 3; cluster 2 and cluster 4 at 30%). It is only when more data are revealed (at 70%), we are able to distinguish the actual shapes of these paths. Notably, when the completeness is 100%, the task is the same as a detection task.

Classification model. The goal of our classification task is to understand how early we can reliably classify the trajectory during an early onset for a better decision-making process. Using the features discussed above, we can formulate the problem as a sequential decision-making task, wherein early classification is made in order to predict which trajectory shape the given time series data is going to match, a problem domain generally defined as Early Time Series Classification (ETSC). While there is a host of ETSC algorithms (for details, see the comprehensive reviews in [22, 23]), we do not directly apply any ETSC algorithm. Instead, we conducted a series of exploratory analyses to understand the trade-off between earliness and accuracy with four classical machine learning models, including Multinomial Logistic Regression, Random Forest, and XGBoost. We conducted a stratified 5-fold 80-20 split on the original dataset, and trained using varying levels of data incompleteness. The parameter k≤Tk \leq T controls the number of data points that the model is able to see. If k=Tk=T, then the model has complete access to the data, otherwise the model is trained on only kT\frac{k}{T} of the full data, which is equivalent to the truncated series si(0,k)s_i(0,k). Note that each kk period represents a six-month period.

We run the classifiers in two settings. In the trajectory-only setting, each classifier is shown only si(0,k)s_i(0,k), and must classify the input as one of the trajectory shapes. In the full-feature setting, we add the urban and venue features to the same models and rerun them. We then tested different combinations of features to assess how much each contributes at varying time points kk.

Forecasting model. For the forecasting model, we predict the actual normalized popularity values of a given trajectory. Here, we trained a Seq2Seq model using a Gated Recurrent Unit (GRU)-based Encoder-Decoder architecture for exact value forecasting. Given the size of the time series data is small, the encoder-decoder architecture is relative simple to avoid overfitting. A bidirectional GRU encoder was used to capture temporal dependencies in both forward and backward directions, followed by a fully connected decoder that maps the learned representation to predicted values. By experimenting with more complex architecture, we found that additional layers resulted in overfitting with negative R2R^2 in the test set, and thus confirming our choice of a simpler setup. Two training strategies were implemented. A joint training where a single model is fitted to all venues, whereas the per-cluster training fits a separate forecaster to each trajectory cluster using the same architecture.

Qualitative case study

According to the principle of Most Similar Systems Design [24], we select two cases (i.e., Hackney in London and Ciutat Vella in Barcelona) because they are similar on the dimensions our quantitative models found unpredictive given that both rank among the most deprived, densely populated districts in their respective cities (see [25, 26]) and experience decades of policy-driven renewal and gentrification (see [16, 27]), yet their venue clusters diverged sharply in trajectories. Crucially, we remind the reader that here we do not attempt to establish direct statistical causality between longitudinal social metrics and venue performance. Instead, we utilize district histories and social theories to interpret the underlying mechanisms behind these micro-spatial spillovers, which serve as exemplary cases of street-level dynamics. As urban geographer Flyvbjerg demonstrates, detailed case study of exemplars is essential for theorizing processes that large-scale, aggregate metrics may neglect [28].

RESULTS

Venue popularity follows six recurring shapes across cities

Grouping venues by the shape of their popularity shape (see Methods) recovers six dominant shapes: (a) Fall, (b) Rise, (c) Rise & Fall, (d) Steady, (e) Ephemeral, and (f) Underdogs (see Supplementary Materials B for details). The same six shapes appear in both London and Barcelona. These clusters exhibit very clear patterns in terms of their evolution (see Figure 2), and split into near-linear and non-linear trajectories.

Typology of popularity trajectories of urban venues in London and Barcelona

Figure 2. Panel A: the general shapes of the six recurring trajectory types. Panel B: proportional count of each type in Barcelona and London. Both cities have a similar distribution, with Steady being the most common type and Underdogs the least common. Panel C: the empirical distribution of the two urban features, namely population density and scaled deprivation level, grouped by trajectory types.

The near-linear shapes, i.e. the Fall, Rise and Steady clusters, are generally expected patterns. The non-linear ones capture more complex shifts in venue popularity. A venue in the Ephemeral cluster was popular in its first years of trading but lost that popularity quickly. Underdogs are the mirror image: they start out unnoticed and gain a substantial following by the end of the observation period. Rise & Fall venues trace a mild inverted U, growing in popularity up to roughly the midpoint of their lifespan and then declining over the second half. Cluster sizes range from 493 venues (Underdogs) to 3,165 venues (Steady).

Notably, no U-shaped Fall & Rise cluster emerged in either city. Recovery after a sustained decline is therefore not one of the recurring shapes in our data. The inverse shape, Rise & Fall, is present and populous, so the asymmetry is not an artifact of what the clustering can represent: in our data, venues that lose popularity do not form a recurring pattern of coming back. Recovery, when it happens, is either rare enough or idiosyncratic enough not to constitute a shape of its own. Steady and Rise & Fall are the least visually separable pair, so we compared their summary statistics directly. The Steady cluster has a lower standard deviation and a lower average curvature, meaning that its shapes bend less and run straighter, than Rise & Fall, confirming their differences (Supplementary Materials B, Figure S5)

Normalized sentiment scores of venues in London and Barcelona across 11 time points

Figure S5. Normalized sentiment scores of venues in London (blue) and Barcelona (Orange) across 11 time points. Sentiment is first measured by DistilBERT-based multilingual sentiment model and rescaled to -2 to 2, aggregated on a six-monthly basis. Missing data are imputed by the mean of a given vector. Similar to the performance trajectory, we then length-normalized the sentiment time series to 11 points with a linear interpolation and extrapolation.

With the six shapes in hand, we test whether a venue’s neighbourhood can predict which shape a venue belongs to. We answer this with the classification experiments described in Methods. Urban features alone are not predictive, in either the binary or the six-class setting (Supplementary Materials C.2, Table 5 and Supplementary Materials C.2, Table 6). Venue features do carry signal, reaching F1 scores of 0.81 on the binary task and 0.71 on the six-class one, whereas models given only the urban features reach 0.10–0.21 on the same six-class task. We note that, nonetheless, the relationship between venue features and trend type is likely non-linear as logistic regression performs below baseline while tree-based models managed to make accurate predictions. Moreover, we found in our sample that London venues are easier to predict than Barcelona ones in both the binary and the six-class case Supplementary Materials C.2, Table 7.

Across all non-linear models and both cities, cluster assortativity (see definition in Methods) is the strongest predictor of a venue’s trajectory type (see Supplementary Materials C.3 Table 8). In turn, our results demonstrate that the tendency to which a venue is clustered with, or not, other venues belonging in the same trajectory type is decisive for classifying the venue’s own type. In line with longstanding work on agglomeration economies [13], such a finding suggests that sustained popularity patterns exhibit some kind of spatial spillover effect, whereby geographically clustered venues rise or decline together, which we will further explore in the upcoming sections. Yet the weak predictive power of population density and socioeconomic status suggests the link between neighbourhood characteristics and venue success is less direct than conventional theories of neighbourhood effects assume [29, 30]. These patterns, however, are established post-hoc, once a venue’s full trajectory is known. This leaves open a practical question for business owners and planners: how early in a venue’s life can its trajectory be classified? We address this in the next section.

How early a venue’s performance is visible depends on when its signature appears, not how complex the shape is

Early classification of trajectory type In reality, business owners must infer what they should and should not do from partial information about their past and current performance, and do so as early as possible. We begin by establishing an upper bound of predictability, that is how well can these models do when the full time series is visible (i.e., k=Tk = T)? As expected, labeling a venue once its entire history is visible is easier than predicting from a partial one, with most models exceeding 0.70 accuracy. Note that even at k=Tk = T the task is not trivial, since the model sees only the venue’s own shape and must recover from it a grouping that was formed by comparing whole shapes against one another. The best performing model is XGBoost, reaching a macro F1 of 0.83, far above the majority-class and random baselines given in Methods. It is consistently the best performer across all clusters (Supplementary Materials C.1, Table 4). Examining the performance per class, our results revealed that trajectories in the Ephemeral cluster are the easiest to classify (mean F1=0.86F1 = 0.86) across all models, meanwhile Rise & Fall is the most difficult to classify (mean F1=0.54F1 = 0.54), followed by Underdogs (mean F1=0.56F1 = 0.56).

ModelFallRiseRise & FallSteadyEphemeralUnderdogsMacro F1
Logistic Regression0.810.820.510.720.850.660.729
Random Forest0.780.820.530.780.850.570.723
XGBoost0.840.850.760.860.880.790.830
Class Average0.790.820.540.770.860.56—

Table 4. Per-class F1-scores across all models. Easiest class to predict highlighted in green, hardest in red, and best results in bold.

As we have established the upper bound, we now report what happens as less data is available, a problem known as the earliness-accuracy trade-off of trajectory classification with partial data. Figure 3 demonstrates the performance of the three models with varying values of the input richness parameter kk. As we expected, how much accuracy is given up by deciding early differs sharply between shapes. For instance, the Fall trajectory has a relatively stable F1-score across different values of kk, showing only gradual improvement with the increase of kk, as its declining trend is already apparent early in the sequence. The cost of deciding early is therefore not the same for each venue because of different predictability of the shapes. In particular, Rise and Rise & Fall are, by definition, indistinguishable in earlier time points, as both begin with an increasing trend, which is reflected in the F1-score of Rise remaining flat until k=9k = 9 before increasing sharply at k=10k = 10. A similar dynamic applies to Underdogs, whose defining sharp increase in popularity occurs at the very end of the sequence, and thus its F1-score only starts increasing when k≥8k \ge8. All models show a similar rising trend in performance when averaged over all clusters (Figure 3B and C), although XGBoost was able to improve earlier than Random Forest and Logistic Regression and had a sharper increase in performance despite having similar initial performance.

Figure 3. Earliness-accuracy trade-off of early classification. Panel (A) shows the main result of XGBoost, the best performing model overall. Categories such as Fall and Steady do not gain much over kk, meaning that most decisions can be made earlier given their values. However, other categories that are more difficult classify in the first place. Panel (B) - (D) are the learning curves with increasing kk of different models.

Thus far, the models have only observed venue’s own shape. We then asked whether adding the urban and venue features defined in Methods improves the predictability of these trajectories. Consistent with our earlier finding that urban context does not predict trend type, the added features did not help. Adding urban and venue-specific features had, at best, a marginal and inconsistent effect, whether performance is averaged over all venues or measured separately within each trajectory type. For instance, some classes improve slightly while others deteriorated (Supplementary Materials C.4 Figure S7). The one case worth noting is Underdogs, one of the two hardest types to classify, for which combining all available features offered a small improvement over the shape-only models in the earliest, most information-poor prediction windows (k=2k = 2-3), though the difference remains meager. The picture to carry forward is therefore that what a venue is and where it sits add little to what its own shape so far already says.

Forecasting of venue popularity values Classifying the shape early, however, is only part of the problem. A venue owner needs to know not just which path they are on but also its duration and intensity. In the remainder of this section, we turn to forecasting the actual popularity values. Training a separate forecaster for each trajectory shape (P in Table 1, worked slightly better than training a single forecaster for all venues (J in Table 1), although the gap was modest (mean MSE 0.171 vs. 0.190). The advantage of per-cluster training was concentrated at smaller kk, i.e. at shorter input lengths and among the harder clusters.

kkFallRiseRise & FallSteadyEphemeralUnderdogsOverall
5J0.2340.2680.1990.1030.2070.8480.212
P0.2250.2110.1650.0870.2070.4500.224
6J0.1910.2770.1820.0960.1890.8450.200
P0.1810.1990.1400.0800.1930.3840.196
7J0.1910.2740.1730.1070.2250.7280.197
P0.1730.1990.1160.0840.2240.3730.195
8J0.1560.2910.1740.1210.1890.7200.198
P0.1320.2010.1060.0750.1950.2610.162
9J0.1990.3180.1830.1150.2260.7170.211
P0.1090.1920.0710.0620.2420.2220.150
10J0.0620.1920.1230.0920.1050.3050.121
P0.0590.0880.0500.0620.2020.1320.099
MeanJ0.1720.2700.1720.1060.1900.6940.190
P0.1470.1820.1080.0750.2110.3040.171

Table 1. Forecasting performance, measured as mean squared error (MSE). kk indexes historical observations in decreasing recency, from k=10k = 10 (6 months prior) to k=5k = 5 (5 years prior), so a smaller kk means an earlier and less informed forecast. Given the input length kk, the model predicts the remaining values of a performance trajectory after time kk the exact values from k+1k + 1 until k=Tk = T. J = joint training, a single model trained on all venues; P = per-cluster training, a separate model trained for each trajectory shape. The six named columns shows the MSE of each trajectory type, and Overall gives the mean of all venues for a particular time kk. Within each row, the lowest error is shaded green and the highest red. As hypothesized, the difficulty of trend forecasting grows as kk decreases, meaning that long-term prediction is more challenging than short-term prediction. We also found that Underdogs are the most difficult to predict, meanwhile the Steady cluster is the easiest to predict across even all kk.

Regarding the earliness-accuracy trade-off, we again found that the forecast error increases with the decrease in data input length, i.e. less the data the model sees, the harder its future is to predict. As the prediction lead time decreases (from 30 months, k=5k = 5 to 6 months, k=10k = 10), the overall error falls from 0.224 to 0.099. Under joint training, error remains flat at approximately 0.20 for most lead times before dropping to 0.121 when predictions are made 6 months ahead. Predictability also varied sharply by shape. Steady venues were the most forecastable at every input length but the longest, while Underdogs were the least forecastable overall, with error several times that of any other cluster under joint training. Notably, per-cluster training narrows this gap substantially at k=9k = 9 and k=10k = 10. Underdogs depend on a late reversal that the model cannot anticipate, so the capacity to turn a declining venue around is largely unpredictable from past popularity alone, resting on factors absent from our data, such as chance, wider market shifts and changes in management.

All in all, the prediction results reflect an uncomfortable reality of business decision-making. As the forecast horizon lengthens, their performance becomes more unpredictable. In other word, the earlier an answer is sought, the less trustworthy that answer is. The more constructive implication is that forecasts at a six-month lead remain reasonably accurate (see Table 1, k=10k = 10), giving decision-makers a short but practical window to strategize and plan.

Trajectory types mix at the block scale, not the neighbourhood

The preceding classification experiments identified a venue’s spatial assortativity as the strongest predictor of its trajectory type. However, we have yet to establish, empirically, whether venues of the same type actually mix together in space, at what scale this mixing occurs, or whether the pattern reflects a universal tendency for (anti-)homophily across the city. To do so, we measure the chance-corrected assortativity metric α^i\hat{\alpha}_i (see Methods) such that α^i=0\hat{\alpha}_i = 0 corresponds to a neighbourhood no more concentrated than chance, α^i>0\hat{\alpha}_i > 0 to an excess of same-type neighbours, and α^i<0\hat{\alpha}_i < 0 to the opposite.

First, we found that the mixing pattern is scale-variant. (Dis)assortativity is a block-level phenomenon that vanishes with scale, and the exact pattern is trajectory type-specific. In both cities the signal is most distinguishable and stable at radii of roughly 200–600 m (mean α^≈0.008\hat{\alpha} \approx0.008 for both cities at 300 m) and decays toward zero beyond 1 km, as α^\hat{\alpha} will, by construction, converge to the city-level mean as RR goes up. Nevertheless, it was found that the trajectory types have distinct mixing patterns (see Figure 4A). While Steady is the most spatially homophilic in London, it is the Fall venues that are the most likely to be clustered together with their own types in Barcelona. As such, the clustering effect of venue popularity appears to be scale-, type-, and context-dependent.

Mean chance-corrected assortativity, spatial shuffle null model, and trajectory-type co-occurrence heatmaps

Figure 4. Panel A: The mean chance-corrected assortativity coefficient α^\hat{\alpha} is scale-variant in both London and Barcelona, with most venues experiencing stronger (dis)assortativity on the block-level, but decays toward zero due to the inclusion of more venues as RR increases. Panel B: Results of the spatial shuffle null model. The histograms show the distribution of the between-circle variance σnull2\sigma^2_{\mathrm{null}} generated from the null model with R=300R = 300, and the gray vertical line is the observed between-circle σobs2\sigma^2_{\mathrm{obs}}. Panel C: For each pair of trajectory types, the heatmap shows how often venues of those two types are found within R=300R = 300 m of each other. This count is divided by the count expected under a random reassignment of labels to the same venue locations, and shown on a log⁡2\log_2 scale. Values above zero mean the pair co-occurs more than chance would give, values below zero less. Note that this panel uses R=300R = 300 m for both cities, unlike the per-venue assortativity feature, which uses 300 m in London and 500 m in Barcelona.

Next, we tested whether this mixing is uniform across space within a city using the random-circle permutation test described in Methods. In London, the observed variance is indistinguishable from the label-shuffled null across all radii tested (see Figure 4B), indicating that the mixing tendency does not vary meaningfully between neighbourhoods but is a general feature of the city. In Barcelona, the observed variance consistently exceeds the null by a wider margin than in London, however this is only significant when R=200R = 200 (p=.022p = .022). Since we ran this test at four radii in each of the two cities without correcting for the number of tests, one significant result out of eight is close to what we would expect by chance alone, and we therefore do not conclude it as evidence that Barcelona’s mixing is concentrated in particular areas (see detailed results in Supplementary Materials C.5). Overall, we found weak to no evidence that the mixing pattern is spatially concentrated, and instead it is a generalizable phenomenon across neighbourhoods in both cities.

Finally, given the mixing patterns, we examined which types each shape tend to co-occur together using the observed-to-expected adjacency ratios at R=300R = 300 m (see Figure 4C). Two patterns recur across both cities. Most values on the diagonal are above zero on log⁡2\log_2 scale, i.e. above a ratio of 1, confirming that venues of most types are found near their own kind more often than chance would give at the block scale. However, the exceptions are Rise and Underdogs in London and Ephemeral in Barcelona, whose diagonal entries fall below zero. More tellingly, the Underdogs and Ephemeral venues behave differently from the rest. In London, Underdogs are underrepresented as neighbours of nearly every other type, including themselves. In Barcelona the pattern is different, that is Underdogs are strongly over-represented both among themselves and alongside Fall venues. On the other hand, Ephemeral venues are under-represented as neighbours of nearly every other type in Barcelona, whereas in London they are more likely to be clustered with Fall and Rise & Fall, alongside other Ephemeral venues. The remaining types, Fall, Steady and Rise & Fall, are not only over-represented with themselves but also strongly co-occur with one another in London, suggesting that these three trajectories share block-scale neighbourhoods rather than segregating by type.

All in all, our results suggest that the neighbourhood effect is not organized entirely in the same way in the two cities. The type that most strongly clusters with its own kind differs, being Rise & Fall in London and Fall in Barcelona, and Barcelona shows a consistently, if weakly, more concentrated mixing field than London. Yet the qualitative structure is shared. Mixing is a block-level, type-specific phenomenon that is broadly general across each city rather than confined to particular districts. Overall, these findings point to a spillover-like process operating at the scale of the street rather than the whole neighbourhood, whose strength and expression nonetheless depend on the particular urban context in which it is found.

A comparative case study of venue clusters in Hackney and Ciutat Vella

Figure 5. Panel A: Street map of the focal areas investigated in London (left) and Barcelona (right). The size of the points indicates the assortativity (scaled for clarity) and the color indicates the trajectory types. Panel B: Upper panel shows the distribution of assortativity in both cities with the KDE plot (gray) showing the city average and the dotted vertical line indicates the mean assortativity of the focal zones. Lower panel shows the exact values of assortativity of each venue in the focal areas.

Why should two venues a few hundred meters apart share similar performance? One candidate explanation is a spatial spillover effect, whereby nearby venues gain or lose popularity together through their exposure to shared local social and economic conditions [31], and our quantitative results are consistent with such an effect operating largely at the street level. To go further, this section explores qualitatively why aggregate administrative units (e.g., census tracts) cannot capture micro-spatial dynamics accurately. The two cases are a Rise cluster in the London Borough of Hackney, and a Fall cluster in the Ciutat Vella district of Barcelona.

Boutiquing and residential gentrification of hackney In Hackney, we find tight spatial clusters of Rise venues, confined to a small, highly localized area, whose average assortativity (α^=0.112−0.150\hat{\alpha} = 0.112 - 0.150, see Table 2) is higher than both London’s mean and median. Hackney’s broader trajectory provides the historical context for why these street-level spillovers may emerge. Among the fastest-growing economies in London [25], its trajectory is rooted in early 2000s affordable workspace policies designed to retain creative professionals, alongside post-2012 Olympic regeneration and Overground transit expansions [16, 32]. This repositioning attracted young professionals, establishing the borough as a ‘middle-class hipster’ residential-commercial hub [33] where shifting neighbourhood taste dislocated traditional businesses through commercial rent inflation.

At the micro-scale, this dynamic is visible along Clarence Road and Lower Clapton Road. Take the 300 m circle that Methods defines around one venue there, a cooperatively run vegan cafe that is a part of the local punk scene. Almost every Rise venue in our Hackney sample falls inside that single circle, and they sit within a few doors of one another along the same two streets, including the cafe itself, an independent wine bar, and a branch of a premium hair-salon chain. Table 2 lists these venues together with every other venue in the same circle. These venues exemplify Deborah Cowen’s concept of ‘hipster urbanism’ [34] and Hubbard’s commercial ‘boutiquing’ [35], transforming working-class aesthetics into curated ‘shabby chic’ consumption spaces [36].

Because boutiquing relies on contiguous window-shopping and shared foot traffic, positive spillovers remain hyper-localized rather than spreading across the broader neighborhood. In our sample, these growing venues co-locate with established venues born out of gentrification (e.g., chain hipster pizza shop, craft beer retailers), while standing in contrast to the adjacent heritage and community venue that belongs to the Fall shape. Despite extensive gentrification, Hackney remains segregated [37, 38], combining severe child poverty with London’s third most expensive housing market [39]. Severe deprivation and booming commercial vibrancy thus can coexist within the same neighborhood, and is only disentangled cleanly when evaluated at the micro-street level.

Tourism-driven gentrification in Ciutat Vella On the contrary, the Ciutat Vella / Upper Raval area in Barcelona reveals a contrasting trajectory driven by tourism gentrification and mismanaged urban policy. Hosting over 10 holiday homes per hectare, nearly five times the city average, Ciutat Vella experienced massive rental price increase over the years and 605 registered evictions in 2017 alone [26]. This mirrors Hackney’s commercial transformations, but targets non-residential consumers while vastly neglecting residential needs [40]. Local residents remain segregated by urban policies rooted in late-1970s revitalization models [41] and post-2008 economic austerity.

The two districts diverge significantly in timing and history. Ciutat Vella’s transformation began ahead of the 1992 Olympics [27], coinciding later with post-2008 economic stagnation to incubate speculative tourism gentrification rather than resident-led commercial growth [42, 43]. This matches what Aalbers calls fifth-wave gentrification [44]—neighborhood change driven less by middle-class residents moving in and more by investors treating rental housing as a financial asset. The proliferation of short-term lets, via global platforms such as Airbnb, directly undermines the regular local consumer base for independent storefronts [45, 46].

Empirically, this dynamic is also observable at the street level. Within a compact retail area in Upper Raval, we identify a spatial cluster in which a majority of venues are classified as Fall with assortativity scores (α^=0.139\hat{\alpha} = 0.139–0.1660.166) higher than the city’s average (see Figure 4B). Long-standing local stores are disproportionately represented among these venues. For instance, a longstanding bakery (α^=0.139\hat{\alpha} = 0.139) and a record shop (α^=0.165\hat{\alpha} = 0.165), both classified Fall, exemplify a broader pattern in which culturally embedded, resident-oriented businesses deteriorate collectively rather than in isolation. Similar to boutiquing, tourist foot traffic concentrates also along specific areas and shops rather than diffusing evenly through the urban fabric. Commercial displacement therefore is not district-wide but as a street-localized phenomenon.

The complexity of micro-spatial spillover effects If Hackney represents a classic example of a maturely gentrified neighbourhood in Clay’s four-stage model of gentrification [47, 48], then the revitalization schemes in Ciutat Vella instead coincided with the 2008 economic recession, which incubated a speculative tourism gentrification [42, 43] rather than a genuine improvement in the livelihood of local residents. The displacement of lower-income and older residents also means fewer regulars for local stores. This dynamic aligns with what [44] characterizes as fifth-wave gentrification, in which neighbourhood change is driven less by the influx of middle-class residents and more by rental market speculation and housing financialization.

Although the case study cannot directly quantify how much state policy or property-market speculation shapes a venue’s trajectory, it explains the tension in our quantitative results. A neighbourhood can experience high income level and declining venue popularity simultaneously, and a medium-term, cross-sectional feature cannot by itself identify which stage of gentrification a neighbourhood is in. Urban transformation is a long-term, dynamic process, interacting with state policy, macroscopic economic forces, and street-level culture. More broadly, the case study

CityVenue CategoryTrajectoryStatusChain?
LondonPremium hair salonRiseOpen✓
LondonWine barRiseOpenX
LondonVegan cafeRiseOpenX
LondonFrench brasserie & cocktail barRiseOpenX
LondonCraft beer retailerSteadyOpen✓
LondonHipster pizzaSteadyOpen✓
LondonRamen storeSteadyOpen✓
LondonHistoric event centerFallOpenX
LondonRecord storeFallPermanently ClosedX
BarcelonaCocktail bar & loungeFallOpenX
BarcelonaHistoric bakeryFallOpenX
BarcelonaWhiskey & cocktail barFallOpenX
BarcelonaMediterranean restaurantFallOpenX
BarcelonaRecord storeFallOpenX
BarcelonaTapas barFallOpenX
BarcelonaCafe & juice barRise & FallOpen
BarcelonaRecord storeRise & FallOpen
BarcelonaComic storeSteadyOpen
BarcelonaBubble tea shopSteadyOpen
BarcelonaTapas barUnderdogsOpen

caption: Comparative qualitative summary of the venue profiles in the focal areas in Hackney (London) and Ciutat Vella (Barcelona).

:::

serves as a cautionary lesson against asserting (or rejecting) any simple mechanisms that drive commercial spillover effects without considering the historical contexts of the space in focus.

Discussion

Sustainable vibrancy and long-term success of urban venues, such as restaurants, parks, and department stores, are key indicators of a healthy urban economy. The popularity of urban venues has been a focal concern of urban data science, but the literature has largely approached it through the lens of failure (i.e., predicting closures). This framing treats success as the absence of death and reduces a venue’s history to a binary outcome. Nonetheless, a venue that survives can flourish, stagnate, decline and recover, or climb steadily, and these paths are invisible to a survival analysis. To address this, building on existing work on POI success and urban vitality, this study followed venues over time, asking what shapes their popularity takes and how a venue’s surroundings may play a role in determining its performance.

We recovered six recurring trajectory shapes, consistent across London and Barcelona, suggesting these are signatures of how venues behave. The central result concerns what predicts them. Contrary to the expectation that a neighbourhood’s socio-economic status and density determine a venue’s performance, these static features carry little predictive power in our models. In fact, what predicts a venue’s trajectory is the trajectories of its immediate neighbours. This spatial assortativity supports neighbourhood effects understood as a spillover mechanism [13, 21, 29, 30], and our results have demonstrated that spillover effects appear to emerge on the street level, but not the neighbourhood or ward level. Such a finding points at the possibility that large-scale static census data fail to predict performance because they average over the scale at which the effect is observable.

Despite the promising results, this work has several limitations. First, the Foursquare dataset is restricted to like counts in only two large European cities. This lack of cross-continent geographical comparison warrants further research to confirm the generalizability of the identified trajectory shapes. We also note that the socioeconomic status is operationalized differently across the two cities with two different datasets (i.e., IMD for London, household income for Barcelona), and they are measured at different spatial scales. Moreover, the assortativity radius is city-specific (300 m in London, 500 m in Barcelona; see Methods). Our models and analyses are agnostic to the type of venues (e.g., restaurants, parks, grocery stores, pharmacies) that we are investigating, which potentially has intriguing interactions with their tendency to be (dis)assortative with its surrounding venues [31]. Additionally, although beyond the scope of this study, we encourage interested scholars to investigate whether these trajectories can also be observed when popularity is measured through alternative signals, such as actual visitation or comment counts, and whether such signals can inform decision-makers more accurately and reliably. It should also be acknowledged that, knowing that Large Language Models (LLMs) have grown to be a useful tool in urban science [49, 50, 51], we initially deployed LLM-based approaches also for the classification and prediction tasks. However, their performance fell short of the classical ML models, even under few-shot learning settings, and these results were therefore omitted from the final analysis.

This work has uncovered patterns of venue success that is beyond a binary understanding of success versus failure. Vibrancy, on this account, is not a stable attribute of a neighbourhood but an emergent, local process. For policy-makers and business owners, because the spillover that governs a venue’s trajectory operates street by street, tools intended to monitor or support local commerce are likely to be more informative when tailored to the immediate catchment than to the ward or borough. Our approach of combining large-scale behavioural trajectories with their spatial and historical context is readily available to other cities and signals, and offers a route to studying urban vitality as the dynamic, place-specific phenomenon.

DECLARATIONS

Abbreviations. DTW, Dynamic Time Warping; POI, Point of Interest; IMD, Index of Multiple Deprivation; MSE, Mean Squared Error; GRU, Gated Recurrent Unit; ETSC, Early time series classification; LLM, Large Language Model; KDE, Kernel Density Estimation; IQR, Interquartile Range; MAD, Mean Absolute Deviation; XGBoost, Extreme Gradient Boosting.

Acknowledgement. W.N.Y. acknowledges the support from Nokia Bell Labs during his research visit in 2025. R.D.C. was partially supported by COLINE DUT European Partnership project (F-DUT-2023-0037) and the Lagrange Project of the ISI Foundation, funded by Fondazione CRT.

Author contribution. W.N.Y., L.M., D.Q. and R.D.C. conceived the study, developed the theoretical framework and designed the experiments. W.N.Y. performed all experiments, computation and analyses. L.M., D.Q. and R.D.C. supervised the project. W.N.Y. produced the figures. All authors discussed the results and contributed to the final manuscript.

Data availability. The data used in this work is owned by Nokia Bell Labs and data access must be requested to and under agreement with Nokia Bell Labs.

Code availability. All data processing and analyses are conducted with Python 3.12. The code developed in this study will be made available at https://github.com/ComplexConnectionsLab/urban_popularity_trajectory upon publication.

Anonymization policy. We anonymized specific POIs when being discussed. We do not identify any POIs with their names and only describe them generically.

Supplementary Material

Data description

Log-log rank-frequency distributions of like counts in London and Barcelona

Figure S1. Log-Log Rank-frequency distribution of like counts in London and Barcelona. The power law fit yielded α≈2.34\alpha\approx2.34 and α≈2.50\alpha\approx2.50. However, we also note that, using the Vuong’s closeness test, the distribution is not distinguishable from a lognormal distribution (p>.05p > .05) and thus we only describe this as a heavy-detailed distribution rather than a power law one.

Log frequency distributions of lifespan in London and Barcelona

Figure S2. Log frequency distribution of lifespan (in weeks) in London and Barcelona. We estimated the lifespan by taking the day difference between the earliest and the latest like made for the venue.

Frequency distribution of assortativity $\hat{a}$ in London and Barcelona

Figure S3. Frequency distribution of assortativity a^\hat{a} in London and Barcelona. The distributions of assortativity coefficients for both cities are centred around zero.

Frequency distribution of categories in London and Barcelona

Figure S4. Frequency distribution of categories in London and Barcelona. Due to some venues having multiple categories, we have displayed here the first appearing tag as the primary category. The data show a culturally aligned distribution of popular category types, for example pubs and Mediterranean food venues being the most popular primary categories in London and Barcelona respectively.

Description and data of cluster types

Trajectory typeDescription
RisePopularity increases steadily over time.
FallPopularity decreases steadily over time.
Rise & FallPopularity rises at first, then declines in the later period.
SteadyPopularity is maintained over time without much fluctuation.
EphemeralInitially popular, but declines rapidly.
UnderdogsInitially unpopular, but gains popularity later on.

Table 3. The six popularity-trajectory types recovered by DTW clustering, common to both London and Barcelona.

Box plots showing the standard deviation of length-normalized trajectories for each shape

Figure S6. The standard deviation of the values in length-normalized trajectories for each shape. As Steady and Rise & Fall are visually similar, we also fitted the trajectories to the quadratic form ax2+bx+cax^2+bx+c and compared the average curvature of each group. A two-sided Mann-Whitney-U test shows significant differences between the average curvature (U=3329523.0U = 3329523.0, p<.001p < .001) with Rise & Fall (average a=0.021a = 0.021) trajectories being more curved than Steady ones (average a=0.016a = 0.016).

Additional results

Baseline trajectory type classification performance

Trajectory type classification performance with urban and venue features

CityFeature setModelBalanced Acc.F1
LondonUrbanLogistic Regression0.514 ± 0.0170.513 ± 0.018
LondonUrbanRandom Forest0.531 ± 0.0090.529 ± 0.009
LondonUrbanXGBoost0.534 ± 0.0080.533 ± 0.009
LondonVenueLogistic Regression0.495 ± 0.0120.491 ± 0.012
LondonVenueRandom Forest0.814 ± 0.0190.813 ± 0.019
LondonVenueXGBoost0.778 ± 0.0180.778 ± 0.018
LondonCombinedLogistic Regression0.512 ± 0.0070.511 ± 0.007
LondonCombinedRandom Forest0.762 ± 0.0060.762 ± 0.006
LondonCombinedXGBoost0.813 ± 0.0120.812 ± 0.012
BarcelonaUrbanLogistic Regression0.545 ± 0.0250.538 ± 0.023
BarcelonaUrbanRandom Forest0.541 ± 0.0080.538 ± 0.006
BarcelonaUrbanXGBoost0.560 ± 0.0140.559 ± 0.014
BarcelonaVenueLogistic Regression0.529 ± 0.0230.523 ± 0.021
BarcelonaVenueRandom Forest0.688 ± 0.0230.688 ± 0.024
BarcelonaVenueXGBoost0.674 ± 0.0200.673 ± 0.020
BarcelonaCombinedLogistic Regression0.543 ± 0.0330.542 ± 0.033
BarcelonaCombinedRandom Forest0.715 ± 0.0200.714 ± 0.019
BarcelonaCombinedXGBoost0.745 ± 0.0260.745 ± 0.027

Table 5. Binary classification performance (mean ± std) with 5-fold cross-validation by city, feature set, and model. Best model per feature-set block shown in bold. Random seed is 98765.

Feature importance in type classification using urban and venue data

CityFeature setModelBalanced Acc.F1
LondonUrbanLogistic Regression0.158 ±\pm 0.0170.100 ±\pm 0.030
LondonUrbanRandom Forest0.175 ±\pm 0.0110.160 ±\pm 0.006
LondonUrbanXGBoost0.175 ±\pm 0.0130.166 ±\pm 0.012
LondonVenueLogistic Regression0.191 ±\pm 0.0070.112 ±\pm 0.016
LondonVenueRandom Forest0.694 ±\pm 0.0310.686 ±\pm 0.028
LondonVenueXGBoost0.620 ±\pm 0.0300.637 ±\pm 0.030
LondonCombinedLogistic Regression0.183 ±\pm 0.0320.132 ±\pm 0.026
LondonCombinedRandom Forest0.624 ±\pm 0.0080.612 ±\pm 0.008
LondonCombinedXGBoost0.668 ±\pm 0.0150.688 ±\pm 0.016
BarcelonaUrbanLogistic Regression0.191 ±\pm 0.0230.119 ±\pm 0.014
BarcelonaUrbanRandom Forest0.171 ±\pm 0.0180.159 ±\pm 0.015
BarcelonaUrbanXGBoost0.198 ±\pm 0.0230.199 ±\pm 0.037
BarcelonaVenueLogistic Regression0.221 ±\pm 0.0250.131 ±\pm 0.023
BarcelonaVenueRandom Forest0.488 ±\pm 0.0450.472 ±\pm 0.035
BarcelonaVenueXGBoost0.527 ±\pm 0.0370.535 ±\pm 0.031
BarcelonaCombinedLogistic Regression0.226 ±\pm 0.0320.166 ±\pm 0.023
BarcelonaCombinedRandom Forest0.578 ±\pm 0.0420.539 ±\pm 0.043
BarcelonaCombinedXGBoost0.557 ±\pm 0.0560.575 ±\pm 0.057

Table 6. Multiclass classification performance (mean ±\pm std) with 5-fold cross-validation by city, feature set, and model. Best model per feature-set block shown in bold. Random seed is 98765.

Baseline performance and ablation test for early classification task

Macro F1-score as a function of early-classification horizon k across feature ablations

Figure S7. Macro F1-score as a function of early-classification horizon kk, across feature ablations. Error bars denote ±\pm std across 5 folds. Baseline_venue, Baseline_static (i.e., urban + venue), and All consistently outperform Baseline, Baseline_Sentiment, and Baseline_urban for k≤9k \le9. All ablations exhibit a sharp increase in F1-score as kk approaches 10, consistent with the sequence itself becoming sufficiently informative once most of it has been observed.

Spatial null model results with varied R

Feature setModelF1 (London)F1 (Barcelona)Δ\DeltaF1
Binary
UrbanLogistic Regression0.5130.538−0.025
UrbanRandom Forest0.5290.538−0.009
UrbanXGBoost0.5330.559−0.026
VenueLogistic Regression0.4910.523−0.031
VenueRandom Forest0.8130.688+0.126
VenueXGBoost0.7780.673+0.105
CombinedLogistic Regression0.5110.542−0.032
CombinedRandom Forest0.7620.714+0.048
CombinedXGBoost0.8120.745+0.068
Mean F10.6380.613
Multiclass
UrbanLogistic Regression0.1000.119−0.018
UrbanRandom Forest0.1600.159+0.001
UrbanXGBoost0.1660.199−0.032
VenueLogistic Regression0.1120.131−0.018
VenueRandom Forest0.6860.472+0.214
VenueXGBoost0.6370.535+0.102
CombinedLogistic Regression0.1320.166−0.034
CombinedRandom Forest0.6120.539+0.073
CombinedXGBoost0.6880.575+0.113
Mean F10.3660.322

Table 7. City comparison of F1 scores (averaged across folds) across feature sets and models, binary and multiclass tasks. Δ\DeltaF1 = F1(London) − F1(Barcelona). Random seed is 98765.

Spatial null model results with varied RR

(a) Logistic Regression
CityTaskDeprivationPop. DensityUniquenessAssortativity
LondonBinary.011 ± .004.025 ± .008.001 ± .003.011 ± .005
Multiclass.010 ± .003.010 ± .005.006 ± .004.014 ± .004
BarcelonaBinary−.003 ± .002.041 ± .014.007 ± .008−.005 ± .006
Multiclass.003 ± .006.021 ± .007.010 ± .005.021 ± .005
(b) Random Forest
CityTaskDeprivationPop. DensityUniquenessAssortativity
LondonBinary0.179 ± 0.0050.262 ± 0.0060.076 ± 0.0030.427 ± 0.007
Multiclass0.291 ± 0.0070.359 ± 0.0080.156 ± 0.0050.753 ± 0.008
BarcelonaBinary0.255 ± 0.0120.206 ± 0.0090.106 ± 0.0070.390 ± 0.014
Multiclass0.342 ± 0.0130.306 ± 0.0160.162 ± 0.0100.722 ± 0.012
(c) XGBoost
CityTaskDeprivationPop. DensityUniquenessAssortativity
LondonBinary0.081 ± 0.0030.113 ± 0.0050.028 ± 0.0020.421 ± 0.007
Multiclass0.168 ± 0.0050.204 ± 0.0060.078 ± 0.0030.765 ± 0.006
BarcelonaBinary0.172 ± 0.0080.160 ± 0.0100.082 ± 0.0060.400 ± 0.010
Multiclass0.267 ± 0.0120.218 ± 0.0110.127 ± 0.0090.748 ± 0.015

Table 8. Permutation importance (mean ± std) for predicting venue popularity trend using 5-fold cross-validation. Bolded cells indicate the most important feature for each model: (a) Logistic Regression, (b) Random Forest, (c) XGBoost. Random seed is 98765.

CityRRObs. varianceNull variancepp# Circles
London2000.008050.007400.282347
2500.006870.005970.218384
3000.006640.004910.080409
5000.002920.002710.317468
Barcelona2000.011410.006660.022*327
2500.010250.006410.060375
3000.007470.005380.099403
5000.003050.002420.158471

Table 9. Spatial null model for α^\hat{\alpha} in London and Barcelona. * indicates a significant difference between the observed and null variance of α^\hat{\alpha}.

References

  1. [1]Jacobs, J. The Death and Life of Great American Cities (Random House, New York, 1961).
  2. [2]Mouratidis, K. & Poortinga, W. Built environment, urban vitality and social cohesion: Do vibrant neighborhoods foster strong communities? Landscape and Urban Planning 204, 103951 (2020).DOI
  3. [3]Yiu, E. C. Y., Pacheco, D., Di Clemente, R. & Botta, F. Urban vibrancy: An analogy of biodiversity, retail diversity, and activity-based urban diversity measures. PNAS Nexus 5, pag130 (2026). URL https://doi.org/10.1093/pnasnexus/pqag130. https://academic.oup.com/pnasnexus/article-pdf/5/5/pqag130/68302584/pqag130.pdf.
  4. [4]Chen, Z. & Huang, B. Achieving urban vibrancy through effective city planning: A spatial and temporal perspective. Cities 152, 105230 (2024).DOI
  5. [5]Tu, W. et al. Portraying the spatial dynamics of urban vibrancy using multisource urban big data. Computers, Environment and Urban Systems 80, 101428 (2020). URL http://dx.doi.org/10.1016/j.compenvurbsys.2019.101428.
  6. [6]Parsa, H. G., Self, J. T., Njite, D. & King, T. Why restaurants fail. Cornell Hotel and Restaurant Administration Quarterly 46, 304–322 (2005). URL http://dx.doi.org/10.1177/0010880405275598.
  7. [7]Psyllidis, A. et al. Points of interest (POI): a commentary on the state of the art, challenges, and prospects for the future. Computational Urban Science 2, 20 (2022).DOI
  8. [8]Yucesoy, B. & Barabási, A.-L. Untangling performance from success. EPJ Data Science 5 (2016). URL http://dx.doi.org/10.1140/epjds/s13688-016-0079-z.
  9. [9]Di Clemente, R. et al. Sequences of purchases in credit card data reveal lifestyles in urban populations. Nature communications 9, 3330 (2018).DOI
  10. [10]Su, T. et al. Rhythm of the streets: A street classification framework based on street activity patterns. EPJ Data Science 11, 43 (2022).DOI
  11. [11]Anderson, M. & Magruder, J. Learning from the crowd: Regression discontinuity estimates of the effects of an online review database. The Economic Journal 122, 957–989 (2012). URL http://dx.doi.org/10.1111/j.1468-0297.2012.02512.x.
  12. [12]Luca, M. Reviews, reputation, and revenue: The case of yelp.com. Harvard Business School Working Paper (2016). URL https://www.hbs.edu/ris/Publication%20Files/12-016_a7e4a5a2-03f9-490d-b093-8f951238dba2.pdf. Revised September 2016.
  13. [13]Glaeser, E. L. Agglomeration Economics (University of Chicago Press, Chicago, 2010).DOI
  14. [14]Yuan, G., Singh, M. P. & Murukannaiah, P. K. An interpretable framework for investigating the neighborhood effect in poi recommendation. PLOS ONE 16, e0255685 (2021). URL http://dx.doi.org/10.1371/journal.pone.0255685.
  15. [15]Meltzer, R. Gentrification and small business: Threat or opportunity? Cityscape 18, 57–85 (2016).
  16. [16]Ferm, J. Preventing the displacement of small businesses through commercial gentrification: are affordable workspace policies the solution? Planning Practice & Research 31, 402–419 (2016).DOI
  17. [17]Newman, M. E. J. Mixing patterns in networks. Physical Review E 67 (2003). URL http://dx.doi.org/10.1103/physreve.67.026126.
  18. [18]Janosov, M. Quantifying the Evolution of Success with Network and Data Science Tools. PhD dissertation, Central European University, Department of Network and Data Science (2020).DOI
  19. [19]Duranton, G. & Puga, D. Micro-foundations of urban agglomeration economies. In Henderson, J. V. & Thisse, J.-F. (eds.) Handbook of Regional and Urban Economics, vol. 4, 2063–2117 (Elsevier, Amsterdam, 2004).DOI
  20. [20]Konishi, H. & Sandfort, M. T. Anchor stores. Journal of Urban Economics 53, 413–435 (2003).DOI
  21. [21]Daunfeldt, S., Mihaescu, O., Nilsson, H. & Rudholm, N. Spillover effects when ikea enters: Do incumbent retailers win or lose? Papers in Regional Science 98, 2295–2314 (2019). URL http://dx.doi.org/10.1111/pirs.12459.
  22. [22]Gupta, A., Gupta, H. P., Biswas, B. & Dutta, T. Approaches and applications of early classification of time series: A review. IEEE Transactions on Artificial Intelligence 1, 47–61 (2020). URL http://dx.doi.org/10.1109/TAI.2020.3027279.
  23. [23]Renault, A., Bondu, A., Cornuéjols, A. & Lemaire, V. Early classification of time series: A survey and benchmark. Transactions on Machine Learning Research (2025). URL https://openreview.net/forum?id=bcNDYmBicK. Reproducibility Certification.arxiv.org/abs/2406.18332
  24. [24]Anckar, C. On the applicability of the most similar systems design and the most different systems design in comparative research. International Journal of Social Research Methodology 11, 389–401 (2008). URL http://dx.doi.org/10.1080/13645570701401552.
  25. [25]Hackney Council. London’s fastest growing economy: Have your say on hackney’s new economic development plan. Hackney Council News (2025). URL https://news.hackney.gov.uk/news/londons-fastest-growing-economy-have-your-say-on-hackneys-new-economic-development-pl
  26. [26]Sánchez-Aguilera, D. & González-Pérez, J. M. Geographies of Gentrification in Barcelona. Tourism as a Driver of Social Change, 243–268 (Springer International Publishing, 2021). URL http://dx.doi.org/10.1007/978-3-030-77466-0_13.
  27. [27]Pascual-Molinas, N. & Ribera-Fumaz, R. Retail gentrification in ciutat vella, barcelona. In Porter, L. & Shaw, K. (eds.) Whose Urban Renaissance? An International Comparison of Urban Regeneration Strategies, 180–190 (Routledge, London, 2009).
  28. [28]Flyvbjerg, B. Five misunderstandings about case-study research. Qualitative Inquiry 12, 219–245 (2006). URL http://dx.doi.org/10.1177/1077800405284363.
  29. [29]Durlauf, S. N. Neighbourhood effects. In Henderson, J. V. & Thisse, J.-F. (eds.) Handbook of Regional and Urban Economics, vol. 4, 2173–2242 (Elsevier, Amsterdam, 2004).
  30. [30]van Ham, M., Manley, D., Bailey, N., Simpson, L. & Maclennan, D. Neighbourhood Effects Research: New Perspectives (Springer, Dordrecht, 2012).
  31. [31]Yoshimura, Y., Santi, P., Arias, J. M., Zheng, S. & Ratti, C. Spatial clustering: Influence of urban street networks on retail sales volumes. Environment and Planning B: Urban Analytics and City Science 48, 1926–1942 (2020). URL http://dx.doi.org/10.1177/2399808320954210.
  32. [32]Lagadic, M. Along the london overground: Transport improvements, gentrification, and symbolic ownership along london’s trendiest line. City & Community 18, 1003–1027 (2019). URL http://dx.doi.org/10.1111/cico.12414.
  33. [33]Butcher, M. & Dickens, L. Spatial dislocation and affective displacement: Youth perspectives on gentrification in london. International Journal of Urban and Regional Research 40, 800–816 (2016). URL http://dx.doi.org/10.1111/1468-2427.12432.
  34. [34]Cowen, D. H. Hipster urbanism. Relay: A Socialist Project Review 13, 22–23 (2006).
  35. [35]Hubbard, P. The Battle for the High Street: Retail Gentrification, Class and Disgust (Palgrave Macmillan, London, 2017).DOI
  36. [36]Halnon, K. B. Poor chic: The rational consumption of poverty. Current Sociology 50, 501–516 (2002). URL http://dx.doi.org/10.1177/0011392102050004002.
  37. [37]Stone, J. & Hirsch, D. Local indicators of child poverty, 2017/18: Summary of estimates of child poverty after housing costs in local authorities and parliamentary constituencies, 2017/18. Report for the End Child Poverty Coalition, Centre for Research in Social Policy, Loughborough University (2019). URL http://www.endchildpoverty.org.uk/wp-content/uploads/2019/05/child-poverty-indicators-2019-report-to-ecp-1.pdf.
  38. [38]Ministry of Housing, Communities and Local Government. The english indices of deprivation 2019. Tech. Rep., Ministry of Housing, Communities and Local Government, London (2020). URL https://www.gov.uk/government/statistics/english-indices-of-deprivation-2019.
  39. [39]Trust for London. Child poverty by london borough. Trust for London, Poverty and Inequality Data (2026). Accessed 1 June 2026.
  40. [40]Jiménez-Pacheco, P. Neoliberal Urbicide in Barcelona. The Case of Ciutat Vella, 891–913 (Springer International Publishing, 2023). URL http://dx.doi.org/10.1007/978-3-031-25304-1_43.
  41. [41]López Sánchez, ., Pere. El centro histórico: un lugar para el conflicto: estrategias del capital para la expulsión del proletariado del centro de barcelona: el caso de santa caterina y el portal nou (1986). URL https://hdl.handle.net/2445/67079.
  42. [42]Cocola-Gant, A. Tourism gentrification (Edward Elgar Publishing, 2018). URL http://dx.doi.org/10.4337/9781785361746.00028.
  43. [43]Domínguez, A. Q. & Scarnato, A. The Barrio Chino as last frontier, 107–133 (Routledge, 2017). URL http://dx.doi.org/10.4324/9781315629759-5.
  44. [44]Aalbers, M. B. Introduction to the forum: From third to fifth-wave gentrification. Tijdschrift voor Economische en Sociale Geografie 110, 1–11 (2018). URL http://dx.doi.org/10.1111/tesg.12332.
  45. [45]Sans, A. A. & Domínguez, A. Q. 13. Unravelling Airbnb: Urban Perspectives from Barcelona, 209–228 (Multilingual Matters, 2016). URL http://dx.doi.org/10.21832/9781845415700-015.
  46. [46]Lagonigro, R., Martori, J. C. & Apparicio, P. Understanding airbnb spatial distribution in a southern european city: The case of barcelona. Applied Geography 115, 102136 (2020). URL http://dx.doi.org/10.1016/j.apgeog.2019.102136.
  47. [47]Clay, P. L. Neighborhood Renewal: Middle-Class Resettlement and Incumbent Upgrading in American Neighborhoods (Lexington Books, Lexington, MA, 1979).
  48. [48]Lees, L. & Rozena, S. A gentrification stage-model for london? through the ‘looking glass’ of kensington. Transactions of the Institute of British Geographers 51 (2025). URL http://dx.doi.org/10.1111/tran.70012.
  49. [49]Fu, X., Wang, R. & Li, C. Can chatgpt evaluate plans? Journal of the American Planning Association 90, 525–536 (2023). URL http://dx.doi.org/10.1080/01944363.2023.2271893.
  50. [50]Fu, X., Sanchez, T. W., Li, C. & Reu Junqueira, J. Deciphering public voices in the digital era: Benchmarking chatgpt for analyzing citizen feedback in hamilton, new zealand. Journal of the American Planning Association 90, 728–741 (2024). URL http://dx.doi.org/10.1080/01944363.2024.2309259.
  51. [51]Rong, H. H., Davis, J. & Rada-Orellana, M. Benchmarking large language models against qualitative coding and natural language processing in decoding public sentiment on urban upzoning. Urban Informatics 4 (2025). URL http://dx.doi.org/10.1007/s44212-025-00083-x.

Paper details

vlnc:W_4c4g25ns
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 6

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Not recorded for this paper

View statement
Looking for related papers…
Contents