Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Online Test-Time Adaptation of Spatial-Temporal Traffic Flow Forecasting

About

Accurate spatial-temporal traffic flow forecasting is crucial in aiding traffic managers in implementing control measures and assisting drivers in selecting optimal travel routes. Traditional deep-learning based methods for traffic flow forecasting typically rely on historical data to train their models, which are then used to make predictions on future data. However, the performance of the trained model usually degrades due to the temporal drift between the historical and future data. To make the model trained on historical data better adapt to future data in a fully online manner, this paper conducts the first study of the online test-time adaptation techniques for spatial-temporal traffic flow forecasting problems. To this end, we propose an Adaptive Double Correction by Series Decomposition (ADCSD) method, which first decomposes the output of the trained model into seasonal and trend-cyclical parts and then corrects them by two separate modules during the testing phase using the latest observed data entry by entry. In the proposed ADCSD method, instead of fine-tuning the whole trained model during the testing phase, a lite network is attached after the trained model, and only the lite network is fine-tuned in the testing process each time a data entry is observed. Moreover, to satisfy that different time series variables may have different levels of temporal drift, two adaptive vectors are adopted to provide different weights for different time series variables. Extensive experiments on four real-world traffic flow forecasting datasets demonstrate the effectiveness of the proposed ADCSD method. The code is available at https://github.com/Pengxin-Guo/ADCSD.

Pengxin Guo, Pengrong Jin, Ziyue Li, Lei Bai, Yu Zhang• 2024

Related benchmarks

TaskDatasetResultRank
Spatio-temporal forecastingNYC Taxi (test)
MAE14.595
41
Traffic Flow ForecastingPeMS07 Jan 2017 - Aug 2017 (6:2:2)
MAE19.627
12
Traffic Flow ForecastingBayArea Jan 2019 - Dec 2019 (5:2:3)
MAE14.667
12
Traffic Flow Forecasting (inflow)NYCTaxi grid-based (test)
MAE16.987
12
Traffic Flow Forecasting (inflow)T-Drive grid-based (test)
MAE21.242
12
Traffic Flow Forecasting (outflow)T-Drive grid-based (test)
MAE21.271
12
Showing 6 of 6 rows

Other info

Code

Follow for update