Neural network multitask learning for traffic flow forecasting

Feng Jin, Shiliang SunIJCNN 2008

Abstract

Traffic flow forecasting is a critical component of urban traffic management. While traditional approaches utilize Single Task Learning (STL) to predict a single future time point, this paper explores the advantages of Multitask Learning (MTL). By training a neural network to simultaneously predict traffic at multiple contiguous time steps, the model leverages inductive bias from related tasks to improve generalization. Experimental results on real-world data from Beijing demonstrate that the MTL approach consistently outperforms STL, achieving accuracy improvements of up to 9.31%.

Introduction

Predicting urban traffic flow is inherently challenging due to the complex, non-linear nature of traffic systems, which are influenced by human behavior and environmental variables. Most neural network-based forecasting models treat this as a Single Task Learning (STL) problem. However, STL models often ignore latent information available in related temporal tasks, such as traffic states immediately preceding or following the target time. This paper proposes a Multitask Learning (MTL) framework to capture these "extra" signals, providing a stronger inductive bias for the model.

Methodology

The proposed framework utilizes a standard Backpropagation (BP) neural network optimized with the Levenberg-Marquardt algorithm.

Architecture

The network consists of three layers:

  • Input Layer: Receives traffic flow data from five consecutive 15-minute intervals ($t(n-5)$ to $t(n-1)$).
  • Hidden Layer: Contains 15 neurons with sigmoid activation functions, serving as a shared representation for all tasks.
  • Output Layer: In the MTL configuration, the network predicts three values: the flow at the previous step $t(n-1)$, the current target step $t(n)$, and the subsequent step $t(n+1)$.
The Multitask Learning (MTL) architecture featuring three output nodes for simultaneous prediction of related time steps.

By treating $t(n)$ as the primary task and $t(n-1), t(n+1)$ as auxiliary tasks, the model is forced to learn features that are robust across different time slices, effectively regularizing the network against noise.

Experimental Setup

The study utilized real-world vehicular traffic data from the Beijing City Map, collected via UTC/SCOOT systems.

  • Data Frequency: 15-minute intervals.
  • Dataset Size: 25 days of filtered data (2,400 sample points).
  • Evaluation: The model was tested across six distinct road links (labeled $C_f, D_b, F_f, G_b, H_i, B_b$).

Key Results

The MTL approach was compared against a standard STL model across all six road links. The MTL model demonstrated superior performance in every instance.

  • Accuracy Improvement: Relative gains in prediction accuracy ranged from 2.34% to 9.31%. For example, on road link $B_b$, the Root Mean Square Error (RMSE) was reduced from 77.46 to 70.25.
  • Model Fit: The model showed a high degree of correlation with actual traffic patterns, effectively capturing both peak and off-peak flows.
Comparison of predicted traffic flow (red stars) against actual observed data (blue line), showing high predictive accuracy.
  • Convergence: Training stabilized efficiently, typically reaching the performance goal within approximately 125 epochs.

Conclusion and Future Work

This research confirms that Multitask Learning provides a significant advantage over Single Task Learning for traffic flow forecasting. By incorporating related temporal tasks, the model develops a more generalized internal representation. Future research will focus on incorporating spatial context by including data from neighboring road links and exploring alternative architectures such as Bayesian Networks or Kernel Regression.

Summary updated

BibTeX
@inproceedings{jin2008neural,
  author = {Feng Jin and Shiliang Sun},
  title = {{Neural network multitask learning for traffic flow forecasting}},
  booktitle = {IJCNN},
  year = {2008},
  doi = {10.1109/ijcnn.2008.4634057},
}
Figure