journal@kawanad.com Banda Aceh, Indonesia

Short-Term Traffic Condition Prediction for the Next 15 Minutes Using XGBoost Based on Temporal Features

Sartika Lina Mulani Sitio1* , Nur Rofiq2 , Nardiono Nardiono3
1*,2,3 Universitas Pamulang image/svg+xml
* Corresponding Author: Sartika Lina Mulani Sitio
Published
2026-12-01
Section
Article
Pages
232-241

Abstract

Short-term traffic condition prediction is essential for supporting responsive monitoring and proactive traffic management within intelligent transportation systems. This study aims to predict multiclass traffic conditions across four categories—normal, heavy, high, and low—for the subsequent 15-minute horizon using an eXtreme Gradient Boosting (XGBoost) model driven by temporal features. The experiment utilized a Kaggle traffic dataset comprising 2,976 chronological observations encompassing timestamp records, categorical vehicle counts, and traffic situation labels. The methodology involved data preprocessing, temporal and cyclical feature engineering, time-ordered data partitioning (2,296 training observations across the first 24 days and 671 testing observations across the final seven days), and hyperparameter optimization. Validation was performed using a three-fold TimeSeriesSplit with an observation gap to prevent temporal data leakage. Experimental results on the holdout test set demonstrated that the proposed XGBoost model achieved an overall accuracy of 75.71%, a weighted F1-score of 73.37%, a macro F1-score of 58.31%, and a balanced accuracy of 56.33%. This performance outperforms the majority baseline (56.18%) and represents an increase of 7.75 percentage points in accuracy over the persistence baseline (67.96%). Class-level analysis revealed strong predictive stability for heavy (F1-score 86.50%) and normal conditions (F1-score 82.21%), although minority classes exhibited lower sensitivity. These findings confirm that integrating XGBoost with engineered temporal features yields an effective approach for 15-minute traffic condition forecasting while rigorously maintaining chronological dependencies.

Article Usage Statistics

OJS Statistics
Share this article:

Author Biographies

Sartika Lina Mulani Sitio Universitas Pamulang

Department of Informatics Engineering, Faculty of Computer Science, Universitas Pamulang, South Tangerang City, Banten Province, Indonesia.

Nur Rofiq Universitas Pamulang

Department of Informatics Engineering, Faculty of Computer Science, Universitas Pamulang, South Tangerang City, Banten Province, Indonesia.

Nardiono Nardiono Universitas Pamulang

Department of Informatics Engineering, Faculty of Computer Science, Universitas Pamulang, South Tangerang City, Banten Province, Indonesia.

How to Cite

Mulani Sitio, S. L., Rofiq, N., & Nardiono, N. (2026). Short-Term Traffic Condition Prediction for the Next 15 Minutes Using XGBoost Based on Temporal Features. Journal Digital Technology Trend, 5(2), 232-241. https://doi.org/10.56347/jdtt.v5i2.489

License & Copyright

Copyright (c) 2026 Sartika Lina Mulani Sitio, Nur Rofiq, Nardiono Nardiono (Author)

This is an open-access journal. All articles are distributed under the terms of the Creative Commons Attribution 4.0 International License (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Creative Commons Attribution 4.0 International (CC BY 4.0)

Under this license, you are free to:

  • Share: copy, distribute, and transmit the work in any medium or format.
  • Adapt: remix, transform, and build upon the work for any purpose, even commercially.

Attribution Requirements

You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

Copyright and Retention Copyright & Retention Authors retain copyright without restrictions and grant this journal the right of first publication under an open-access model. The journal retains non-exclusive publishing rights for archiving, indexing, and scholarly dissemination.

References

Total: 18 References
  • Abduljabbar, R., Dia, H., & Liyanage, S. (2025). Machine learning traffic flow prediction models for smart and sustainable traffic management. Infrastructures, 10(7), Article 155. https://doi.org/10.3390/infrastructures10070155
  • Berlotti, M., Di Grande, S., & Cavalieri, S. (2024). Proposal of a machine learning approach for traffic flow prediction. Sensors, 24(7), Article 2348. https://doi.org/10.3390/s24072348
  • Chen, F., Liu, X. Q., Yang, J. J., Liu, X. K., Ma, J. H., Chen, J., & Xiao, H. Y. (2025). Traffic accident severity prediction based on an enhanced MSCPO-XGBoost hybrid model. Scientific Reports, 15(1), Article 25729. https://doi.org/10.1038/s41598-025-00797-7
  • Deepika, & Pandove, G. (2025). Prediction of traffic time using XGBoost model with hyperparameter optimization. Multimedia Tools and Applications, 84(30), 101895–101918. https://doi.org/10.1007/s11042-025-20646-z
  • Guo, K., Shen, C., Zhou, X., Ren, S., Hu, M., Shen, M., Chen, X., & Guo, H. (2024). Traffic data-empowered XGBoost-LSTM framework for infectious disease prediction. IEEE Transactions on Intelligent Transportation Systems, 25(1), 774–785. https://doi.org/10.1109/TITS.2022.3172206