Student: Pei-Lun Hsu
Thesis: Machine Learning-Based Data-Driven Traffic Flow Estimation from Mobile Data
University: KTH, School of Electrical Engineering and Computer Science (EECS)
Year: 2021
Now at: GetYourGuide, Berlin
Links
About the thesis
Published title: Machine Learning-Based Data-Driven Traffic Flow Estimation from Mobile Data
Programme: Computer Science and Engineering, KTH (30 credits), May 2021
Supervisors: Ian Marsh (RISE) and Xiaoliang Ma (KTH) · Examiners: Viktoria Fodor and Erik Jenelius (KTH)
Host: RISE, within the Swedish Energy Agency's TENS project
Traffic flow, the number of vehicles passing per hour, is what emission estimates and traffic control need. But it is only measured where there are stationary sensors, such as the radar gantries of Stockholm's Motorway Control System (MCS), which are expensive and sometimes fail. Mobile data from INRIX, built from GPS in phones and vehicles, covers far more roads, but it gives speed and travel time, not flow.
The thesis asks: can machine learning infer flow from INRIX data, including on road segments without a sensor?
Data and method
- Data: four weeks of INRIX and MCS data (October 2018) on two adjacent segments of the E4 in Stockholm: three weeks for training and one week for testing.
- Preparation: smoothing with moving averages, correcting a time shift between INRIX and MCS timestamps, and standardising the inputs.
- Baseline: the classic approach, a multi-regime flow–speed relationship (fundamental diagram) fitted to the training data.
- Neural networks: a series of artificial neural network (ANN) models, adding information step by step: 1. speed only; 2. speed and travel time; 3. temporal (hour of day and day of week); 4. spatiotemporal (data from both segments).
- Transfer test: models trained on the south segment were also tested on the north segment, standing in for a road with no sensor.

Results

Speed alone cannot tell congested traffic from light traffic at the same speed, so both speed-only models had large errors. Adding time of day and day of week changed that:

- MAPE improved by up to 89.8% on the south segment and 91.5% on the north.
- The best model, the spatiotemporal ANN, cut RMSE by 293 vehicles/hour (76.8%) on the south segment and 335 vehicles/hour (79.3%) on the north, compared with the baseline.
- Travel time added little, and slightly worsened RMSE on the north segment. Speed and travel time carry nearly the same information.
- Better transfer. On the north segment, which the models had not seen, the baseline degraded more than the ANNs. The ANNs work on standardised inputs, so they are less sensitive to the drift in free-flow speed between segments (caused, for example, by different speed limits).

Conclusions and future work
ANN models that use time and space dependencies estimate traffic flow from mobile data far better than the classic flow–speed relationship, and are more appropriate for estimating flow on segments near a sensor that have none of their own. The approach is highly automated, adapts to new data and can absorb new sources easily, which suits Intelligent Transport Systems in an IoT and big-data setting.
Future work suggested in the thesis: training a central model for a whole road network with many segments, so that it learns spatial dependencies; handling speed-limit transitions between sensors; and integrating further data sources.
The results contributed to the TENS project's reports; see Data-driven traffic flow: Summary of experiments and the state-of-the-art report.
Thesis
Original entry
Pei-Lun Hsu, Machine Learning-Based Data-Driven Traffic Flow Estimation from Mobile Data, now at GetYourGuide, Berlin, KTH, 2021, thesis page.
Project
Related publications
- Data-driven traffic flow: A state-of-the-art report
- Data-driven traffic flow: Summary of experiments
BibTeX
@mastersthesis{Hsu1590038,
author = {Hsu, Pei-Lun},
title = {Machine Learning-Based Data-Driven Traffic Flow Estimation from Mobile Data},
school = {KTH, School of Electrical Engineering and Computer Science (EECS)},
series = {TRITA-EECS-EX},
number = {2021:333},
pages = {74},
year = {2021},
url = {http://www.diva-portal.org/smash/record.jsf?pid=diva2:1590038},
keywords = {Intelligent transport systems, Traffic flow estimation, Machine learning, Artificial neural network, Mobile data, Intelligenta transportsystem, Estimering av trafikflöde, Maskininlärning, Artificiellt neuronnät, Mobila data}
}
Source: DiVA record diva2:1590038
More in Masters theses: ← Hongyi Luo (2022) | Gustaf Lindstedt (2019) →