Computer Journal
Vol. 5 No. 1 (2027): February

Improving Rice Production Prediction Using XGBoost with Feature Engineering of Weather and Land Characteristics

Syafril Chairiansyah (Universitas Pamulang)
Sartika Lina Mulani Sitio (Universitas Pamulang)



Article Info

Publish Date
01 Feb 2027

Abstract

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






Journal Info

Abbrev

cj

Publisher

Subject

Computer Science & IT Control & Systems Engineering Decision Sciences, Operations Research & Management

Description

Computer Journal, e-ISSN: 2964-6219 and p-ISSN: 2964-6200 is a free and open-access journal published by the Research Division, YPMMA Institute, Indonesia. Computer Journal is an international, scientific, peer-reviewed, open-access computer science journal, including computer and network ...