The dynamic changes in weather patterns in Jambi City require an accurate temperature prediction system, thus this study aims to compare the performance of Random Forest and Support Vector Regression (SVR) algorithms in predicting daily maximum temperatures using weather data from 2020–2024 obtained from OpenMeteo with the application of Feature Engineering including lag and rolling window features. The test results indicate that the SVR model with a Radial Basis Function (RBF) kernel optimized using Grid Search (C=10, epsilon=0.2, gamma=0.01) significantly outperforms Random Forest based on a statistical Paired T-test (p-value < 0.05), yielding an R-squared (R²) value of 87.46%, Mean Absolute Error (MAE) of 0.3818 °C, and Root Mean Squared Error (RMSE) of 0.4964 °C compared to Random Forest's R² of 84.05%, where the previous day's temperature (lag) and three-day rolling average were identified as the most dominant predictors, leading to the recommendation of SVR as the more effective method for temperature prediction in the study area.
Copyrights © 2025