Ensemble Machine Learning Approach for Traffic Congestion and Travel Time Prediction in Urban Bus Rapid Transit Systems: A Case Study of Trans Metro Bandung
Abstract
1. Introduction
2. Materials and Methods
2.1. Literature Review
2.2. Method
3. Results and Discussion
3.1. Traffic Congestion Prediction
3.2. Travel Time
4. Discussion
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Berawi, M.A.; Sari, M.; Amiri, N.H.A.; Susilowati, S.I.; Utami, S.R.; Kulachinskaya, A. Developing a Machine Learning Model to Improve the Accuracy of Owner Estimate Cost in the Capital Expenditure Procurement Process. Int. J. Technol. 2025, 16, 1179. [Google Scholar] [CrossRef]
- Noorsaman, A.; Amrializzia, D.; Zulfikri, H.; Revitasari, R.; Isambert, A. Machine Learning Algorithms for Failure Prediction Model and Operational Reliability of Onshore Gas Transmission Pipelines. Int. J. Technol. 2023, 14, 680–689. [Google Scholar] [CrossRef]
- Abduljabbar, R.; Dia, H.; Liyanage, S. Machine Learning Traffic Flow Prediction Models for Smart and Sustainable Traffic Management. Infrastructures 2025, 10, 155. [Google Scholar] [CrossRef]
- Devi, S.; Neetha, T. Machine Learning based traffic congestion prediction in a IoT based Smart City. Int. Res. J. Eng. Technol. 2017, 4, 3442–3445. Available online: www.irjet.net (accessed on 23 December 2025).
- Megantara, E.; Munadi, R.; Sussi. Arrival Time Prediction Bus Trans Metro Bandung with Internet of Things and Machine Learning Method. e-Proceeding Eng. 2022, 8, 3801–3806. Available online: https://openlibrarypublications.telkomuniversity.ac.id/index.php/engineering/article/view/19124 (accessed on 25 December 2025).
- Visconti, P.; Rausa, G.; Del-Valle-Soto, C.; Velázquez, R.; Cafagna, D.; De Fazio, R. Innovative Driver Monitoring Systems and On-Board-Vehicle Devices in a Smart-Road Scenario Based on the Internet of Vehicle Paradigm: A Literature and Commercial Solutions Overview. Sensors 2025, 25, 562. [Google Scholar] [CrossRef]
- Shi, Z.; Wang, Y.; Guo, D.; Jiao, F.; Zhang, H.; Sun, F. The Urban Intersection Accident Detection Method Based on the GAN-XGBoost and Shapley Additive Explanations Hybrid Model. Sustainability 2025, 17, 453. [Google Scholar] [CrossRef]
- Abdi, A.; Amrit, C. A review of travel and arrival-time prediction methods on road networks: Classification, challenges and opportunities. PeerJ Comput. Sci. 2021, 7, e689. [Google Scholar] [CrossRef]
- Sarrab, M.; Pulparambil, S.; Awadalla, M. Development of an IoT based real-time traffic monitoring system for city governance. Glob. Transit. 2020, 2, 230–245. [Google Scholar] [CrossRef]
- Liu, D.; Sun, J.; Wang, S. BusTime: Which is the Right Prediction Model for My Bus Arrival Time? In Proceedings of the 2020 5th IEEE International Conference on Big Data Analytics (ICBDA 2020), Xiamen, China, 8–11 May 2020; pp. 180–185. [Google Scholar] [CrossRef]
- Grinsztajn, L.; Oyallon, E.; Varoquaux, G. Why do tree-based models still outperform deep learning on typical tabular data? Adv. Neural Inf. Process. Syst. 2022, 35, 507–520. [Google Scholar]
- Sakib, N. Machine Learning-based Travel Time Prediction Models for Complex Traffic Conditions. SSRN 2024. [Google Scholar] [CrossRef]
- Champahom, T.; Banyong, C.; Janhuaton, T.; Se, C.; Watcharamaisakul, F.; Ratanavaraha, V.; Jomnonkwao, S. Deep Learning vs. Gradient Boosting: Optimizing Transport Energy Forecasts in Thailand Through LSTM and XGBoost. Energies 2025, 18, 1685. [Google Scholar] [CrossRef]
- Gifty, A.; Li, D.Y. A Comparative Analysis of LSTM, ARIMA, XGBoost Algorithms in Predicting Stock Price Direction. Eng. Technol. J. 2024, 9, 4978–4986. [Google Scholar] [CrossRef]
- Pan, X. The Comparison Between Random Forest and LSTM Models Based on the Gold Price Prediction. Adv. Econ. Manag. Polit. Sci. 2024, 94, 102–108. [Google Scholar] [CrossRef]
- Sujatha, R.; Teja, A.; Naveen, P.; Chatterjee, J.M.; Aarthy, S.L.; Hassanien, A.E. Web application for traffic monitoring and guidance. J. Syst. Manag. Sci. 2020, 10, 1–14. Available online: https://www.aasmr.org/jsms/Vol10/Vol.10.4.3.pdf (accessed on 25 December 2025).
- Nivaan, G.V.; Tomasila, G.; Suyoto. Smart bus transportation for tracking system: A study case in Indonesia. In IOP Conference Series: Earth and Environmental Science; IOP Publishing: Philadelphia, PA, USA, 2021; Volume 729. [Google Scholar] [CrossRef]
- Khan, M.A.; Khan, S.F. IoT based framework for Vehicle Over-speed detection. In Proceedings of the 2018 1st International Conference on Computer Applications & Information Security (ICCAIS), Riyadh, Saudi Arabia, 4–6 April 2018; pp. 1–4. [Google Scholar] [CrossRef]
- Oladimeji, D.; Gupta, K.; Kose, N.A.; Gundogan, K.; Ge, L.; Liang, F. Smart Transportation: An Overview of Technologies and Applications. Sensors 2023, 23, 3880. [Google Scholar] [CrossRef]
- Shingare, A.; Chaudhari, N.; Deshpande, P. GPS Supported City Bus Tracking & Smart Ticketing System. In 2015 International Conference on Green Computing and Internet of Things (ICGCIoT); IEEE: New York, NY, USA, 2015; pp. 93–98. [Google Scholar]
- Sousa, P.M.E.S., Jr.; Costa, D.F.; Coutinho, E.F.; Bezerra, C.I.M. An IoT solution for monitoring and prediction of bus stops on university transportation using machine learning algorithms. In Proceedings of the 10th Euro-American Conference on Telematics and Information Systems, Fortaleza, Brazil, 12–15 November 2020. [Google Scholar] [CrossRef]
- Sarker, M.R.A.; Hassanuzzaman, M.; Biswas, P.; Dadon, S.H.; Imam, T.; Rahman, T. An efficient surface map creation and tracking using smartphone sensors and crowdsourcing. Sensors 2021, 21, 6969. [Google Scholar] [CrossRef]
- Soori, M.; Arezoo, B.; Dastres, R. Internet of things for smart factories in industry 4.0, a review. Internet Things Cyber-Phys. Syst. 2023, 3, 192–204. [Google Scholar] [CrossRef]
- Miranda, W.M.; De Mendonça, R.T.R.; Da Silva, A.A.; De Lima Curvello, A.M.; De Souza, F.L.D.S.; Da Silva, H.J. BusMe: Automatic Bus Localization System and Route Registration. Procedia Comput. Sci. 2017, 109, 1098–1103. [Google Scholar] [CrossRef]
- Al-Hawari, F.; Al-Sammarraie, M.; Al-Khaffaf, T. Design, validation, and comparative analysis of a private bus location tracking information system. J. Adv. Transp. 2020, 2020, 8895927. [Google Scholar] [CrossRef]
- Priandani, N.D.; Tolle, H.; Yunianto, D.R. Design and implementation of mobile-based application for Malang City public transportation route search. Int. J. Adv. Soft Comput. Appl. 2016, 8, 48–58. [Google Scholar]
- Martín, J.; Khatib, E.J.; Lázaro, P.; Barco, R. Traffic monitoring via mobile device location. Sensors 2019, 19, 4505. [Google Scholar] [CrossRef] [PubMed]
- Sun, S.; Chen, J.; Sun, J. Traffic congestion prediction based on GPS trajectory data. Int. J. Distrib. Sens. Netw. 2019, 15, 1550147719847440. [Google Scholar] [CrossRef]
- Satrinia, D.; Saptawati, G.A.P. Traffic speed prediction from GPS data of taxi trip using support vector regression. In Proceedings of the 2017 International Conference on Data and Software Engineering (ICoDSE), Palembang, Indonesia, 1–2 November 2017; Volume 2018, pp. 1–6. [Google Scholar] [CrossRef]
- Ashwini, B.P.; Sumathi, R.; Sudhira, H.S. A Dynamic Model for Bus Arrival Time Estimation based on Spatial Patterns using Machine Learning. Int. J. Eng. Trends Technol. 2022, 70, 185–193. [Google Scholar] [CrossRef]
- Mousa, S.; Ishak, S. Comparative evaluation of tree-based ensemble algorithms for short-term travel time prediction. arXiv 2018, arXiv:1810.10102. [Google Scholar]
- Qiu, B.; Fan, W. Machine learning based short-term travel time prediction: Numerical results and comparative analyses. Sustainability 2021, 13, 7454. [Google Scholar] [CrossRef]
- Huang, H.; Huang, L.; Song, R.; Jiao, F.; Ai, T. Bus Single-Trip Time Prediction Based on Ensemble Learning. Comput. Intell. Neurosci. 2022, 2022, 6831167. [Google Scholar] [CrossRef]
- Firdaus, D.; Munadi, R.; Purwanto, Y. DDoS Attack Detection in Software Defined Network using Ensemble K-means++ and Random Forest. In 2020 3rd International Seminar on Research of Information Technology and Intelligent Systems (ISRITI); IEEE: New York, NY, USA; pp. 164–169. [CrossRef]
- Khan, N.; Ullah, F.U.M.; Afnan; Ullah, A.; Lee, M.Y.; Baik, S.W. Batteries State of Health Estimation via Efficient Neural Networks with Multiple Channel Charging Profiles. IEEE Access 2021, 9, 7797–7813. [Google Scholar] [CrossRef]
- Mahajan, D.; Pottigar, V.V.; Suresh, C.; Fahad, A. Implementing Real-Time Traffic Flow Prediction Using LSTM Networks for Urban Mobility Optimization. Commun. Appl. Nonlinear Anal. 2025, 32, 01–27. [Google Scholar] [CrossRef]















| Feature | Description | Type | Availability at Prediction Time |
|---|---|---|---|
| day | Day of week (1–7) | Categorical | Known (planned travel day) |
| hour | Hour of day (6–19) | Numerical | Known (planned travel time) |
| route | Bus route number (1–17) | Categorical | Known (selected route) |
| Rush_hours | Rush hour indicator (1 = 7–10 AM, 2 = other) | Binary | Known (derived from hour) |
| condition | Traffic condition (1 = Congested, 2 = Moderate, 3 = Smooth) | Categorical | Can be predicted from congestion model |
| avg_speed_route | Historical average speed per route | Numerical | Known (from historical data) |
| Bus Routes | Numeric for Route |
|---|---|
| Cicaheum to Cibereum | 1 |
| Cibereum to Cicaheum | 2 |
| Bus Routes | Numeric Halte |
|---|---|
| Terminal Cicaheum | 0 |
| Halte Padasuka | 1 |
| Halte AH Yani | 2 |
| Halte Bank Mahyapada | 3 |
| Halte BTM | 4 |
| Halte Jl Jakarta | 5 |
| Halte KONI | 6 |
| Halte Plaza IBCC | 7 |
| Halte Jaya Plaza | 8 |
| Halte Jl Ketapang | 9 |
| Halte HSBC | 10 |
| Halte Alun-Alun | 11 |
| Halte KEB Hana | 12 |
| Halte Mahaypada Tower | 13 |
| Halte Jendral Sudirman | 14 |
| Halte Bunderan Sudirman | 15 |
| Halte Jendral Sudirman 3 | 16 |
| Terminal Elang | 17 |
| Bus Routes | Numeric Halte |
|---|---|
| Terminal Elang | 0 |
| Halte FIF Group | 1 |
| Halte Toko Akbar Jaya | 2 |
| Halte Stasiun | 3 |
| Halte Stasiun Timur | 4 |
| Halte Perintis Kemerdekaan | 5 |
| Halte Bank CIMB | 6 |
| Halte Veteran | 7 |
| Halte Toto Bicycle | 8 |
| Halte Persib | 9 |
| Halte BRI AH Yani | 10 |
| Halte Bank AH Yani | 11 |
| Halte Padasuka 2 | 12 |
| Terminal Cicaheum | 13 |
| Route | Halte Early Stop | Halte Destination | Duration (Minute) |
|---|---|---|---|
| 1 | 6 | 17 | 56.18 |
| 2 | 22 | 28 | 21.10 |
| 1 | 2 | 15 | 44.58 |
| 1 | 0 | 3 | 7.87 |
| 2 | 14 | 16 | 6.70 |
| Actual Time Prediction Data | Random Forest Prediction | XGBoost Regressor Prediction |
|---|---|---|
| 56.18 | 47.15 | 57.68 |
| 21.10 | 21.64 | 21.36 |
| 44.58 | 47.42 | 49.80 |
| 7.87 | 7.64 | 10.87 |
| 6.70 | 9.10 | 9.84 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Munadi, R.; Ramadan, D.N.; Sussi; Fitriyanti, N.; Nuha, H.H. Ensemble Machine Learning Approach for Traffic Congestion and Travel Time Prediction in Urban Bus Rapid Transit Systems: A Case Study of Trans Metro Bandung. IoT 2026, 7, 22. https://doi.org/10.3390/iot7010022
Munadi R, Ramadan DN, Sussi, Fitriyanti N, Nuha HH. Ensemble Machine Learning Approach for Traffic Congestion and Travel Time Prediction in Urban Bus Rapid Transit Systems: A Case Study of Trans Metro Bandung. IoT. 2026; 7(1):22. https://doi.org/10.3390/iot7010022
Chicago/Turabian StyleMunadi, Rendy, Dadan Nur Ramadan, Sussi, Nurwulan Fitriyanti, and Hilal H. Nuha. 2026. "Ensemble Machine Learning Approach for Traffic Congestion and Travel Time Prediction in Urban Bus Rapid Transit Systems: A Case Study of Trans Metro Bandung" IoT 7, no. 1: 22. https://doi.org/10.3390/iot7010022
APA StyleMunadi, R., Ramadan, D. N., Sussi, Fitriyanti, N., & Nuha, H. H. (2026). Ensemble Machine Learning Approach for Traffic Congestion and Travel Time Prediction in Urban Bus Rapid Transit Systems: A Case Study of Trans Metro Bandung. IoT, 7(1), 22. https://doi.org/10.3390/iot7010022

