Prediksi Jumlah Penduduk Malaysia Berdasarkan Faktor Demografi dan Etnis Menggunakan Metode Random Forest

Authors

  • Nurkholis Nurkholis Politeknik Kampar
  • Andri Nofiar. Am Politeknik Negeri Bengkalis
  • Hayatul Khairul Rahmat Politeknik Kampar
  • Rahmad Akbar Politeknik Kampar

DOI:

https://doi.org/10.59061/jentik.v3i4.1550

Keywords:

Demographics, Ethnicity, Machine Learning, Population Prediction, Random Forest

Abstract

Accurate population prediction is essential for development planning, particularly in multiethnic countries such as Malaysia, yet conventional statistical approaches generally do not explicitly incorporate ethnic composition. This study aims to develop a population prediction model for Malaysia using a Random Forest Regressor that accounts for demographic factors and the composition of six ethnic groups. Historical data from 16 Malaysian states spanning 1981–2025 (673 state-year observations) were processed through feature engineering, including population lag variables, growth rate, and ethnic proportions, yielding 21 independent variables. The model was trained using a time-aware train-test split (80% training, 20% testing) and validated with 5-fold time series cross-validation. Results on the test set (2020–2025) showed strong performance, with R² = 0.9769, RMSE = 259 thousand people, MAE = 97 thousand people, and sMAPE = 3.17%. Feature importance analysis revealed that the previous year’s population (pop_lag1) and gender composition were the most dominant predictors. Projections indicate Malaysia’s population will reach approximately 38.5 million by 2030. These findings demonstrate that Random Forest with demographic-ethnic features can produce more accurate population predictions, providing a data-driven policy support tool for the Malaysian government.

References

Alghanmi, N., Alotaibi, R., Alshammari, S., et al. (2024). Population Fusion Transformer for Subnational Population Forecasting. International Journal of Computational Intelligence Systems, 17, 26. https://doi.org/10.1007/s44196-024-00413-y

Baker, J., Swanson, D., & Tayman, J. (2023). Boosted Regression Trees for Small-Area Population Forecasting. Population Research and Policy Review, 42(4), 51. https://doi.org/10.1007/s11113-023-09795-x

Breiman, L. (2001). Random Forests. Machine Learning, 45(1), 5–32. https://doi.org/10.1023/A:1010933404324

Department of Statistics Malaysia. (2024). Current Population Estimates, Malaysia 2024. Putrajaya: DOSM. https://www.dosm.gov.my

Department of Statistics Malaysia. (2025). Population Projections, Malaysia, 2020-2060. Putrajaya: DOSM. https://www.dosm.gov.my/portal-main/release-content/population-projections-2020-2060-

Elsawahli, H., Ahmad, F., & Ali, A. S. (2016). Demographic Transition and Sustainable Communities in Malaysia. Planning Malaysia, 14(5). https://doi.org/10.21837/pm.v14i5.191

Grossman, I., Wilson, T., & Temple, J. (2023). Forecasting Small Area Populations with Long Short-Term Memory Networks. Socio-Economic Planning Sciences, 89, 101658. https://doi.org/10.1016/j.seps.2023.101658

Hu, J., & Szymczak, S. (2023). A Review on Longitudinal Data Analysis with Random Forest. Briefings in Bioinformatics, 24(2), bbad002. https://doi.org/10.1093/bib/bbad002

Jouilil, Y., & Mentagui, D. (2023). Comparing the Forecasting Accuracy Metrics of SVR and ARIMA Algorithms for Non-Stationary Time Process. Mathematics and Statistics, 11(2), 294–299. https://doi.org/10.13189/ms.2023.110207

Kontopoulou, V. I., Panagopoulos, A. D., Kakkos, I., & Matsopoulos, G. K. (2023). A Review of ARIMA vs. Machine Learning Approaches for Time Series Forecasting in Data Driven Networks. Future Internet, 15(8), 255. https://doi.org/10.3390/fi15080255

Kwarteng, S. B., & Andreevich, P. A. (2024). Comparative Analysis of ARIMA, SARIMA and Prophet Model in Forecasting. Research & Development, 5(4), 110–120. https://doi.org/10.11648/j.rd.20240504.13

Liaw, A., & Wiener, M. (2002). Classification and Regression by randomForest. R News, 2(3), 18-22. https://journal.r-project.org/articles/RN-2002-022/

Narkedimilli, S., Raghav, S., Makam, S., Ayitapu, P., & Aswath Babu, H. (2024). Predicting Stellar Metallicity: A Comparative Analysis of Regression Models for Solar Twin Stars. arXiv. https://doi.org/10.48550/arXiv.2410.06709

Pedregosa, F., et al. (2011). Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research, 12, 2825–2830.

Shakila, C. V., & Khadar Babu, S. K. (2025). Evaluating and Contrasting Machine Learning and Statistical Techniques for Time Series Forecasting with Hyperparameter Optimization. [Jurnal dan volume/issue belum tersedia — artikel in press]. https://www.sciencedirect.com/science/article/pii/S2590123025023473

Tanmoy, F. M., Hossain, Z., Tasfia, O., et al. (2024). Machine Learning Modeling for Population Forecasting. In Innovations in Electrical and Electronics Engineering, ICEEE 2024. Springer, Singapore. https://doi.org/10.1007/978-981-97-9112-5_13

Wilson, T., Grossman, I., Alexander, M., Rees, P., & Temple, J. (2022). Methods for Small Area Population Forecasts: State-of-the-Art and Research Needs. Population Research and Policy Review, 41(3), 865–898. https://doi.org/10.1007/s11113-021-09671-6

Zhao, Z., Guo, H., Jiang, X., Zhang, Y., Lu, C., Zhang, C., & He, Z. (2025). A Population Spatialization Method Based on the Integration of Feature Selection and an Improved Random Forest Model. PLOS ONE, 20(4), e0321263. https://doi.org/10.1371/journal.pone.0321263

Downloads

Published

2025-12-30

How to Cite

Nurkholis Nurkholis, Andri Nofiar. Am, Hayatul Khairul Rahmat, & Rahmad Akbar. (2025). Prediksi Jumlah Penduduk Malaysia Berdasarkan Faktor Demografi dan Etnis Menggunakan Metode Random Forest. Jurnal Elektronika Dan Teknik Informatika Terapan ( JENTIK ), 3(4), 65–85. https://doi.org/10.59061/jentik.v3i4.1550

Similar Articles

1 2 3 4 > >> 

You may also start an advanced similarity search for this article.