Optimasi Model Random Forest Berbasis Particle Swarm Optimization untuk Peramalan Suhu Udara Harian di Kota Makassar
DOI:
https://doi.org/10.30605/proximal.v9i4.9875Keywords:
Particle Swarm Optimization, Random Forest, Time Series, Suhu Udara, OptimasiAbstract
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
Issue
Section
License
Copyright (c) 2026 Faturachman Lukman, Hisyam Ihsan, Rahmat Syam, Nur Insani Maiwa

This work is licensed under a Creative Commons Attribution 4.0 International License.
In submitting the manuscript to the journal, the authors certify that:
- They are authorized by their co-authors to enter into these arrangements.
- The work described has not been formally published before, except in the form of an abstract or as part of a published lecture, review, thesis, or overlay journal.
- That it is not under consideration for publication elsewhere,
- That its publication has been approved by all the author(s) and by the responsible authorities – tacitly or explicitly – of the institutes where the work has been carried out.
- They secure the right to reproduce any material that has already been published or copyrighted elsewhere.
- They agree to the following license and copyright agreement.
License and Copyright Agreement
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution License (CC BY 4.0) that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work.












