arXiv:2610.37022cs.LGOct 2026

Manuscript Offprint

arXiv:2610.37022

Crop Yield Prediction Using Regression Models: A Comparative Evaluation of Model Performance

Saptak Das, Arijit Sarkar, Soumik Neogi, Suborno Naskar

Saptak Das 1^{1}, Arijit Sarkar 2^{2}, Soumik Neogi 2^{2}, and Suborno Naskar 2^{2}

1^{1} Indian Institute of Science Education and Research Thiruvananthapuram, Kerala, India

2^{2} Department of Information Technology, MCKV Institute of Engineering, Howrah, West Bengal, India

Abstract. Reliable crop-yield prediction can support agricultural planning and resource allocation. This study evaluates five regression models for predicting crop yield from environmental, crop-related, and agricultural management variables. The dataset initially contained 1,000,000 observations and ten variables, with 231 observations having negative target values removed during preprocessing. Categorical variables were represented using one-hot encoding, and Boolean variables were converted into binary values. The models considered were multiple linear regression (LR), random-forest regression (RF), decision-tree regression (DT), ridge regression, and lasso regression. Their performance was evaluated using 80:20 and 70:30 training-testing splits based on the coefficient of determination ( R2R^{2}), mean squared error (MSE), and root mean squared error (RMSE). Applying an 80 : 20 split, LR achieved a test R2R^{2} of approximately 0.9130 and a test RMSE of 0.5008. Applying a 70 : 30 split, lasso regression yielded the highest test R2R^{2} (approx. 0.9131) and the lowest test RMSE (approx. 0.5008), with performance almost identical to LR and ridge regression. DT also showed improved test performance under the 70:30 split, whereas RF exhibited a substantial gap between training and testing performance. These results indicate that the evaluated linear regression model provides competitive baselines for this dataset. Further experimentation, including validation testing, will help determine the models' performance and predictability.

Keywords: Regression Analysis · Machine Learning · Agricultural Data Analytics · Crop Yield Prediction

1 Introduction

Crop yield is influenced by environmental, biological, and agricultural management factors. Accurate modeling of expected crop yields assists crop and field management, including planning and resource allocation. Predicting crop yields is a rapidly advancing area of agricultural science and machine learning, owing in part to the pervasiveness of crop diseases and the negative effect of diseases on crop yields [1,2]. However, the performance of prediction models is highly data-dependent and influenced by the training and evaluation strategies.

S. Das et al.

This study investigates crop-yield prediction using a dataset containing regional, soil, crop, weather, and management information. The predictor variables include region, soil type, crop type, rainfall, temperature, fertilizer use, irrigation use, weather condition, and days to harvest. The target variable, Yield_tons_per_hectare, represents crop yield in tonnes per hectare. During preprocessing, observations with negative target values were removed because they are not physically meaningful as crop yields in this study.

This dataset will require a decision on how to encode categorical variables. One-hot encoding converts each category into a binary indicator. Using this method results in 24 features. However, by removing one indicator for each of the four categorical variables, the feature representation can be reduced to 20. Removing the indicators results in a similar impact on the linear dependence among the indicator variables as including the reference category. Therefore, the way we represent the features affects the model specification and interpretation of the coefficients. This may have an effect on the predictive power of the model.

We look at five different regression methods: multiple linear regression, random-forest regression, decision-tree regression, ridge regression, and lasso regression. This allows us to evaluate a traditional linear approach with tree-based and regularized linear approaches. We evaluated our models with both an 80:20 and a 70:30 training-testing split. We used GridSearchCV and RandomizedSearchCV separately to tune the hyperparameters. We also evaluated models without any tuning. The performance of the models was evaluated with R2R^{2}, MSE, and RMSE, on both the training and testing sets.

The results demonstrate that, for both split ratios, LR, ridge regression and lasso regression achieved test R2R^{2} values of approximately 0.9130. Lasso regression achieved the lowest test MSE and RMSE for the 70:30 split. DT achieved a higher test R2R^{2} for the 70:30 split than for the 80:20 split. For RF, the training and test R2R^{2} values differed widely, indicating that, in this case, the training performance was not indicative of the test performance. Differences among some experimental settings (e.g., hyperparameter tuning, feature selection, etc.) lead to the following conclusions being drawn about the evaluated configurations rather than definitive statements regarding algorithm and split performance.

The main contributions of this study are:

  1. Preprocessing and representation of crop-yield data containing environmental, categorical, and agricultural management variables;

  2. Evaluation of five regression models under 80:20 and 70:30 training-testing splits using R2R^{2}, MSE, and RMSE;

  3. Comparative analysis of the observed training and testing performance, highlighting similarities among linear-model approaches and the generalisation gap observed for random-forest regression.