Temporal Rhythms and Selective Visibility in Melbourne’s Pedestrian Counting System

Author

Sharan Velambath

Code
import pandas as pd
import seaborn.objects as so

Pedestrians in Melbourne, from an unkown photographer. Public Domain.

Introduction: Counting the Measurable City

City governments are increasingly using automated sensors to measure and manage urban life. In Melbourne, the Pedestrian Counting System captures hourly pedestrian movements within a network of infrared sensors installed across selected locations (City of Melbourne Open Data Team 2026). At first glance, this dataset appears to offer an objective view of how people move through Melbourne. However, smart-city data is not recorded from nowhere. It is shaped from the infrastructures, design choices, and institutional priorities that determine which places are measured and which remain outside the frame.

Consequently, this project approaches the Pedestrian Counting System not as a pure source of movement data, but as a “data assemblage”. As Iliadis and Russo (2016, 2) argue, data should never be treated as neutral or transparent facts, but rather, they are constituted by the economic and political apparatuses that produce them. Viewing the sensor network through this lens reveals how municipal data capture frequently operates through what Kitchin and Baeten (2022) describe as “civic paternalism”. Under this model of smart-city governance, technologies are deployed on behalf of citizens, while the citizens themselves are largely excluded from the architectural decisions regarding what gets measured and where. These frameworks are important for this analysis because pedestrian counts are shaped not only by where people naturally walk, but where the city chooses to install sensors, how directional movement is categorised, and which specific forms of urban life are made visible.

This matters most in Melbourne because pedestrian movement is closely connected to the city’s economic planning identity. Rao, Han, and Pan (2022, 2) show that planning within the Hoddle Grid has increasingly emphasised pedestrian experience, and retail and adaptive resilience in the central-city shopping district. The Pedestrian Counting System may therefore be highly useful for understanding the rhythms of monitored central-city areas. However, if the sensor network is concentrated around retail, office and event environments, then its evidence may be less suitable for making broader claims about city-wide pedestrian life.

This project is guided by the following research questions:

  1. What temporal pedestrian rhythms can be identified from the sensor network?
  2. To what extent does the sensor network prioritise commercial/retail areas over residential/non-economic areas?
  3. What planning decisions can this dataset responsibly inform, and where is it limited as a city-wide pedestrian metric?

Data Presentation and Critique

This project evaluates two related City of Melbourne open datasets. The first is a subset of the hourly pedestrian counts table, where each row records pedestrian movement at a particular sensor location, date and hour. The second is the sensor locations table which holds the data about the sensors making up the network, including installation dates, location type, directional orientations and latitude and longitude coordinates.

Following the principles of tidy data, these two observational units must be merged to properly structure this analysis (Wickham 2014, 11). The first methodological step is to merge the hourly movement observations with the physical sensor records using their shared Location_ID. This merge links each pedestrian count to the physical sensor that produced it, including its location, installation details, and directional orientation.

Code
# Load local subset and metadata files
counts_df = pd.read_csv("data/pedestrian_counts_hourly.csv")
locations_df = pd.read_csv("data/pedestrian_counts_sensor_locations.csv")

# Verify dataset dimensions and unique infrastructure limits
print("Counts dataset shape:", counts_df.shape)
print("Sensor locations dataset shape:", locations_df.shape)
print("Date range:", counts_df["Sensing_Date"].min(), "to", counts_df["Sensing_Date"].max())
print("Unique count locations:", counts_df["Location_ID"].nunique())
print("Unique sensor metadata locations:", locations_df["Location_ID"].nunique())
Counts dataset shape: (1599864, 9)
Sensor locations dataset shape: (136, 12)
Date range: 2024-06-04 to 2026-06-03
Unique count locations: 102
Unique sensor metadata locations: 136
Code
counts_df.head(5)
Table 1: Preview of the hourly pedestrian counts dataset.
ID Location_ID Sensing_Date HourDay Direction_1 Direction_2 Total_of_Directions Sensor_Name Location
0 1671720250912 167 2025-09-12 17 83 116 199 Lat526_T -37.81304149, 144.95155955
1 1841120250924 184 2025-09-24 11 775 633 1408 Eli124_T -37.81512416, 144.96371988
2 184820260127 184 2026-01-27 8 316 368 684 Eli124_T -37.81512416, 144.96371988
3 1351720260411 135 2026-04-11 17 400 496 896 Spen161_T -37.8172861, 144.95319102
4 182520250712 182 2025-07-12 5 34 46 80 King163_T -37.81627451, 144.95550503
Code
locations_df.head(5)
Table 2: Preview of the pedestrian sensor locations dataset.
Location_ID Sensor_Description Sensor_Name Installation_Date Note Location_Type Status Direction_1 Direction_2 Latitude Longitude Location
0 3 Melbourne Central Swa295_T 2009-03-25 NaN Outdoor A North South -37.811015 144.964295 -37.81101524, 144.96429485
1 5 Princes Bridge PriNW_T 2009-03-26 Replace with: 00:6e:02:01:9e:54 Outdoor A North South -37.818742 144.967877 -37.81874249, 144.96787656
2 9 Southern Cross Station Col700_T 2009-03-23 NaN Outdoor A East West -37.819830 144.951026 -37.81982992, 144.95102555
3 14 Sandridge Bridge SanBri_T 2009-03-24 Sensor relocated to sensor ID 25 on 2/10/2019 Outdoor A North South -37.820112 144.962919 -37.82011242, 144.96291897
4 18 Collins Place (North) Col12_T 2009-03-30 NaN Outdoor A East West -37.813449 144.973054 -37.81344862, 144.97305353

The output shows the counts table contains 1,599,864 hourly observations from the 4th of June 2024 to the 3rd of June 2026, while the sensor table contains 136 location records. However, these observations are only produced by 102 unique locations. This difference suggests that the sensor table describes a wider network than the one represented in the hourly count dataset. This matters because the analysis can only make claims from the sensors that actually appear in the counts data. Also, with there only being 102 unique locations, it shows the massive scale of the dataset comes from repeated hourly measurement across active recorded locations rather than from an expansive sensor network.

The pedestrian counts table column structure also shows how it categorises movement. It separates pedestrian movement into Direction_1 and Direction_2 and Total_of_Directions, while the sensor table provides the direction fields for each sensor. Because each sensor has its own physical orientation, Direction_1 and Direction_2 are not treated here as directly comparable categories across the whole network. Instead, this analysis will use Total_of_Directions as the main source of pedestrian volume as a reliable way to answer the research questions, which focus on overall temporal rhythms and spatial coverage rather than directional flows.

Code
data_quality_summary = pd.DataFrame({
    "Check": [
        "Missing values in counts dataset",
        "Rows with zero total count",
        "Share of rows with zero total count"
    ],
    "Result": [
        int(counts_df.isna().sum().sum()),
        int(zero_count_rows),
        f"{zero_count_share * 100:.2f}%"
    ]
})

data_quality_summary
Table 3: Summary of missing values and zero-count records in the pedestrian counts dataset.
Check Result
0 Missing values in counts dataset 0
1 Rows with zero total count 182
2 Share of rows with zero total count 0.01%

As shown in Table 3, there are no missing values in the counts table. It also shows how rare zero count rows are (only 0.01% of all rows). Since these records form such a small share of the dataset, I will retain them rather than remove them. This avoids incorrectly deleting genuinely low activity periods, while still acknowledging that repeated, clustered 0 values could represent broken sensors. This follows Tufte (1997)’s warning that analytical choices about what to omit, aggregate or display can shape the credibility of visual evidence. In this analysis, zero counts are therefore treated as a minor data-quality limitation rather than a major threat to the results.

Auditing the dataset gives a clearer picture of the potential impact of broken sensors or 0 count values in the dataset. There are no missing values in the counts dataset, and it identifies the rarity of 0-count rows (0.01% of all records). Given the rarity of these rows, rather than removing them, they are retained to preserve genuine low-activity periods. Arbitrarily deleting valid quiet periods could unintentionally distort the analysis results and graphs, which Tufte (1997, 43) warns can severely undermine the credibility of visual evidence. While acknowledging that a cluster of zeros could signal sensor issues, retaining them ensures that the analysis remains grounded in the dataset as recorded.

Code
merged_df = counts_df.merge(
    locations_df,
    on="Location_ID",
    how="left",
    suffixes=("_count", "_sensor")
)

print("Merged dataset shape:", merged_df.shape)
print("Rows with missing sensor metadata after merge:", merged_df["Sensor_Description"].isna().sum())
Merged dataset shape: (1599864, 20)
Rows with missing sensor metadata after merge: 0
Code
merged_df.head(5)
Table 4: Preview of the merged pedestrian counts and sensor locations dataset.
ID Location_ID Sensing_Date HourDay Direction_1_count Direction_2_count Total_of_Directions Sensor_Name_count Location_count Sensor_Description Sensor_Name_sensor Installation_Date Note Location_Type Status Direction_1_sensor Direction_2_sensor Latitude Longitude Location_sensor
0 1671720250912 167 2025-09-12 17 83 116 199 Lat526_T -37.81304149, 144.95155955 I-Hub 526 La Trobe Street (Crossing) Lat526_T 2024-08-14 NaN Outdoor A North South -37.813041 144.951560 -37.81304149, 144.95155955
1 1841120250924 184 2025-09-24 11 775 633 1408 Eli124_T -37.81512416, 144.96371988 124 Elizabeth Street Eli124_T 2025-06-28 NaN Outdoor A North South -37.815124 144.963720 -37.81512416, 144.96371988
2 184820260127 184 2026-01-27 8 316 368 684 Eli124_T -37.81512416, 144.96371988 124 Elizabeth Street Eli124_T 2025-06-28 NaN Outdoor A North South -37.815124 144.963720 -37.81512416, 144.96371988
3 1351720260411 135 2026-04-11 17 400 496 896 Spen161_T -37.8172861, 144.95319102 I-Hub Southern Cross Station - Bourke Street E... Spen161_T 2023-09-25 NaN Outdoor A North South -37.817286 144.953191 -37.8172861, 144.95319102
4 182520250712 182 2025-07-12 5 34 46 80 King163_T -37.81627451, 144.95550503 163 King Street King163_T 2025-04-11 NaN Outdoor A North South -37.816275 144.955505 -37.81627451, 144.95550503

The final merge still contains 1,599,864 count records, anchoring every hourly observation to its corresponding physical metadata. With the counts connected to their locations, the analysis can now examine the temporal rhythms the network makes visible.

Temporal Rhythms of the Monitored City

With the dataset prepared, we first need to interrogate the temporal patterns captured by the sensor network, and identify how pedestrian volumes vary by hour, day and week. We need to ask when pedestrian activity becomes most visible in the monitored city. In a central-city context, where historical planning has aggressively emphasised pedestrian retail linkages and the commercial resilience of the Hoddle Grid (Rao, Han, and Pan 2022, 2), the timing of movement is not a neutral metric, but rather it reveals the specific economic routines the sensor network is positioned to capture.

Code
# Convert date column into datetime format
merged_df["Sensing_Date"] = pd.to_datetime(merged_df["Sensing_Date"])

# Create temporal variables for analysis
merged_df["Year"] = merged_df["Sensing_Date"].dt.year
merged_df["Month"] = merged_df["Sensing_Date"].dt.month
merged_df["Month_Name"] = merged_df["Sensing_Date"].dt.month_name()
merged_df["Day_of_Week"] = merged_df["Sensing_Date"].dt.day_name()
merged_df["Day_Number"] = merged_df["Sensing_Date"].dt.dayofweek
merged_df["Is_Weekend"] = merged_df["Day_of_Week"].isin(["Saturday", "Sunday"])

# Average pedestrian volume by hour
hourly_avg = (
    merged_df
    .groupby("HourDay", as_index=False)
    ["Total_of_Directions"]
    .mean()
    .rename(columns={"Total_of_Directions": "Average_Count"})
)

plot = so.Plot(hourly_avg, x="HourDay", y="Average_Count")
plot = plot.add(so.Line())
plot = plot.add(so.Dot())
plot = plot.label(
            x="Hour of day",
            y="Average pedestrian count",
            title="Average pedestrian volume by hour of day"
        )
plot = plot.scale(x=so.Continuous().tick(at=list(range(0, 24, 2))))

plot.show()
Figure 1: Average pedestrian volume by hour of day across the monitored sensor network.

As Figure 1 demonstrates, average pedestrian volume across the network follows a highly predictable daily rhythm. Activity is lowest overnight, then increases dramatically between 6am and 8am, further increases around midday, and reaches its peak around 5pm before declining again, which reflects a structured work-related rhythm. The massive morning and late-afternoon spikes correspond with work commute times, while the midday spike corresponds with the lunch-hour rush. This shows the sensor network does not just measure movement, but actually traces the dominant routines of the day.

However, accepting this single curve as a holistic reflection of urban life can distort the full picture. As Tufte (1997) demonstrates, time-series displays are sensitive to the choices of intervals, and overly broad aggregations can easily mask differing trends (Tufte 1997, 41). Consequently, Figure 2 separates the data into weekday and weekend activity to prevent work-related trends statistically overwhelming other forms of city life.

Code
# Create readable weekday/weekend labels
merged_df["Day_Type"] = merged_df["Is_Weekend"].map({
    False: "Weekday",
    True: "Weekend"
})

# Average pedestrian volume by hour and day type
hourly_day_type = (
    merged_df
    .groupby(["HourDay", "Day_Type"], as_index=False)
    ["Total_of_Directions"]
    .mean()
    .rename(columns={"Total_of_Directions": "Average_Count"})
)

plot = so.Plot(hourly_day_type, x="HourDay", y="Average_Count", color="Day_Type")
plot = plot.add(so.Line())
plot = plot.add(so.Dot())
plot = plot.label(
            x="Hour of day",
            y="Average pedestrian count",
            color="Day type",
            title="Average pedestrian volume by hour: weekdays and weekends"
        )
plot = plot.scale(x=so.Continuous().tick(at=list(range(0, 24, 2))))
plot.show()
Figure 2: Average hourly pedestrian volume on weekdays and weekends.

This disaggregation reveals two different realities within the same spatial grid. On weekdays, the sharp 6-8am and 5pm spikes are the main focal points, while on weekends these spikes disappear completely. Weekend activity builds gradually, plateaus during the afternoon, and sustains higher volumes late into the night, which reflects unstructured leisure and entertainment consumption rather than workday transit.

Together, these visualisations show that the Pedestrian Counting System is highly effective in tracking structured commercial and retail patterns in the monitored locations as it brilliantly captures the times when the city acts as an economic hub. Nonetheless, although it’s clear that the dataset shows these commercial/retail routines, it must not be misread as a universal baseline for all pedestrian life in the city. It only describes what happens within the geographical boundaries of the sensor network, and the spatial layout of that network brings us to our next critical question.

Spatial Coverage and Selective Visibility

As we identified, the temporal rhythms identified above are bounded by the geographical boundaries of the sensor network. Now we need to shift our focus from when pedestrian activity is recorded to where it is rendered visible. To interrogate the institutional priorities behind this data assemblage, we need to map the exact geographic coordinates of the sensors.

Code
import geopandas as gpd
import contextily as cx

# One row per sensor location used in the counts data
sensor_locations_used = (
    merged_df
    .drop_duplicates(subset="Location_ID")
    .copy()
)

# Convert to GeoDataFrame
gdf = gpd.GeoDataFrame(
    sensor_locations_used,
    geometry=gpd.points_from_xy(
        sensor_locations_used["Longitude"],
        sensor_locations_used["Latitude"]
    ),
    crs="EPSG:4326"
)

# Reproject to Web Mercator for basemap compatibility
gdf_web = gdf.to_crs(epsg=3857)

fig, ax = plt.subplots(figsize=(8, 8))

# Plot points
gdf_web.plot(
    ax=ax,
    color="#1f5aa6",
    edgecolor="white",
    linewidth=0.8,
    alpha=0.95,
    markersize=70,
    zorder=3
)

# Add map
cx.add_basemap(ax, source=cx.providers.CartoDB.Voyager, alpha=1)

ax.set_title("Spatial distribution of active pedestrian sensors", fontsize=16)
ax.set_axis_off()
plt.tight_layout()
Figure 3: Locations of active pedestrian sensors used in the counts dataset.

Figure 3 reveals that the sensor network is not evenly distributed across Melbourne and is clustered mainly within the CBD. This visually confirms Rao, Han and Pan’s arguments that Melbourne’s city-centre planning is mainly driven by “retail resilience” and the desire to fuse shopping with urbanity (Rao, Han, and Pan 2022, 2). The map demonstrates these priorities as the city has deployed the network specifically to monitor its most valuable economic areas, and therefore pedestrian movement is counted primarily when it happens within these commercial zones.

This spatial bias not only limits the dataset’s generalisability, but actively demonstrates Kitchin’s “civic paternalism” idea. The city deployed the technology seemingly on behalf of citizens, but ultimately revolves around the interests of the government, leaving the residential suburbs and non-economic areas unmonitored (Kitchin and Baeten 2022). This directly supports Iliadis and Russo’s argument that “data assemblages” are never neutral reflections of reality but are fundamentally framed by the economic and political apparatuses that generate them (Iliadis and Russo 2016, 2). The gaps in the map render the populations outside the Hoddle Grid structurally invisible.

It is clear that while the Pedestrian Counting system shows clear daily rhythms, these rhythms belong almost exclusively to central-city shoppers and commuters. The dataset provides great evidence for tracking commercial intensity, but the visibility is so geographically biased, it raises critical questions about what kinds of broader, city-wide urban planning decisions this data can actually support.

Conclusion: Responsible use of the Pedestrian Counting System

Ultimately, the analysis of this data assemblage demonstrates that the Pedestrian Counting System is a highly effective, but geographically limited diagnostic tool. While the data captures clear temporal rhythms (such as spikes of work-related commuting), these patterns are only made visible in the economic centre of the city. As Rao et al note, city planning has long prioritised the “retail resilience” and commercial vitality of the Hoddle Grid (Rao, Han, and Pan 2022, 2). The sensor infrastructure mirrors this priority by mapping human movement precisely where the municipality has concentrated its economic investments.

Because this measurement infrastructure is so geographically selective, treating its outputs as a proxy for city-wide pedestrian life poses a significant risk to fair urban governance. Here, the practical implications of Kitchin’s “civic paternalism” (Kitchin and Baeten 2022) and what Iliadis and Russo define as “data assemblages” (Iliadis and Russo 2016) become empirically clear. The main danger is relying on the network as an objective baseline which would create an exclusionary feedback loop. If urban planners blindly use this highly visible commercial data to allocate municipal resources, upgrade streetscapes, or design pedestrian infrastructure, they will continuously over-service the CBD. Meanwhile the residential suburbs and non-economic areas (invisible to the system) will be systematically excluded from data-driven policy decisions.

Therefore, responsible use of the Pedestrian Counting System requires acknowledging its physical and institutional boundaries. The dataset is a powerful, high-resolution metric for managing central-city retail and corporate volumes, but, to prevent infrastructural bias, it must be supplemented with broader, more inclusive forms of civic evidence before it can safely inform holistic city-wide urban design.

AI Declaration

I declare that I HAVE NOT used AI tools in the creation of this assignment.

Signature: Sharan

Date: 11/06/2026

References

City of Melbourne Open Data Team. 2026. “Pedestrian Counting System (Counts Per Hour).” Accessed May 4, 2026. Licensed under CC BY 4.0; City of Melbourne Open Data Portal. https://data.melbourne.vic.gov.au/explore/dataset/pedestrian-counting-system-monthly-counts-per-hour/information/.
Iliadis, Andrew, and Federica Russo. 2016. “Critical Data Studies: An Introduction.” Big Data & Society 3 (2): 1–7. https://doi.org/10.1177/2053951716674238.
Kitchin, Rob, and Guy Baeten. 2022. “Smart Cities, Justice and Local Governance. An Interview with Rob Kitchin.” Urban Matters. https://urbanmattersjournal.com/smart-cities-justice-and-local-governance-an-interview-with-rob-kitchin/.
Rao, Fujie, Sun Han, and Ran Pan. 2022. “Planning for Resilient Central-City Shopping Districts in the Post-Covid Era: An Explanatory Case Study of the Hoddle Grid in Melbourne.” Cambridge Journal of Regions Economy and Society 15 (April). https://doi.org/10.1093/cjres/rsac003.
Tufte, Edward R. 1997. “Visual and Statistical Thinking: Displays of Evidence for Making Decisions.” In Visual Explanations: Images and Quantities, Evidence and Narrative, 27–53. Cheshire, Conn: Graphics Press.
Wickham, Hadley. 2014. “Tidy Data.” Journal of Statistical Software 59 (10): 1–23. https://doi.org/10.18637/jss.v059.i10.