Prediksi Preferensi Kelas Layanan Penumpang Bus pada Periode Mudik Lebaran Menggunakan Machine Learning
Keywords:
Machine Learning, Random Forest, XGBoost, Passenger Preference, Intercity Bus Transportation, Eid al-Fitr Homecoming (Mudik)Abstract
The growth of transportation data has created opportunities to leverage machine learning for supporting decision-making in public transportation services. However, research on classifying intercity bus service class preferences during the Eid al-Fitr homecoming (Mudik) period remains relatively limited. This study aims to analyze and classify passengers’ service class preferences using the Random Forest and XGBoost algorithms. The dataset consists of 3,942 passenger records collected from six intercity bus companies during the period of March 1–31, 2026. The features used include the relative day to Eid al-Fitr, weekend category, destination region, payment status, and bus company. The data were processed through data cleaning, feature engineering, exploratory data analysis, and machine learning modeling. The results indicate that the Random Forest algorithm achieved the best performance with an accuracy of 79.21%, slightly outperforming XGBoost, which achieved an accuracy of 78.96%. Feature importance analysis revealed that the destination region (35.24%) and the relative day to Eid al-Fitr (28.02%) were the most influential factors affecting passengers’ service class preferences. This study provides insights into passenger behavior during the Eid al-Fitr homecoming period and supports data-driven decision-making for intercity bus companies.References
Ajeng, D., Febriyanti, A., Mustofa, A., & Fatah, Z. (2023). Kualitas Pelayanan Publik Pada Bus Trans Jatim. Soetomo Administrasi Publik , 381–394. https://ejournal.unitomo.ac.id/index.php/sap/article/view/7240
Alexandre, T., Bernardini, F., Viterbo, J., & Pantoja, C. E. (2023). Machine Learning Applied to Public Transportation by Bus: A Systematic Literature Review. Transportation Research Record, 2677(7), 639–660. https://doi.org/10.1177/03611981231155189;WGROUP:STRING:PUBLICATION
Bala, B., & Behal, S. (2024). A Brief Survey of Data Preprocessing in Machine Learning and Deep Learning Techniques. 8th International Conference on I-SMAC (IoT in Social, Mobile, Analytics and Cloud), I-SMAC 2024 - Proceedings, 1755–1762. https://doi.org/10.1109/I-SMAC61858.2024.10714767
Buran, B. (2025). Passenger satisfaction modeling in public bus transportation based on business model approach: Ten city case studies. Case Studies on Transport Policy, 21, 101472. https://doi.org/10.1016/J.CSTP.2025.101472
Daneshvar, A., Salahi, F., Ebrahimi, M., & Nahavandi, B. (2023). Analyzing Behavioral Patterns of Bus Passengers Using Data Mining Methods (Case Study: Rapid Transportation Systems). Journal of Applied Research on Industrial Engineering, 10(1), 11–24. https://doi.org/10.22105/JARIE.2021.302560.1373
Emmanuel, T., Maupong, T., Mpoeleng, D., Semong, T., Mphago, B., & Tabona, O. (2021). A survey on missing data in machine learning. Journal of Big Data 2021 8:1, 8(1), 140-. https://doi.org/10.1186/S40537-021-00516-9
Fadhilah, M. W. (Maulida), & Amalia, S. (Sholihati). (2021). Pengaruh Kualitas Pelayanan Bus Kota DAMRI terhadap Kepuasan Pelanggan (Studi pada Penumpang Bus Kota DAMRI Bandung). Jurnal Riset Bisnis Dan Investasi, 7(3), 150–162. https://doi.org/10.35313/JRBI.V7I2.3254
Gorriz, J. M., Clemente, R. M., Segovia, F., Ramirez, J., Ortiz, A., & Suckling, J. (2026). Is K-fold cross validation the best model selection method for machine learning? Information Fusion, 135, 104404. https://doi.org/10.1016/J.INFFUS.2026.104404
Halim, M. R. (2025, May 12). Hadapi Arus Mudik 2025, Kemenhub Siapkan Langkah Strategis untuk 146 Juta Pemudik. Badan Kebijakan Transportasi Kementrian Perhubungan. https://baketrans.kemenhub.go.id/publikasi/view/hadapi-arus-mudik-2025-kemenhub-siapkan-langkah-strategis-untuk-146-juta-pemudik
Hillel, T., Bierlaire, M., Elshafie, M. Z. E. B., & Jin, Y. (2021). A systematic review of machine learning classification methodologies for modelling passenger mode choice. Journal of Choice Modelling, 38, 100221. https://doi.org/10.1016/J.JOCM.2020.100221
Hodeghatta, U. R., & Nayak, U. (2023). Exploratory Data Analysis. Practical Business Analytics Using R and Python, 139–165. https://doi.org/10.1007/978-1-4842-8754-5_5
Iranzad, R., & Liu, X. (2024). A review of random forest-based feature selection methods for data science education and applications. International Journal of Data Science and Analytics 2024 20:2, 20(2), 197–211. https://doi.org/10.1007/S41060-024-00509-W
Lan, B., Chen, Y., & Wu, K. (2025). A granular XGBoost classification algorithm. Applied Intelligence 2025 55:13, 55(13), 895-. https://doi.org/10.1007/S10489-025-06762-1
Lan, B., Wu, K., Chen, Y., & Li, J. (2026). PCA-GRF: A novel granular random forest algorithm for enhancing classification of small sample data. Information Sciences, 746, 123446. https://doi.org/10.1016/J.INS.2026.123446
Li, P., Wu, W., & Pei, X. (2023). A separate modelling approach for short-term bus passenger flow prediction based on behavioural patterns: A hybrid decision tree method. Physica A: Statistical Mechanics and Its Applications, 616, 128567. https://doi.org/10.1016/J.PHYSA.2023.128567
MAULANA, H. (2024). PEMILIHAN MODA TRANSPORTASI MUDIK LEBARAN BAGI MASYARAKAT KABUPATEN LEBAK DENGAN MENGGUNAKAN METODE ANALYTIC HIERARCHY PROCESS. http://eprints.untirta.ac.id/id/eprint/34705
Rahmawati, P., Estriana, R., Praptiwi, R., Salsabila, B., Rafa Oktafian, N., & Zakiyudin, T. (2025). Analisis Perbandingan XGBoost, Random Forest, dan LSTM untuk Prediksi Jumlah Penumpang Bus. Journal of Informatics and Interactive Technology, 2(3), 405–413. https://doi.org/10.63547/JIITE.V2I3.73
Rianti, A., Wachid, N., Majid, A., Fauzi, A., Sistem, P., Informasi, T., Telekomunikasi, S., Upi Di Purwakarta, K., & Edu, A. (n.d.). CRISP-DM: Metodologi Proyek Data Science.
Ruiz, E., Yushimito, W. F., Aburto, L., & de la Cruz, R. (2024). Predicting passenger satisfaction in public transportation using machine learning models. Transportation Research Part A: Policy and Practice, 181, 103995. https://doi.org/10.1016/J.TRA.2024.103995
Sanchez-Marquez, R., & Jabaloyes Vivas, J. (2026). A statistical approach to the confusion matrix for classification problems using machine learning. Neurocomputing, 695, 133962. https://doi.org/10.1016/J.NEUCOM.2026.133962
Shirdel, M., Di Mauro, M., & Liotta, A. (2026). A framework for binary classification evaluation metrics. Information Sciences, 749, 123540. https://doi.org/10.1016/J.INS.2026.123540
Stadler, T., Sarkar, A., & Dünnweber, J. (2021). Bus Demand Forecasting for Rural Areas Using XGBoost and Random Forest Algorithm. Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 12883 LNCS, 442–453. https://doi.org/10.1007/978-3-030-84340-3_36/SAVE-RESEARCH
Takefuji, Y. (2025). Beyond XGBoost and SHAP: Unveiling true feature importance. Journal of Hazardous Materials, 488, 137382. https://doi.org/10.1016/J.JHAZMAT.2025.137382
Tim Survei Angleb Badan Kebijakan Transportasi. (2026, March 6). 143,9 JUTA ORANG AKAN LAKUKAN PERJALANAN PADA ANGKUTAN LEBARAN TAHUN 2026. Badan Kebijakan Transportasi Kementrian Perhubungan. https://baketrans.kemenhub.go.id/publikasi/view/143-9-juta-orang-akan-lakukan-perjalanan-pada-angkutan-lebaran-tahun-2026
Verdonck, T., Baesens, B., Óskarsdóttir, M., & vanden Broucke, S. (2021). Special issue on feature engineering editorial. Machine Learning 2021 113:7, 113(7), 3917–3928. https://doi.org/10.1007/S10994-021-06042-2
Wang, L., Wang, Y., Sun, X., Wu, Y., Peng, F., Chen, C.-H. P., & Song, G. (2023). Public Transit Passenger Profiling by Using Large-Scale Smart Card Data. Journal of Transportation Engineering, Part A: Systems, 149(4), 04023013. https://doi.org/10.1061/JTEPBS.TEENG-7634;WGROUP:STRING:PUBLICATION
Zhang, H., Zhang, L., Liu, Y., & Zhang, L. (2023). Understanding Travel Mode Choice Behavior: Influencing Factors Analysis and Prediction with Machine Learning Method. Sustainability 2023, Vol. 15, Page 11414, 15(14), 11414. https://doi.org/10.3390/SU151411414
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Rahmatika Yuandra, Mart Kellin, Patimah Pulungan

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.