Cosar Ghandeharioon: An evaluation of deep neural network approaches for traffic speed prediction

Student: Cosar Ghandeharioon
Thesis: An evaluation of deep neural network approaches for traffic speed prediction
University: KTH, School of Electrical Engineering and Computer Science (EECS)
Year: 2018
Now at: Scania, Sweden

Links

About the thesis

Programme: Master's Programme in Software Engineering of Distributed Systems, KTH (30 credits), 2018 (report dated January 2019)
Supervisors: Ian Marsh and Ahmad Al-Shishtawy (RISE SICS) · Examiner: Šarūnas Girdzijauskas (KTH)
Project: BADA, Big Automotive Data Analytics

Knowing the speed on a road segment 15 minutes or an hour ahead helps driver-assistance systems, navigation and traffic management, and makes planning data-driven. Many models can forecast a traffic time series. This thesis compared three families on real Stockholm data, and asked a sharper question: can they predict the sudden changes that matter, when traffic suddenly slows into a queue?

Data

Data came from Trafikverket's Motorway Control System (MCS): radar detectors on gantries about every 300 metres on Stockholm's motorways, reporting flow and average speed per lane every minute. One detector on the E4 was chosen for the study.

A Stockholm MCS detector gantry
An MCS gantry. Each lane has a detector; sites are identified by road name and distance.

Lanes behave differently: lane 1 is disturbed by entrances and exits, and lane 4 carries the fastest traffic. The thesis focused on lane 2. It also tested 5-minute aggregation, which smooths out minute-by-minute noise that no one needs to predict.

Additive decomposition of the aggregated speed series
The aggregated speed series split into trend, daily seasonal pattern and residual.

Models

  • Persistent model (baseline): the next value equals the current one.
  • Previous-week model: the same time last week.
  • ARIMA: classical autoregressive time-series model.
  • LSTM: long short-term memory recurrent neural network, univariate and multivariate (with neighbouring sensors).
  • Neural decomposition (ND): a network that performs a Fourier-like decomposition into sinusoids plus trend.

Each was tested for one-step and multi-step forecasts, using direct and walk-forward approaches, on the original and the aggregated data.

Results

On the usual measures (RMSE and r²) the models looked good. The aggregated-data LSTM, for example, reached an RMSE of 7.1 km/h and r² of 0.91.

LSTM prediction on the aggregated dataset
LSTM on the 5-minute aggregated data. The text box gives RMSE 7.1, r² 0.909, and a transition accuracy of 0 for 15 of 24 transitions.

But the simple persistent model was hard to beat: with smooth data, "same as now" is a strong forecast, so low aggregate error says little. The thesis therefore proposed two domain-specific criteria:

  • Transition ratio: how many sudden speed changes (for example, more than 30 km/h) occur in the test period.
  • Transition accuracy: how many of those the model predicted at the right time.
Two examples of speed transitions above 30 km/h
Examples of sudden speed changes beyond the 30 km/h threshold, the events a road operator cares about.

None of the models predicted the sudden changes at the exact times they happened. The data from the chosen sensor and its neighbours held no warning of them: they can come from driver behaviour or events upstream that the local sensors cannot see.

Conclusions and recommendations

  • RMSE and r² should be complemented with domain-specific measures for traffic forecasting, because aggregation hides the rare, critical events.
  • The thesis ends with recommendations for Trafikverket: adopt a transition-based metric; use a larger part of the road network (more sensors, upstream and downstream) to have a chance of forecasting sudden changes; and aggregate to about five minutes, since very-high-resolution changes are not what operators need.
  • Future work: richer congestion indicators (mean plus standard deviation of speed, or density), more lanes and neighbouring sensors, and the effect of merges and splits.

The work fed into 12 years of traffic flow data (ECDA 2018), on which Cosar is a co-author, and into the later TENS project; see Data-driven traffic flow.

Thesis

Full text (DiVA)

Original entry

Cosar Ghandeharioon, An evaluation of deep neural network approaches for traffic speed predicti_on_, KTH, 2018, now at Scania, Sweden, thesis page.

Project

Related publications

BibTeX

@mastersthesis{Ghandeharioon1335947,
  author   = {Ghandeharioon, Cosar},
  title    = {An evaluation of deep neural network approaches for traffic speed prediction},
  school   = {KTH, School of Electrical Engineering and Computer Science (EECS)},
  series   = {TRITA-EECS-EX},
  number   = {2018:786},
  pages    = {81},
  year     = {2018},
  url      = {http://www.diva-portal.org/smash/record.jsf?pid=diva2:1335947},
  keywords = {Deep Learning, Regression, Time Series, LSTM, Neural decomposition., Djupinlärning, Tidsserier, Neural dekomposition.}
}

Source: DiVA record diva2:1335947

More in Masters theses: ← Gustaf Lindstedt (2019)  |  Sagar Sharma (2016) →

← All supervised theses