Optimasi Model Random Forest Berbasis Particle Swarm Optimization untuk Peramalan Suhu Udara Harian di Kota Makassar

Authors

DOI:

https://doi.org/10.30605/proximal.v9i4.9875

Keywords:

Particle Swarm Optimization, Random Forest, Time Series, Suhu Udara, Optimasi

Abstract

Air temperature is an important element in meteorology that directly impacts community activities and urban environments. Daily fluctuations of air temperature in tropical urban areas such as Makassar are influenced by local weather factors and the Urban Heat Island phenomenon, making accurate forecasting crucial for supporting adaptation to extreme temperatures. This study develops and combines the Particle Swarm Optimization and Random Forest algorithms to predict daily air temperatures in Makassar. PSO was selected based on its ability to optimize machine learning models such as RF, which is highly dependent on its hyperparameter configuration. The data used were sourced from the NASA POWER portal for the 1984–2026 period, comprising 15,608 rows of daily observations with seven meteorological variables. The PSO optimization process with 15 particles reached convergence at the 8th iteration and yielded the optimal hyperparameter combination: n_estimators = 166, max_depth = 20, min_samples_split = 2, and min_samples_leaf = 1. The 80:20 data split scenario yielded the best results, with an MSE of 0.0203, an MAE of 0.0891, an R² of 0.9700, and a MAPE of 0.3180%. The previous day’s temperature feature (T2M_lag1) was the most significant feature, with an importance value of 79%. Overall, the PSO-RF model can be used as an alternative approach for modeling and monitoring daily air temperature in the city of Makassar.      

References

Adityo, T. N., Mukhtar, H., Firdaus, R., & Taufiq, R. M. (2026). Machine Learning untuk Prediksi Suhu: Sebuah Tinjauan. Jurnal Software Engineering and Information System (SEIS), 6(2), 178–184. https://doi.org/https://doi.org/10.37859/seis.v5i1

Al Bataineh, A., & Manacek, S. (2022). MLP-PSO Hybrid Algorithm for Heart Disease Prediction. Journal of Personalized Medicine, 12(1208), 1–22. https://doi.org/10.3390/jpm12081208

Aprilyanto, R. D., Gustian, R., Hernawan, M. H., Sumanto, & Budiman, A. S. (2025). Analisis Prediksi Kualitas Udara dengan Metode Random Forest Berdasarkan Data Cuaca. Jurnal Sains Informatika Terapan, 4(3), 824–828. https://doi.org/https://doi.org/10.62357/jsit.v4i3.670

Baihaqi, A. (2026). Peramalan Temperatur Udara Rata-Rata Bandara Juanda Menggunakan Algoritma Random Forest Regression. Jurnal Teknologi Dan Sistem Informasi Bisnis, 8(3), 325–332. https://doi.org/10.47233/jteksis.v8i3.49

Bian, K., & Priyadarshi, R. (2024). Machine Learning Optimization Techniques: A Survey, Classification, Challenges, and Future Research Issues. Archives of Computational Methods in Engineering, 2024(31), 4209–4233. https://doi.org/10.1007/s11831-024-10110-w

BMKG. (2026, Oktober 1). Anomali Suhu Udara Rata-Rata Tahun 2025—Klimatologi—BMKG. BMKG - Badan Meteorologi, Klimatologi, dan Geofisika. https://www.bmkg.go.id/iklim/anomali-suhu-udara-rata-rata-tahun-2025

Chai, F. (2024). A Prediction Model for Credit Risk Measurement of Small and Micro Enterprises Based On Particle Swarm Optimization random forest algorithm. International Journal of Computer Science and Information Technology, 3(1), 227–234. https://doi.org/10.62051/ijcsit.v3n1.29

Dudek, G. (2022). A Comprehensive Study of Random Forest for Short-Term Load Forecasting. Energies, 15(20), 7547. https://doi.org/10.3390/en15207547

Gad, A. G. (2022). Particle Swarm Optimization Algorithm and Its Applications: A Systematic Review. Archives of Computational Methods in Engineering, 29(5), 2531–2561. https://doi.org/10.1007/s11831-021-09694-4

Ho, C.-Y., Cheng, K.-S., & Ang, C.-H. (2023). Utilizing the Random Forest Method for Short-Term Wind Speed Forecasting in the Coastal Area of Central Taiwan. Energies, 16(3), 1374. https://doi.org/10.3390/en16031374

Meinofelia, E., Aryono Adhi, M., Fahruddin Rais, A., Djunaidi, D., & Setio Pribadi, F. (2025). Penggunaan Metode Random Forest, Support Vector Machine dan Artificial Neural Networks dalam Prediksi Suhu Udara di Balikpapan. BIOEDUSAINS: Jurnal Pendidikan Biologi dan Sains, 8(6), 1270–1281. https://doi.org/10.31539/9s0xxr05

Zahidin, I., Kanata, B., & Akbar, L. A. S. I. (2024). Perkiraan Suhu Menggunakan Algoritma Recurrent Neural Network Long Short Term Memory. Journal of Computer System and Informatics (JoSYC), 6(1), 244–252. https://doi.org/10.47065/josyc.v6i1.6242

Downloads

Published

2026-11-12

How to Cite

Optimasi Model Random Forest Berbasis Particle Swarm Optimization untuk Peramalan Suhu Udara Harian di Kota Makassar. (2026). Proximal: Jurnal Penelitian Matematika Dan Pendidikan Matematika, 9(4), 959-969. https://doi.org/10.30605/proximal.v9i4.9875