Rice production prediction is needed to support the use of weather information and land characteristics in estimating production yields more measurably. This study aims to develop a rice production prediction model using XGBoost by utilizing weather factors and land characteristics engineering features. The dataset used consisted of 243 observations with 84 initial variables, which were divided into training and testing data with an 80:20 ratio. Feature engineering produced derivative features in the form of aggregation of rainfall, temperature, humidity, solar radiation, as well as nutrient ratios and soil texture. Furthermore, feature selection using XGBoost selected the 30 most relevant features to build an improved model. Hyperparameter optimization was performed using Optuna, while model performance was evaluated using MAE, RMSE, and R². The test results showed that the baseline model obtained an MAE of 0.9049, an RMSE of 1.1576, and an R² of 0.5843. The improved model produced an MAE of 0.9717, an RMSE of 1.2729, and an R² of 0.4974, indicating no performance improvement compared to the baseline. SHAP analysis showed that temp_Dec, N_to_K_Ratio, bulk density, and TMIN_Mean were the features that contributed most to the prediction.
Copyrights © 2027