Article
A Data-Driven Framework for Short-Term Bus Arrival Time Prediction Integrating AVL, AFC, and Weather Data
Abstract
Accurate prediction of bus arrival times is vital for improving the reliability, efficiency, and user satisfaction of urban public transportation systems. However, unpredictable service can discourage ridership, undermine system equity, and hinder progress toward sustainable urban mobility. This study presents a comprehensive and data-driven framework for predicting short-term bus arrival times by integrating Automatic Vehicle Location (AVL), Automatic Fare Collection (AFC), and weather data. Focusing on Line 144 in Tabriz, Iran, a high-demand urban corridor with 22 stations and over 11,000 daily passengers, the study utilizes more than 2.7 million operational records collected over one month. The methodology follows the CRISP-DM framework and includes data preprocessing, temporal synchronization, missing data imputation, and feature engineering based on inter-vehicle intervals and environmental context. Three predictive models were developed and compared: Artificial Neural Network (ANN), Autoregressive Integrated Moving Average (ARIMA), and a Chi-squared Automatic Interaction Detection (CHAID)-based Decision Tree. Model training used a 70/30 data split, and performance was evaluated using Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), and Relative Absolute Error (RAE). The Decision Tree model yielded the best performance, achieving an average MAE of 4.1 s and RAE of 5.53%. Variable importance analysis highlighted instantaneous speed and recent travel history as dominant predictors, while weather showed minimal short-term impact. This study presents a novel large-scale validation of a unified AVL–AFC–weather framework and provides practical insights for developing efficient transit prediction systems in emerging urban environments.
Keywords
Automatic Vehicle Location (AVL) System, Automatic Fare Collection (AFC) System, Travel Time Prediction, Data Mining in Transportation, Public Transportation
References
- [1] Oh, D., Lee, S., Park, J., et al., 2023. Applying modified-data mining techniques to assess public transportation vulnerable urban and suburban city areas. Heliyon. 9(11), e21213. DOI: https://doi.org/10.1016/j.heliyon.2023.e21213
- [2] Witter, R., 2012. Public Urban Transport, Mobility Patterns and Social Exclusion: The Case of Santiago de Chile [PhD Thesis]. École Polytechnique Fédérale de Lausanne: Lausanne, Switzerland.
- [3] Chen, X., Cheng, Z., Jin, J.G., et al., 2023. Probabilistic forecasting of bus travel time with a Bayesian Gaussian mixture model. Transportation Science. 57(6), 1516–1535. DOI: https://doi.org/10.1287/trsc.2022.0214
- [4] Wang, P.-C., Hsu, Y.-T., Hsu, C.-W., 2021. Analysis of waiting time perception of bus passengers provided with mobile service. Transportation Research Part A: Policy and Practice. 145, 319–336. DOI: https://doi.org/10.1016/j.tra.2021.01.011
- [5] Ma, H., Yang, M., Li, X., 2023. Integrated optimization of customized bus routes and timetables with consideration of holding control. Computers & Industrial Engineering. 175, 108886. DOI: https://doi.org/10.1016/j.cie.2022.108886
- [6] Singh, N., Kumar, K., 2022. A review of bus arrival time prediction using artificial intelligence. WIREs Data Mining and Knowledge Discovery. 12(4), e1457. DOI: https://doi.org/10.1002/widm.1457
- [7] Watkins, K.E., Ferris, B., Borning, A., et al., 2011. Where is my bus? Impact of mobile real-time information on the perceived and actual wait time of transit riders. Transportation Research Part A: Policy and Practice. 45(8), 839–848. DOI: https://doi.org/10.1016/j.tra.2011.06.010
- [8] Rocha, H., Filgueiras, M., Tavares, J.P., et al., 2023. Public transport usage and perceived service quality in a large metropolitan area: The case of Porto. Sustainability. 15(7), 6287. DOI: https://doi.org/10.3390/su15076287
- [9] Shalaby, A., Farhan, A., 2004. Prediction model of bus arrival and departure times using AVL and APC data. Journal of Public Transportation. 7(1), 41–61. DOI: https://doi.org/10.5038/2375-0901.7.1.3
- [10] Abdi, A., Amrit, C., 2021. A review of travel and arrival-time prediction methods on road networks: Classification, challenges and opportunities. PeerJ Computer Science. 7, e689. DOI: https://doi.org/10.7717/peerj-cs.689
- [11] Rong, Y., Xu, Z., Liu, J., et al., 2022. Du-Bus: A realtime bus waiting time estimation system based on multi-source data. IEEE Transactions on Intelligent Transportation Systems. 23(12), 24524–24539. DOI: https://doi.org/10.1109/TITS.2022.3210170
- [12] Ma, J., Chan, J., Ristanoski, G., et al., 2019. Bus travel time prediction with real-time traffic information. Transportation Research Part C: Emerging Technologies. 105, 536–549. DOI: https://doi.org/10.1016/j.trc.2019.06.008
- [13] Bachu, A.K., Reddy, K.K., Vanajakshi, L., 2021. Bus travel time prediction using support vector machines for high variance conditions. Transport. 36(3), 221–234. DOI: https://doi.org/10.3846/transport.2021.15220
- [14] Ricard, L., Desaulniers, G., Lodi, A., et al., 2022. Predicting the probability distribution of bus travel time to measure the reliability of public transport services. Transportation Research Part C: Emerging Technologies. 138, 103619. DOI: https://doi.org/10.1016/j.trc.2022.103619
- [15] Cats, O., Gkiotsalitis, K., Schöbel, A., 2025. 50 years of operations research in public transport. EURO Journal on Transportation and Logistics. 14, 100160. DOI: https://doi.org/10.1016/j.ejtl.2025.100160
- [16] Farahmand, Z.H., Gkiotsalitis, K., Geurs, K.T., 2023. Predicting bus ridership based on the weather conditions using deep learning algorithms. Transportation Research Interdisciplinary Perspectives. 19, 100833. DOI: https://doi.org/10.1016/j.trip.2023.100833
- [17] Arhin, S., Stinson, R.Z., 2016. Transit bus travel time prediction using AVL data. International Journal of Engineering Research & Technology. 5(12). Available from: https://www.ijert.org/transit-bus-travel-time-prediction-using-avl-data
- [18] Mete, S., Çelik, E., Gül, M., 2022. Predicting the time of bus arrival for public transportation by time series models. Journal of Transportation and Logistics. 7(2), 441–455. DOI: https://doi.org/10.26650/JTL.2022.953913
- [19] Li, S., 2002. A real-time bus travel-time prediction model based on Kalman filtering theory. In Proceedings of the Seventh International Conference on Applications of Advanced Technologies in Transportation, Cambridge, MA, USA, 5–7 August 2002; pp. 918–923. DOI: https://doi.org/10.1061/40632(245)115
- [20] Vanajakshi, L., Subramanian, S.C., Sivanandan, R., 2009. Travel time prediction under heterogeneous traffic conditions using global positioning system data from buses. IET Intelligent Transport Systems. 3(1), 1–9. DOI: https://doi.org/10.1049/iet-its:20080013
- [21] Chang, H., Park, D., Lee, S., et al., 2010. Dynamic multi-interval bus travel time prediction using bus transit data. Transportmetrica. 6(1), 19–38. DOI: https://doi.org/10.1080/18128600902929591
- [22] Petersen, N.C., Rodrigues, F., Pereira, F.C., 2019. Multi-output bus travel time prediction with convolutional LSTM neural network. Expert Systems with Applications. 120, 426–435. DOI: https://doi.org/10.1016/j.eswa.2018.11.028
- [23] Yu, B., Wang, H., Shan, W., et al., 2018. Prediction of bus travel time using random forests based on near neighbors. Computer-Aided Civil and Infrastructure Engineering. 33(4), 333–350. DOI: https://doi.org/10.1111/mice.12315
- [24] Sun, Y., Spall, J., Wong, W., et al., 2025. Real-time bus travel time prediction and reliability quantification: A hybrid Markov model. arXiv preprint. arXiv:2503.05907. DOI: https://doi.org/10.48550/arXiv.2503.05907
- [25] Zhang, B., Tang, L., Zhou, D., et al., 2024. Bus arrival time prediction based on the optimized long short-term memory neural network model with the improved whale algorithm. Journal of Advanced Transportation. 2024(1), 6997338. DOI: https://doi.org/10.1155/2024/6997338
- [26] Rashvand, N., Hosseini, S.S., Azarbayjani, M., et al., 2024. Real-time bus departure prediction using neural networks for smart IoT public bus transit. IoT. 5(4), 650–665. DOI: https://doi.org/10.3390/iot5040029
- [27] Ashwini, B.P., Sumathi, R., Sudhira, H.S., 2022. A dynamic model for bus arrival time estimation based on spatial patterns using machine learning. International Journal of Engineering Trends and Technology. 70(9), 185–193. DOI: https://doi.org/10.14445/22315381/IJETT-V70I9P219
- [28] Weigang, L., Koendjbiharie, W., Jucá, R.C.d.M., et al., 2002. Algorithms for estimating bus arrival times using GPS data. In Proceedings of the IEEE 5th International Conference on Intelligent Transportation Systems, Singapore, 3–6 September 2002; pp. 868–873. DOI: https://doi.org/10.1109/ITSC.2002.1041334
- [29] Cathey, F.W., Dailey, D.J., 2003. A prescription for transit arrival/departure prediction using automatic vehicle location data. Transportation Research Part C: Emerging Technologies. 11(3–4), 241–264. DOI: https://doi.org/10.1016/S0968-090X(03)00023-8
- [30] Chen, M., Yaw, J., Chien, S.I., et al., 2007. Using automatic passenger counter data in bus arrival time prediction. Journal of Advanced Transportation. 41(3), 267–283. DOI: https://doi.org/10.1002/atr.5670410304
- [31] Padmanaban, R.P.S., Vanajakshi, L., Subramanian, S.C., 2009. Automated delay identification for bus travel time prediction towards APTS applications. In Proceedings of the Second International Conference on Emerging Trends in Engineering & Technology, Nagpur, India, 16–18 December 2009; pp. 564–569. DOI: https://doi.org/10.1109/ICETET.2009.43
- [32] Chen, H.-K., Wu, C.-J., 2012. Travel time prediction using empirical mode decomposition and gray theory. Transportation Research Record. 2324(1), 11–19. DOI: https://doi.org/10.3141/2324-02
- [33] Yu, H., Yang, J., Lin, J., et al., 2017. Reliability evaluation of non-repairable phased-mission common bus systems with common cause failures. Computers & Industrial Engineering. 111, 445–457. DOI: https://doi.org/10.1016/j.cie.2017.08.002
- [34] Hashemi, H., Albadavi, A., 2019. Prediction of bus arrival time to stations by using AVL data: Case study of Qazvin public bus system. Quarterly Journal of Transportation Engineering. 10(3), 531–542. Available from: https://jte.sinaweb.net/article_54255.html (in Arabic)
- [35] Achar, A., Bharathi, D., Kumar, B.A., et al., 2020. Bus arrival time prediction: A spatial Kalman filter approach. IEEE Transactions on Intelligent Transportation Systems. 21(3), 1298–1307. DOI: https://doi.org/10.1109/TITS.2019.2909314
- [36] Sharmila, R.B., Velaga, N.R., Choudhary, P., 2020. Bus arrival time prediction and measure of uncertainties using survival models. IET Intelligent Transport Systems. 14(8), 900–907. DOI: https://doi.org/10.1049/iet-its.2019.0584
- [37] Lai, Y., Easa, S., Sun, D., et al., 2020. Bus arrival time prediction using wavelet neural network trained by improved particle swarm optimization. Journal of Advanced Transportation. 2020(1), 7672847. DOI: https://doi.org/10.1155/2020/7672847
- [38] Xie, Z.-Y., He, Y.-R., Chen, C.-C., et al., 2021. Multistep prediction of bus arrival time with the recurrent neural network. Mathematical Problems in Engineering. 2021(1), 6636367. DOI: https://doi.org/10.1155/2021/6636367
- [39] Bai, M., Lin, Y., Ma, M., et al., 2018. Travel-time prediction methods: A review. In: Qiu, M. (Ed.). Smart Computing and Communication. Springer: Cham, Switzerland. pp. 67–77. DOI: https://doi.org/10.1007/978-3-030-05755-8_7
- [40] Choudhary, R., Khamparia, A., Gahier, A.K., 2016. Real-time prediction of bus arrival time: A review. In Proceedings of the 2nd International Conference on Next Generation Computing Technologies, Dehradun, India, 14–16 October 2016; pp. 25–29. DOI: https://doi.org/10.1109/NGCT.2016.7877384
- [41] Jargalsaikhan, N., Matsuyama, K., 2020. An investigation of machine learning methods for prediction bus travel time of Mongolian public transportation. In Proceedings of the International Workshop on Advanced Imaging Technology (IWAIT 2020), Yogyakarta, Indonesia, 5–7 January 2020; pp. 325–329. DOI: https://doi.org/10.1117/12.2566800
- [42] Wang, Q., Yang, X., Leonard, B.D., et al., 2020. Field evaluation of connected vehicle-based transit signal priority control under two different signal plans. Transportation Research Record. 2674(7), 172–180. DOI: https://doi.org/10.1177/0361198120921161
- [43] Ding, H., Xu, D., Xu, S., et al., 2022. Bus travel time prediction based on time-varying adaptive Kalman filter method. In Proceedings of the International Conference on Frontiers of Traffic and Transportation Engineering (FTTE 2022), Lanzhou, China, 17–19 June 2022. DOI: https://doi.org/10.1117/12.2652414
- [44] Wang, J.-X., Wang, S., Zhong, X., et al., 2023. An inductive control method for bus priority based on dynamic green time constraint. In Proceedings of the 3rd International Conference on Automation Control, Algorithms and Intelligent Bionics, Xiamen, China, 28–30 April 2023. DOI: https://doi.org/10.1117/12.2686352
- [45] Casonatto, R.A., de Pádua Grillo Souza, T., Mariano, A.M., 2024. Quality and risk management in data mining: A CRISP-DM perspective. Procedia Computer Science. 242, 161–168. DOI: https://doi.org/10.1016/j.procs.2024.08.257
- [46] Jiang, R., Hu, D., Chien, S.I.-J., et al., 2022. Predicting bus travel time with hybrid incomplete data—A deep learning approach. Promet – Traffic&Transportation. 34(5), 673–685. DOI: https://doi.org/10.7307/ptt.v34i5.4052
- [47] Ma, J., Chan, J., Rajasegarar, S., et al., 2022. Multi-attention graph neural networks for city-wide bus travel time estimation using limited data. Expert Systems with Applications. 202, 117057. DOI: https://doi.org/10.1016/j.eswa.2022.117057
- [48] Mansurova, A., Rakhimzhanov, D., Mansurova, A., 2025. Bus travel time prediction under data constraints: A lightweight deep learning approach. In Proceedings of the 2025 4th International Conference on Computational Intelligence and Knowledge Economy (ICCIKE), Dubai, United Arab Emirates, 27–28 November 2025; pp. 444–449. DOI: https://doi.org/10.1109/ICCIKE67021.2025.11318207