Visualizing the “Heartbeat” of a City with Tweets

Cite as:

U. França, H. Sayama, C. McSwiggen, R. Daneshvar and Y. Bar-Yam, Visualizing the “Heartbeat” of a City with Tweets. Complexity (April 21, 2015). doi: 10.1002/cplx.21687

Download PDF (also on arXiv)


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.

Science Video: Twitter usage reveals ebbs and flows of life in NYC
by David Shultz
EarthSky Watch the pulse of New York City, measured in tweets
MIT Technology Review Twitter Firehose Reveals How New York City Sleeps 3 Hours Later on Sundays
New York Observer Twitter Trackers Visualize “Heartbeat” of New York City
by Nicole Puglise
Discover The Exact Moment When New York Office Workers Start Slacking Off
by Carl Engelking

NYC geographical region with the locations of 6 million tweets shown. The sharp land-sea boundary is apparent as is the boundary of land area with high population density.

Activity pattern of the NYC area for a week. The difference from the average number of tweets is shown. Activity is higher (progressively red and yellow) or lower (progressively dark and light blue) than average. [Right or control click video to download]

Twitter activity with differences from the average represented as changes in height. [Right or control click video to download]

The same animation with a static viewpoint. [Right or control click video to download]



Phone: 617-547-4100 | Fax: 617-661-7711 | Email: office at

277 Broadway Cambridge, MA USA

Privacy Policy