Skip to main content
QUICK REVIEW

[Paper Review] Traffic congestion anomaly detection and prediction using deep learning

Adriana‐Simona Mihăiţă, Haowen Li|arXiv (Cornell University)|Jun 23, 2020
Traffic Prediction and Management TechniquesEngineering20 references14 citations
TL;DR

This paper proposes a deep learning framework for real-time traffic congestion anomaly detection and prediction across 208 motorway stations in Sydney, using spatio-temporal features from 36.34 million data points. It combines outlier detection with CNN-LSTM, BPNN, and LSTM models, showing that anomaly adjustment improves accuracy and reduces required historical data, with LSTM outperforming hybrid models and flow-based features yielding the best predictions.

ABSTRACT

Congestion prediction represents a major priority for traffic management centres around the world to ensure timely incident response handling. The increasing amounts of generated traffic data have been used to train machine learning predictors for traffic, however, this is a challenging task due to inter-dependencies of traffic flow both in time and space. Recently, deep learning techniques have shown significant prediction improvements over traditional models, however, open questions remain around their applicability, accuracy and parameter tuning. This paper brings two contributions in terms of: 1) applying an outlier detection an anomaly adjustment method based on incoming and historical data streams, and 2) proposing an advanced deep learning framework for simultaneously predicting the traffic flow, speed and occupancy on a large number of monitoring stations along a highly circulated motorway in Sydney, Australia, including exit and entry loop count stations, and over varying training and prediction time horizons. The spatial and temporal features extracted from the 36.34 million data points are used in various deep learning architectures that exploit their spatial structure (convolutional neuronal networks), their temporal dynamics (recurrent neuronal networks), or both through a hybrid spatio-temporal modelling (CNN-LSTM). We show that our deep learning models consistently outperform traditional methods, and we conduct a comparative analysis of the optimal time horizon of historical data required to predict traffic flow at different time points in the future. Lastly, we prove that the anomaly adjustment method brings significant improvements to using deep learning in both time and space.

Motivation & Objective

  • Address the challenge of predicting traffic congestion across large, complex motorway networks with high temporal and spatial dependency.
  • Improve prediction accuracy by detecting and adjusting for data anomalies in real-time traffic streams.
  • Investigate the optimal balance between past historical data and future prediction horizons for deep learning models.
  • Evaluate the performance of various deep learning architectures—LSTM, CNN, BPNN, and hybrid CNN-LSTM—on multi-source traffic data (flow, speed, occupancy).
  • Determine whether incorporating more data sources (e.g., weather, incidents) enhances prediction performance, with a focus on data efficiency and model robustness.

Proposed method

  • Apply an outlier detection and anomaly adjustment method using incoming and historical traffic data streams to clean real-time data before model training.
  • Extract spatial and temporal features from 36.34 million traffic data points collected across 208 monitoring stations on a 48km motorway in Sydney.
  • Implement and compare multiple deep learning models: LSTM for temporal dynamics, CNN for spatial structure, BPNN for baseline performance, and hybrid CNN-LSTM for spatio-temporal modeling.
  • Conduct a sensitivity analysis across varying past (R) and future (P) time horizons to determine optimal training and prediction window lengths.
  • Train models on individual data streams (flow, speed, occupancy) and combinations thereof to assess feature importance and model robustness.
  • Use RMSE, MAE, and MAPE as evaluation metrics to quantitatively compare model performance across different configurations and data conditions.

Experimental results

Research questions

  • RQ1How does anomaly detection and data cleaning impact the accuracy and efficiency of deep learning models in traffic congestion prediction?
  • RQ2What is the optimal combination of past historical data (R) and future prediction horizon (P) for different deep learning architectures in motorway flow prediction?
  • RQ3Which deep learning model—LSTM, CNN, BPNN, or hybrid CNN-LSTM—delivers the best predictive performance for multi-station traffic flow forecasting?
  • RQ4How do different input features (flow, speed, occupancy) influence model accuracy, and which combination yields the most robust predictions?
  • RQ5To what extent does using clean, anomaly-adjusted data reduce the required historical data length without sacrificing prediction accuracy?

Key findings

  • The LSTM model achieved the best predictive performance among all evaluated models, outperforming the more complex hybrid CNN-LSTM architecture.
  • Anomaly detection and data adjustment significantly improved prediction accuracy and reduced the required historical data length, with models needing less past data to achieve similar performance.
  • For future prediction horizons beyond 15 minutes (P=5), the optimal past horizon (R) converged to shorter durations—e.g., LSTM required only 48 minutes of history (R=16) at P=8 (24 minutes), compared to 130 minutes (R=26) before anomaly correction.
  • Training on traffic flow alone yielded the lowest error metrics (MAPE=13.25, RMSE=193.28), followed closely by flow and occupancy; using only speed produced the worst results due to high correlation with flow and time-of-day effects.
  • CNN performance degraded with longer historical data windows, indicating that spatial models are sensitive to data length and may overfit if too much past data is used.
  • The hybrid CNN-LSTM model underperformed compared to standalone LSTM, suggesting that increased model complexity does not always improve prediction accuracy in this context.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.