Evaluation of Encoder-Only Transformer for Multi-Step Traffic Flow Prediction
Traffic flow prediction is critical for Intelligent Transportation Systems to alleviate congestion and optimize traffic management. The existing basic Encoder-Decoder Transformer model for multi-step prediction requires high computational complexity, making them less efficient for real-time applications. Therefore, this paper presents an Encoder-Only Transformer that eliminates the decoder component while evaluating the model’s ability to capture long-term spatial-temporal dependencies. This simplification was found to reduce computational overhead while maintaining a reasonable predictive accuracy comparable to the basic Encoder-Decoder Transformer and Long Short-Term Memory (LSTM) models. Experimental evaluations on two real-world datasets, Minnesota and California, for hourly prediction of 6, 12, and 24-hour horizon tasks, demonstrate the proposed model’s effectiveness. The proposed Encoder-Only Transformer outperforms LSTM networks across all horizons task for the Minnesota dataset, achieving up to 17.33% improvement in Mean Absolute Error. The proposed model excels in 24-hour horizon task for the California dataset but underperforms for shorter horizons compared to the LSTM and basic Encoder-Decoder Transformer models. These findings highlight the Encoder-Only Transformer’s application for multi-step traffic flow prediction while emphasizing dataset-specific variations in model performance.
Authors
- Mohd Nazmin Maslan (ORCID: https://orcid.org/0000-0002-8676-4452)
- Ahmad Faiz Mohammad (ORCID: https://orcid.org/0000-0003-3111-867X)
- Fitri Yakub (ORCID: https://orcid.org/0000-0002-6603-2406)
- Inge Dhamanti (ORCID: https://orcid.org/0000-0003-2347-8771)
- Andika Aji Wijaya (ORCID: https://orcid.org/0000-0002-5627-9579)
- Zhongchao Shi (ORCID: https://orcid.org/0000-0002-5216-3827)
- Mas Omar
Institutions
- Tokyo City University (JP)
- Universitas Airlangga (ID)
- Technical University of Malaysia Malacca (MY)
- University of Business and Technology (SA)
- University of Technology Malaysia (MY)
Publication Details
- Journal
- IEEE Access
- Published
- 2025-01-01
- DOI
- https://doi.org/10.1109/access.2025.3580500
- Citations
- 1
- Primary Topic
- Traffic Prediction and Management Techniques
- Type
- article
- Field-Weighted Citation Impact
- 1.01
Funders
- Ministry of Higher Education, Malaysia