Skip to main content
QUICK REVIEW

[Paper Review] Visualizing the "Heartbeat" of a City with Tweets

Urbano L. França, Hiroki Sayama|arXiv (Cornell University)|Jan 1, 2014
Human Mobility and Location-Based AnalysisSocial Sciences22 references34 citations
TL;DR

This study analyzes over 6 million geolocated Twitter messages from New York City (Aug–Dec 2013) to visualize the city's collective daily and weekly rhythms. Using hourly heatmaps and distance-from-downtown metrics, it reveals a diurnal 'heartbeat' driven by commuting patterns, with distinct weekday-weekend shifts in activity timing and spatial distribution, including peaks at airports, tourist sites, and sports venues.

ABSTRACT

Describing the dynamics of a city is a crucial step to both understanding the human activity in urban environments and to planning and designing cities accordingly. Here we describe the collective dynamics of New York City and surrounding areas as seen through the lens of Twitter usage. In particular, we observe and quantify the patterns that emerge naturally from the hourly activities in different areas of New York City, and discuss how they can be used to understand the urban areas. Using a dataset that includes more than 6 million geolocated Twitter messages we construct a movie of the geographic density of tweets. We observe the diurnal "heartbeat" of the NYC area. The largest scale dynamics are the waking and sleeping cycle and commuting from residential communities to office areas in Manhattan. Hourly dynamics reflect the interplay of commuting, work and leisure, including whether people are preoccupied with other activities or actively using Twitter. Differences between weekday and weekend dynamics point to changes in when people wake and sleep, and engage in social activities. We show that by measuring the average distances to the heart of the city one can quantify the weekly differences and the shift in behavior during weekends. We also identify locations and times of high Twitter activity that occur because of specific activities. These include early morning high levels of traffic as people arrive and wait at air transportation hubs, and on Sunday at the Meadowlands Sports Complex and Statue of Liberty. We analyze the role of particular individuals where they have large impacts on overall Twitter activity. Our analysis points to the opportunity to develop insight into both geographic social dynamics and attention through social media analysis.

Motivation & Objective

  • To map the temporal and spatial dynamics of urban human activity using real-time social media data.
  • To identify and quantify the diurnal and weekly patterns of Twitter usage as a proxy for collective urban behavior.
  • To explore how social media can reveal geographic social dynamics, attention patterns, and anomalous individual influences in cities.
  • To compare weekday and weekend activity patterns, particularly in timing and spatial distribution of Twitter activity.
  • To assess the role of specific individuals in distorting or dominating local Twitter activity patterns.

Proposed method

  • Collected 6+ million geolocated tweets from Twitter's streaming API across a 300×300 grid covering NYC and surrounding areas.
  • Aggregated data into 168 hourly time slices (7 days × 24 hours) to represent a 'typical week'.
  • Calculated deviation from weekly average using a tanh-normalized difference: $ d_i^{\text{hour}} = \tanh(\alpha(n_i^{\text{hour}} - \bar{n}_i)) $, with $ \alpha = 0.04 $, to generate heatmaps.
  • Constructed 2D and 3D visualizations of Twitter activity dynamics, accessible via a public web portal.
  • Computed average distance from Central Park using the Haversine formula to track spatial shifts in activity over time.
  • Identified high-activity locations and times via anomaly detection and temporal clustering, including airports, tourist sites, and sports complexes.

Experimental results

Research questions

  • RQ1How does the collective Twitter activity in NYC reflect the city’s daily and weekly rhythms?
  • RQ2What are the spatial and temporal patterns of Twitter usage during weekdays versus weekends?
  • RQ3How do commuting patterns and work schedules shape the geographic distribution of Twitter activity?
  • RQ4Which specific locations and times exhibit significant deviations from baseline Twitter activity, and what events drive them?
  • RQ5To what extent do individual users influence or distort local Twitter activity patterns?

Key findings

  • A clear diurnal 'heartbeat' emerges, with peak Twitter activity in Manhattan during midday (13:00) and a pre-commuting surge in suburban areas at 6:00 AM on weekdays.
  • Weekend activity is shifted by approximately 3 hours later in the day, with later wake-up times and no pre-commuting peak, indicating altered social rhythms.
  • Nighttime Twitter activity on Sundays (2:00 AM) is significantly higher and more geographically widespread than on weekdays, particularly in Manhattan, Brooklyn, and Hoboken.
  • High activity at airports (JFK, Newark, LaGuardia) peaks at 4–6 PM on weekdays and varies by location, with JFK showing a secondary peak at 8 PM on Sundays.
  • Specific event-driven activity was observed at the Statue of Liberty (2 PM on Sundays) and the Meadowlands Sports Complex (2–9 PM on Saturdays, 9 AM–7 PM on Sundays).
  • Individuals with high engagement can dominate local Twitter activity, creating localized spikes that deviate from broader urban patterns.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.