Integrating Principal Component Analysis and Random Forest for Classifying University Students' Transportation Mode Choice in Medan, Indonesia

Authors

  • Nurul Hanifa Lubis Universitas Islam Negeri Sumatera Utara
  • Ismail Husein Universitas Islam Negeri Sumatera Utara

DOI:

https://doi.org/10.56427/jcbd.v5i3.1053

Keywords:

Feature Extraction, Machine Learning, Principal Component Analysis, Random Forest, Transportation Mode Choice

Abstract

Urban traffic congestion in Indonesian cities is closely linked to student commuting, yet the behavioral factors underlying mode choice are numerous and strongly correlated, which limits conventional classification models. This study integrates Principal Component Analysis (PCA) with a Random Forest (RF) classifier to predict transportation mode choice among university students in Medan, Indonesia. Data were obtained from 1,177 valid questionnaire responses covering 39 items, which were aggregated into eight behavioral constructs; seven were retained after sampling-adequacy screening. Applying the Kaiser criterion, two principal components were extracted, jointly explaining 70.42% of the total variance, and used as predictors of six transportation modes. The RF model attained 66.09% accuracy and a Cohen's Kappa of 0.5714, indicating moderate agreement between predicted and observed choices. Performance differed markedly across modes, from an F1-score of 82.37% for Mini Bus to 17.65% for Online Car Transportation, which was frequently misclassified as Online Motorcycle Transportation. The findings indicate that a compact two-component representation retains substantial behavioral information while yielding moderate predictive performance, and that mode-specific data enrichment is needed before such models can inform campus transportation planning.

Downloads

Download data is not yet available.

References

[1] K. Maharani, P. Navitas, and S. Nurlaela, “Identifikasi Pola Mobilitas pada Kampus Institut Teknologi Sepuluh Nopember,” Jurnal Penataan Ruang, vol. 19, no. 1, pp. 47–57, Aug. 2024, doi: 10.12962/j2716179x.v19i0.21067.

[2] O. Oktaviani and M. Pebriani, “Karakteristik Pemilihan Moda Transportasi Menuju Kampus (Studi Kasus: Mahasiswa Fakultas Teknik Universitas Negeri Padang),” Cived, vol. 10, no. 2, pp. 474–483, 2023, doi: 10.24036/cived.v10i2.403.

[3] M. L. Jaisyurrahman, S. Priyanto, and S. Malkhamah, “Analisis Faktor yang Mempengaruhi Minat Mahasiswa Menggunakan Trans Jogja sebagai Moda Transportasi Publik di Yogyakarta,” Jurnal Media Publikasi Terapan Transportasi, vol. 3, no. 2, pp. 156–165, 2025, doi: 10.26740/mitrans.v3n2.p156-165.

[4] B. Rahardjo, M. Yulianti, and P. Pranoto, “Pemodelan Pemilihan Moda Transportasi (Studi Kasus: Fakultas Ekonomi dan Bisnis Universitas Negeri Malang),” Media Komunikasi Teknik Sipil, vol. 29, no. 1, pp. 151–162, 2023, doi: 10.14710/mkts.v29i1.54387.

[5] M. Erkamim, S. Suswadi, M. Z. Subarkah, and E. Widarti, “Komparasi Algoritme Random Forest dan XGBoosting dalam Klasifikasi Performa UMKM,” Jurnal Sistem Informasi Bisnis, vol. 13, no. 2, pp. 127–134, 2023, doi: 10.21456/vol13iss2pp127-134.

[6] O. C. Onifade, S. O. Olanrewaju, and E. S. Oguntade, “Maximizing Predictive Regression and Dimensionality Reduction Techniques: Evidence from Monte Carlo’s Simulation Study,” American Journal of Applied Statistics and Economics, vol. 4, no. 1, pp. 127–140, Oct. 2025, doi: 10.54536/ajase.v4i1.5938.

[7] M. Ali, “Discrete Choice Models and Artificial Intelligence Techniques for Predicting the Determinants of Transport Mode Choice—A Systematic Review,” Computers, Materials and Continua, vol. 81, no. 2, pp. 2161–2194, 2024, doi: 10.32604/cmc.2024.058888.

[8] M. Hassan, M. E. Kabir, S. T. Akter, S. S. Shraban, K. S. Basaruddin, and M. A. Islam, “Machine learning in travel mode choice studies: A systematic literature review of applications, methods, and challenges,” Results in Engineering, vol. 28, no. 108140, pp. 1–25, 2025, doi: 10.1016/j.rineng.2025.108140.

[9] I. Rahnasto and M. Hollestelle, “Comparing discrete choice and machine learning models in predicting destination choice,” European Transport Research Review, vol. 16, no. 1, 2024, doi: 10.1186/s12544-024-00667-9.

[10] G. Li and Y. Qin, “An Exploration of the Application of Principal Component Analysis in Big Data Processing,” Applied Mathematics and Nonlinear Sciences, vol. 9, no. 1, pp. 1–24, 2024, doi: 10.2478/amns-2024-0664.

[11] S. K. Kim and J. Wang, “A Dataset on Public Bus Transportation during Normal and Grand Prix Seasons in the Macao Area,” Scientific Data, vol. 12, no. 1306, pp. 1–8, 2025, doi: 10.1038/s41597-025-05660-y.

[12] R. G. Brereton, “Introduction to statistical, algorithmic and theoretical basis of principal components analysis,” Journal of Chemometrics, vol. 36, no. 9, pp. 1–9, 2022, doi: 10.1002/cem.3406.

[13] C. P. Susanto, D. U. Arini, L. Yuntina, J. Panatap Soehaditama, and Nuraeni, “Konsep Penelitian Kuantitatif: Populasi, Sampel, dan Analisis Data (Sebuah Tinjauan Pustaka),” Jurnal Ilmu Multidisplin, vol. 3, no. 1, pp. 1–12, 2024, doi: 10.38035/jim.v3i1.504.

[14] F. Alaudin Shalih, R. Akbar Ramadhan, and N. Syalaisa, “Tinjauan Komprehensif tentang Aplikasi dan Perkembangan Principal Component Analysis (PCA),” Jurnal EurekaMatika Journal, vol. 13, no. 1, pp. 25–34, 2025. [Online]. Available: https://ejournal-science.upi.edu/jem/article/view/174

[15] F. Diba, M. Silvi Lydia, and P. Sihombing, “Analisis Random Forest Menggunakan Principal Component Analysis Pada Data Berdimensi Tinggi,” Indonesian Journal of Computer Science, vol. 12, no. 4, pp. 2152–2160, 2023, doi: 10.33022/ijcs.v12i4.3329.

[16] R. S. Nurhalizah, R. Ardianto, and Purwono, “Analisis Supervised dan Unsupervised Learning pada Machine Learning: Systematic Literature Review,” Jurnal Ilmu Komputer dan Informatika, vol. 4, no. 1, pp. 61–72, 2024, doi: 10.54082/jiki.168.

[17] H. A. Salman, A. Kalakech, and A. Steiti, “Random Forest Algorithm Overview,” Babylonian Journal of Machine Learning, vol. 2024, pp. 69–79, 2024, doi: 10.58496/BJML/2024/007.

[18] K. M. Sujon, R. Hassan, K. Choi, and M. A. Samad, “Accuracy, precision, recall, f1-score, or MCC? empirical evidence from advanced statistics, ML, and XAI for evaluating business predictive models,” Journal of Big Data, vol. 12, no. 1, pp. 1–45, 2025, doi: 10.1186/s40537-025-01313-4.

Downloads

Published

15-08-2026

How to Cite

Nurul Hanifa Lubis, & Ismail Husein. (2026). Integrating Principal Component Analysis and Random Forest for Classifying University Students’ Transportation Mode Choice in Medan, Indonesia. Journal of Computers and Digital Business, 5(3), 249–257. https://doi.org/10.56427/jcbd.v5i3.1053