Manuscript Offprint
arXiv:2610.37022Crop Yield Prediction Using Regression Models: A Comparative Evaluation of Model Performance
Saptak Das , Arijit Sarkar , Soumik Neogi , and Suborno Naskar
Indian Institute of Science Education and Research Thiruvananthapuram, Kerala, India
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 ( ), mean squared error (MSE), and root mean squared error (RMSE). Applying an 80 : 20 split, LR achieved a test of approximately 0.9130 and a test RMSE of 0.5008. Applying a 70 : 30 split, lasso regression yielded the highest test (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 , 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 values of approximately 0.9130. Lasso regression achieved the lowest test MSE and RMSE for the 70:30 split. DT achieved a higher test for the 70:30 split than for the 80:20 split. For RF, the training and test 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:
-
Preprocessing and representation of crop-yield data containing environmental, categorical, and agricultural management variables;
-
Evaluation of five regression models under 80:20 and 70:30 training-testing splits using , MSE, and RMSE;
-
Comparative analysis of the observed training and testing performance, highlighting similarities among linear-model approaches and the generalisation gap observed for random-forest regression.
Table 1: Variables in the supplied raw dataset.
| Variable | Role | Description |
|---|---|---|
| Region | Predictor | Geographic region (East, North, South, West) |
| Soil_Type | Predictor | Soil category (Chalky, Clay, Loam, Peaty, Sandy, Silt) |
| Crop | Predictor | Crop category (Barley, Cotton, Maize, Rice, Soybean, Wheat) |
| Rainfall_mm | Predictor | Rainfall in millimetres |
| Temperature_Celsius | Predictor | Temperature in degrees Celsius |
| Fertilizer_Used | Predictor | Boolean indicator of fertilizer use |
| Irrigation_Used | Predictor | Boolean indicator of irrigation use |
| Weather_Condition | Predictor | Weather category (Cloudy, Rainy, Sunny) |
| Days_to_Harvest | Predictor | Number of days to harvest |
| Yield_tons_per_hectare | Target | Crop yield in tonnes per hectare |
The dataset contains no missing values in any of its ten columns. It includes four region categories, six soil categories, six crop categories, and three weather categories. Rainfall ranges from approximately 100 to 1,000 mm, temperature from 15 to 40 degrees Celsius, and days to harvest from 60 to 149 days. The raw dataset contains 231 observations with negative target values, which were removed during preprocessing. After their removal, the target variable, Yield_tons_per_hectare, ranges from approximately 0.00041 to 9.963 tonnes per hectare across the remaining 999,769 observations.
3 Related Work
Machine learning techniques have been widely reviewed for agricultural applications, including crop and livestock management, disease detection, and yield
S. Das et al.
estimation [1]. A systematic review by van Klompenburg et al. discusses machine-learning methods used for crop-yield prediction and the factors affecting reported performance [2]. These reviews motivate careful consideration of data quality, predictor construction, validation strategy, and the generalisability of reported scores.
The algorithms considered here are established methods for supervised regression. Decision trees learn a sequence of feature-based partitions [3]; random forests aggregate predictions from many trees to reduce variance and improve robustness [4]. Linear regression provides an interpretable linear baseline. Ridge regression penalises the squared magnitude of coefficients and can stabilise estimates in the presence of correlated predictors [5], while lasso regression uses an absolute-value penalty that can shrink some coefficients to zero [6]. These models give comparative insights between linear and regularized linear models as well as tree based models.
4 Methodology
4.1 Data preprocessing
The preprocessing was performed in the following sequence:
-
Check for missing values: No values were found to be missing.
-
Remove negative values of the target variable: The dataset contained 1,000,000 rows. 231 observations were removed as their Yield_tons_per_hectare values were negative, leaving 999,769 observations for further analysis.
-
One hot encoding: Region, Soil_Type, Crop, and Weather_Condition were converted into binary indicators.
-
Boolean-to-binary conversion: Fertilizer_Used and Irrigation_Used were represented as 1 for True and 0 for False. This is a binary recoding of Boolean variables, not one-hot encoding.
-
Feature designs: The full one-hot design retained all 19 categorical indicator columns plus five other predictors (rainfall, temperature, fertilizer use, irrigation use, and days to harvest), giving 24 predictors. The reference-dropped design removed one of the indicators from each of the four categorical groups, leaving 20 predictors.
-
Target separation: Yield_tons_per_hectare was taken as the continuous target and was not included in the set of predictors.
The 24 feature model consists of 4 regional indicators, 6 soil indicators, 6 crop indicators, 3 weather indicators and 5 additional indicators. In the 20-feature design, one category from each group is used as the reference level. For ordinary least squares with an intercept, this avoids exact linear dependence among each set of one-hot indicators. While the complete representation might be of value for tree based models and regularized regression, interpretation of coefficients for the complete one-hot design should account for redundancy and treatment of the model with respect to the intercept and regularization.
4.2 Machine-learning models
The five regression methods considered were:
– Multiple linear regression (LR): Estimates a linear relationship between the continuous target and a set of predictors
– Random forest regression (RF): Uses the average of predictions of an ensemble of decision trees [4].
– Decision-tree regression (DT): Partitions the feature space into regions and predicts a value for each terminal region [3].
– Ridge regression: Minimises squared error with coefficient penalty [5].
– Lasso regression: Minimises squared error with coefficient penalty [6].
4.3 Training and hyperparameter-search protocol
Two train–test ratios were considered: 80:20 and 70:30. For each feature design, experiments were conducted both without hyperparameter tuning and with hyperparameter tuning using RandomizedSearchCV or GridSearchCV. The configuration demonstrating better predictive performance was retained for reporting. Hyperparameter search was conducted using the training data only, with the test set held out for final evaluation. The best hyperparameters were recorded for each model where applicable. The reported results therefore represent the selected configurations rather than a uniform comparison of tuned and untuned models.
4.4 Evaluation metrics
For each algorithm , mean squared error, and root mean squared error were calculated.
The coefficient of determination is
where and are the observed and predicted yields respectively and is the observed mean. The mean squared error and root mean squared error are
Higher test and lower test MSE/RMSE indicate better performance, provided the models are evaluated on the same test observations.
5 Experimental Study
5.1 Experimental Configurations
The experiments evaluated five regression models: multiple linear regression (LR), random-forest regression (RF), decision-tree regression (DT), ridge regression, and lasso regression. Two training-testing ratios, namely 80:20 and 70:30,
S. Das et al.
were considered. Model performance was evaluated using , mean squared error, and root mean squared error. Training metrics were used to assess the fit on the training data, whereas testing metrics were used to compare predictive performance on unseen observations.
The experimental configurations were not identical across all models. For the 80:20 split, LR used 20 predictors without hyperparameter tuning, RF used 24 predictors without tuning, DT used 24 predictors with RandomizedSearchCV, ridge regression used 24 predictors without tuning, and lasso regression used 24 predictors with GridSearchCV. In the 70:30 split, the five models used 24 predictors, of which, for Lasso regression and Decision Trees, Grid Search was used to tune and for Linear regression, Ridge regression and Random forest regression, no hyperparameter tuning was done. The configurations are summarised in Table 2.
Table 2: Experimental configurations for the two train–test splits.
| Model | 80:20 split | 70:30 split |
|---|---|---|
| LR | 20 predictors; untuned | 24 predictors; untuned |
| RF | 24 predictors; untuned | 24 predictors; untuned |
| DT | 24 predictors; random search | 24 predictors; grid search |
| Ridge | 24 predictors; untuned | 24 predictors; untuned |
| Lasso | 24 predictors; grid search | 24 predictors; grid search |
5.2 Results for the 80:20 Train–Test Split
The training and testing results for the 80:20 split are presented in Table 3. LR, Ridge Regression, and Lasso Regression achieved very similar test (approximately 0.9130), with the test MSE (approximately 0.250777) and RMSE (approximately 0.500776) of the testing set. Test performance of ridge and lasso regression was almost the same. The minor differences among the three models indicate that their predictive performance was similar in the investigated configurations.
RF had the highest training (approximately 0.9871) and lowest training errors. However, its test decreased to approximately 0.9077, and its test RMSE increased to approximately 0.5157. This training–testing gap suggests that RF fitted the training observations more closely than the other models but generalised less effectively on the held-out test set. DT achieved a test of approximately 0.9100, placing its performance between RF and the three linear-model variants.
Table 3: Regression performance for the 80:20 train–test split.
| Model | Tr. | Tr. MSE | Tr. RMSE | Te. | Te. MSE | Te. RMSE |
|---|---|---|---|---|---|---|
| LR | 0.9129706418 | 0.2504014163 | 0.5004012553 | 0.9130137709 | 0.2507766686 | 0.5007760663 |
| RF | 0.9870627444 | 0.03722315308 | 0.1929330275 | 0.9077351184 | 0.2659947428 | 0.5157467817 |
| DT | 0.9161022839 | 0.2413910359 | 0.4913156174 | 0.909994562 | 0.2594808871 | 0.5093926649 |
| Ridge Regression | 0.9129706417 | 0.2504014163 | 0.5004012553 | 0.9130137621 | 0.250776694 | 0.5007760917 |
| Lasso Regression | 0.9129703752 | 0.2504021831 | 0.5004020215 | 0.9130138109 | 0.2507765533 | 0.5007759512 |
Table 4: Model configurations and hyperparameters for the 80:20 train–test split.
| Model | Methodology (80:20) | Hyperparameter (If any) |
|---|---|---|
| LR | 20 features; without hyperparameter tuning | — |
| RF | 24 features; without hyperparameter tuning | — |
| DT | 24 features; with hyperparameter tuning; RandomizedSearchCV | max_depth = 52min_samples_split = 16min_samples_leaf = 93 |
| Ridge Regression | 24 features; without hyperparameter tuning | — |
| Lasso Regression | 24 features; with hyperparameter tuning; GridSearchCV | alpha = 0.0001 |
The results for the selected 80:20 train–test configuration are presented in Table 3. Detailed results for alternative feature sets and hyperparameter-tuning strategies are provided in the Appendix (Tables 7–12).
5.3 Results for the 70:30 Train–Test Split
The results for the 70:30 split are presented in Table 5. LR, ridge regression, and lasso regression again exhibited very similar test performance, with test values close to 0.9131. Lasso regression recorded the lowest test MSE (approximately 0.250770), while LR recorded a test of approximately 0.913092. The differences between these linear-model variants were small.
DT achieved a test of approximately 0.9120 and a test RMSE of approximately 0.5040, improving upon its test performance under the 80:20 split.
S. Das et al.
RF continued to show a substantial difference between training and testing performance: its training was approximately 0.9870, whereas its test was approximately 0.9077. This pattern is consistent with a possible generalisation gap.
Table 5: Regression performance for the 70:30 train–test split.
| Model | Tr. | Tr. MSE | Tr. RMSE | Te. | Te. MSE | Te. RMSE |
|---|---|---|---|---|---|---|
| LR | 0.9129304560 | 0.2503510489 | 0.5003509258 | 0.9130916682 | 0.2507726187 | 0.5007720227 |
| RF | 0.9870488887 | 0.0372383284 | 0.1929723516 | 0.9077328853 | 0.2662353023 | 0.5159799437 |
| DT | 0.9134832049 | 0.2487617300 | 0.4987601929 | 0.9119788539 | 0.2539836270 | 0.5039678829 |
| Ridge Regression | 0.912930456 | 0.25035104897 | 0.5003509258 | 0.913091663 | 0.25077263296 | 0.500772036 |
| Lasso Regression | 0.9129301770 | 0.2503518512 | 0.500351727 | 0.9130925912 | 0.2507699556 | 0.500769363 |
Table 6: Model configurations and hyperparameters for the 70:30 train–test split.
| Model | Methodology (70:30) | Hyperparameter (If any) |
|---|---|---|
| LR | 24 features; without hyperparameter tuning | — |
| RF | 24 features; without hyperparameter tuning | — |
| DT | 24 features; with hyperparameter tuning; GridSearchCV | max_depth = 10min_samples_split = 2min_samples_leaf = 4 |
| Ridge Regression | 24 features; without hyperparameter tuning | — |
| Lasso Regression | 24 features; with hyperparameter tuning; GridSearchCV | alpha = 0.0001 |
The results for the selected 70:30 train–test configuration are presented in Table 5. Detailed results for alternative feature sets and hyperparameter-tuning strategies are provided in the Appendix (Tables 13–18).
5.4 Comparative Discussion
Across the two train–test splits, the test values of LR, ridge regression, and lasso regression remained close to 0.913. Their test RMSE values were approx-imately 0.501, indicating similar prediction errors on the scale of the target variable. Lasso regression yielded the lowest displayed test MSE and RMSE for the 70:30 experiment, although its advantage over LR and ridge regression was marginal.
In contrast, RF achieved substantially better training scores than testing scores, suggesting that its fitted predictions may be more sensitive to the training observations. DT showed a smaller training–testing gap under the 70:30 split than under the 80:20 split and obtained a higher test in the 70:30 experiment.
For completeness, the detailed regression performance results for all evaluated experimental configurations are provided in the Appendix. These results cover the 80:20 and 70:30 train–test splits, the use of 20 and 24 features, and the three hyperparameter-tuning settings: no hyperparameter tuning, RandomizedSearchCV, and GridSearchCV. The Appendix enables comparison of the evaluated models across these configurations, while the main text focuses on the selected experimental results.
6 Conclusion and Future Scope
This research examined five regression models of crop-yield prediction using environmental, crop and agricultural management variables. The experiments considered 80:20 and 70:30 train–test splits and evaluated the models using , MSE, and RMSE. It was found that LR, ridge regression, and lasso regression showed similar test performance, with values close to 0.913 and RMSE values of approximately 0.501. Lasso regression produced the lowest reported test MSE and RMSE in the 70:30 experiment, although the differences from LR and ridge regression were small. DT showed competitive results, especially under the 70:30 split. RF, in general, showed high training results but comparatively low test results, thus showing a case of over-fitting.
The results indicate that the linear model provides a strong baseline for the dataset under consideration. However, the experiments used various configurations for some models and, therefore, the results can be interpreted as comparisons of the configurations rather than evidence to support the overall superiority of the algorithm or train-test ratio. Moreover, results show predictive performance over the dataset.
In future work, experiments will be designed to study the impact of diverse configurations, controlled data partitions and systematic hyperparameter tuning on all the models involved. The stability of the results can be evaluated by using a repeated train-test split or cross-validation of the training data. Other methods of regression, for example, boosting methods, can be assessed. Also, methods to determine feature importance can help identify the impact of variables such as rainfall, soil type and crop type, as well as irrigation, fertilizer use and harvesting, on predicted yield. Assessing the models on independently collected data would help determine how well the models generalize. The models would need to be assessed on data collected during varying growing seasons and in different locales. The models, ultimately, should help inform agricultural decisions.
S. Das et al.
7 Additional Experimental Results (Appendix)
This appendix presents the results of the alternative experimental configurations evaluated in this study, covering the 80:20 and 70:30 train–test splits, the use of 20 and 24 features, and models evaluated with and without hyperparameter tuning using RandomizedSearchCV and GridSearchCV.
Table 7: Regression performance for the 80:20 train–test split without hyperparameter tuning using 20 features.
| Model | Tr. | Tr. MSE | Tr. RMSE | Te. | Te. MSE | Te. RMSE |
|---|---|---|---|---|---|---|
| LR | 0.9129706418 | 0.2504014163 | 0.5004012553 | 0.9130137709 | 0.2507766686 | 0.5007760663 |
| RF | 0.987018294 | 0.03735104615 | 0.1932641874 | 0.907479335 | 0.2667321528 | 0.5164611823 |
| DT | 1 | 0 | 0 | 0.8156732457 | 0.5314042218 | 0.7289747745 |
| Ridge Regression | 0.9129706417 | 0.2504014163 | 0.5004012553 | 0.9130137621 | 0.250776694 | 0.5007760917 |
| Lasso Regression | 0.8847181529 | 0.3304832303 | 0.5748767088 | 0.885137457 | 0.3323514293 | 0.5764992882 |
Table 8: Regression performance for the 80:20 train–test split using RandomizedSearchCV with 20 features.
| Model | Tr. | Tr. MSE | Tr. RMSE | Te. | Te. MSE | Te. RMSE |
|---|---|---|---|---|---|---|
| LR | 0.9129705048 | 0.2504018102 | 0.5004016488 | 0.9130139399 | 0.2507761815 | 0.50077558 |
| RF | 0.9441125995 | 0.1607995798 | 0.4009982291 | 0.9092718421 | 0.2615644502 | 0.5114337202 |
| DT | 0.9160686443 | 0.2414878239 | 0.4914141063 | 0.9100197862 | 0.2594081671 | 0.5093212808 |
| Ridge Regression | 0.9129706415 | 0.250401417 | 0.500401256 | 0.9130137194 | 0.2507768169 | 0.5007762144 |
| Lasso Regression | 0.5846677618 | 1.194996525 | 1.093158966 | 0.5836824697 | 1.200221281 | 1.095546111 |
Table 9: Regression performance for the 80:20 train–test split using GridSearchCV with 20 features.
| Model | Tr. | Tr. MSE | Tr. RMSE | Te. | Te. MSE | Te. RMSE |
|---|---|---|---|---|---|---|
| LR | 0.9129705048 | 0.2504018102 | 0.5004016488 | 0.9130139399 | 0.2507761815 | 0.50077558 |
| RF | 0.9441125995 | 0.1607995798 | 0.4009982291 | 0.9092718421 | 0.2615644502 | 0.5114337202 |
| DT | 0.9134173038 | 0.2491162775 | 0.4991154952 | 0.9120229454 | 0.2536331658 | 0.503620061 |
| Ridge Regression | 0.9129706417 | 0.2504014163 | 0.5004012553 | 0.9130137621 | 0.250776694 | 0.5007760917 |
| Lasso Regression | 0.9129703047 | 0.250402386 | 0.5004022242 | 0.9130134481 | 0.2507775991 | 0.5007769954 |
Table 10: Regression performance for the 80:20 train–test split without hyper-parameter tuning using 24 features.
| Model | Tr. | Tr. MSE | Tr. RMSE | Te. | Te. MSE | Te. RMSE |
|---|---|---|---|---|---|---|
| LR | 0.9129706418 | 0.2504014163 | 0.5004012553 | 0.9130137709 | 0.2507766686 | 0.5007760663 |
| RF | 0.9870627444 | 0.03722315308 | 0.1929330275 | 0.9077351184 | 0.2659947428 | 0.5157467817 |
| DT | 0.583743874773 | 1.504864234 | 1.226729487 | 0.8151677147 | 0.5328616407 | 0.7299737261 |
| Ridge Regression | 0.9129706417 | 0.2504014163 | 0.5004012553 | 0.9130137621 | 0.250776694 | 0.5007760917 |
| Lasso Regression | 0.8847181529 | 0.3304832303 | 0.5748767088 | 0.885137457 | 0.3323514293 | 0.5764992882 |
Table 11: Regression performance for the 80:20 train–test split using RandomizedSearchCV with 24 features.
| Model | Tr. | Tr. MSE | Tr. RMSE | Te. | Te. MSE | Te. RMSE |
|---|---|---|---|---|---|---|
| LR | 0.9129705515 | 0.2504016758 | 0.5004015146 | 0.9130136856 | 0.2507769147 | 0.500776312 |
| RF | 0.941970508 | 0.1669628189 | 0.4086108404 | 0.9064520849 | 0.26969366 | 0.5193203828 |
| DT | 0.9161022839 | 0.2413910359 | 0.4913156174 | 0.909994562 | 0.2594808871 | 0.5093926649 |
| Ridge Regression | 0.9129706415 | 0.250401417 | 0.500401256 | 0.9130137195 | 0.2507768168 | 0.5007762143 |
| Lasso Regression | 0.5846677618 | 1.194996525 | 1.093158966 | 0.5836824697 | 1.200221281 | 1.095546111 |
S. Das et al.
Table 12: Regression performance for the 80:20 train–test split using GridSearchCV with 24 features.
| Model | Tr. | Tr. MSE | Tr. RMSE | Te. | Te. MSE | Te. RMSE |
|---|---|---|---|---|---|---|
| LR | 0.9129705515 | 0.2504016758 | 0.5004015146 | 0.9130136856 | 0.2507769147 | 0.500776312 |
| RF | 0.941970508 | 0.1669628189 | 0.4086108404 | 0.9064520849 | 0.26969366 | 0.5193203828 |
| DT | 0.9134186857 | 0.2491123014 | 0.499111512 | 0.9120196948 | 0.2536425372 | 0.5036293649 |
| Ridge Regression | 0.9129706417 | 0.2504014163 | 0.5004012553 | 0.9130137621 | 0.250776694 | 0.5007760917 |
| Lasso Regression | 0.9129703752 | 0.2504021831 | 0.5004020215 | 0.9130138109 | 0.2507765533 | 0.5007759512 |
Table 13: Regression performance for the 70:30 train–test split without hyper-parameter tuning using 20 features.
| Model | Tr. | Tr. MSE | Tr. RMSE | Te. | Te. MSE | Te. RMSE |
|---|---|---|---|---|---|---|
| LR | 0.912930456 | 0.2503510489 | 0.5003509258 | 0.9130916683 | 0.2507726187 | 0.5007720227 |
| RF | 0.9870013283 | 0.03737507915 | 0.193326354 | 0.9074236222 | 0.2671276761 | 0.5168439572 |
| DT | 1 | 0 | 0 | 0.8159752718 | 0.531000447 | 0.7286977748 |
| Ridge Regression | 0.912930456 | 0.250351049 | 0.5003509258 | 0.9130916633 | 0.250772633 | 0.500772037 |
| Lasso Regression | 0.585175823 | 1.192743905 | 1.092128154 | 0.5858101289 | 1.195138332 | 1.093223825 |
Table 14: Regression performance for the 70:30 train–test split using RandomizedSearchCV with 20 features.
| Model | Tr. | Tr. MSE | Tr. RMSE | Te. | Te. MSE | Te. RMSE |
|---|---|---|---|---|---|---|
| LR | 0.9129301202 | 0.2503520145 | 0.5003518907 | 0.9130924958 | 0.2507702309 | 0.5007696385 |
| RF | 0.9440043794 | 0.1610042011 | 0.4012532879 | 0.9094332743 | 0.2613288568 | 0.5112033419 |
| DT | 0.9159929172 | 0.2415455547 | 0.4914728422 | 0.9101203013 | 0.2593464514 | 0.509260691 |
| Ridge Regression | 0.9129304557 | 0.25035105 | 0.5003509268 | 0.9130916393 | 0.2507727024 | 0.5007721063 |
| Lasso Regression | 0.5842710734 | 1.195345331 | 1.093318495 | 0.584907467 | 1.195345331 | 1.09331818164 |
Table 15: Regression performance for the 70:30 train–test split using GridSearchCV with 20 features.
| Model | Tr. | Tr. MSE | Tr. RMSE | Te. | Te. MSE | Te. RMSE |
|---|---|---|---|---|---|---|
| LR | 0.9129301202 | 0.2503520145 | 0.5003518907 | 0.9130924958 | 0.2507702309 | 0.5007696385 |
| RF | 0.9440043794 | 0.1610042011 | 0.4012532879 | 0.9094332743 | 0.2613288568 | 0.5112033419 |
| DT | 0.913482506 | 0.2487637397 | 0.4987622076 | 0.9119783059 | 0.2539852084 | 0.5039694518 |
| Ridge Regression | 0.912930456 | 0.250351049 | 0.5003509258 | 0.9130916633 | 0.250772633 | 0.500772037 |
| Lasso Regression | 0.9129301542 | 0.2503519168 | 0.5003517936 | 0.9130926394 | 0.2507698165 | 0.5007692248 |
Table 16: Regression performance for the 70:30 train–test split without hyper-parameter tuning using 24 features.
| Model | Tr. | Tr. MSE | Tr. RMSE | Te. | Te. MSE | Te. RMSE |
|---|---|---|---|---|---|---|
| LR | 0.912930456 | 0.2503510489 | 0.5003509258 | 0.9130916683 | 0.2507726187 | 0.5007720227 |
| RF | 0.9870488888 | 0.03723832849 | 0.1929723516 | 0.9077328853 | 0.2662353024 | 0.5159799438 |
| DT | 0.58374388383 | 1.504864284 | 1.2267282564 | 0.8157054124 | 0.5317791221 | 0.7292318713 |
| Ridge Regression | 0.912930456 | 0.250351049 | 0.5003509258 | 0.9130916634 | 0.250772633 | 0.500772036 |
| Lasso Regression | 0.585175823 | 0.585776991 | 0.7653606934 | 0.5858101289 | 1.195138332 | 1.093223366 |
Table 17: Regression performance for the 70:30 train–test split using RandomizedSearchCV with 24 features.
| Model | Tr. | Tr. MSE | Tr. RMSE | Te. | Te. MSE | Te. RMSE |
|---|---|---|---|---|---|---|
| LR | 0.912930186 | 0.2503518254 | 0.5003517018 | 0.9130922801 | 0.2507708534 | 0.5007702601 |
| RF | 0.9416447868 | 0.1677887372 | 0.4096202354 | 0.906353173 | 0.2702164405 | 0.5198234705 |
| DT | 0.9160351483 | 0.2414241278 | 0.4913492931 | 0.9100678899 | 0.2594976836 | 0.5094091515 |
| Ridge Regression | 0.9129304557 | 0.25035105 | 0.5003509268 | 0.9130916393 | 0.2507727024 | 0.5007721063 |
| Lasso Regression | 0.5842710734 | 1.195345331 | 1.093318495 | 0.584907467 | 1.197742949 | 1.094414432 |
S. Das et al.
Table 18: Regression performance for the 70:30 train–test split using Grid-SearchCV with 24 features.
| Model | Tr. | Tr. MSE | Tr. RMSE | Te. | Te. MSE | Te. RMSE |
|---|---|---|---|---|---|---|
| LR | 0.912930186 | 0.2503518254 | 0.5003517018 | 0.9130922801 | 0.2507708534 | 0.5007702601 |
| RF | 0.9416447868 | 0.1677887372 | 0.4096202354 | 0.906353173 | 0.2702164405 | 0.5198234705 |
| DT | 0.913483205 | 0.2487617301 | 0.4987601929 | 0.9119788539 | 0.253983627 | 0.5039678829 |
| Ridge Regression | 0.912930456 | 0.250351049 | 0.5003509258 | 0.9130916634 | 0.250772633 | 0.5007720369 |
| Lasso Regression | 0.912930177 | 0.2503518512 | 0.5003517275 | 0.9130925912 | 0.2507699556 | 0.5007693637 |
References
-
K. G. Liakos, P. Busato, D. Moshou, S. Pearson, and D. Bochtis, "Machine learning in agriculture: A review," Sensors, vol. 18, no. 8, article 2674, 2018. doi: 10.3390/s18082674.
-
T. van Klompenburg, A. Kassahun, and C. Catal, "Crop yield prediction using machine learning: A systematic literature review," Computers and Electronics in Agriculture, vol. 177, article 105709, 2020. doi: 10.1016/j.compag.2020.105709.
-
J. R. Quinlan, "Induction of decision trees," Machine Learning, vol. 1, pp. 81–106, 1986. doi: 10.1007/BF00116251.
-
L. Breiman, "Random forests," Machine Learning, vol. 45, pp. 5–32, 2001. doi: 10.1023/A:1010933404324.
-
A. E. Hoerl and R. W. Kennard, "Ridge regression: Biased estimation for nonorthogonal problems," Technometrics, vol. 12, no. 1, pp. 55–67, 1970. doi: 10.1080/00401706.1970.10488634.
-
R. Tibshirani, "Regression shrinkage and selection via the lasso," Journal of the Royal Statistical Society: Series B, vol. 58, no. 1, pp. 267–288, 1996. doi: 10.1111/j.2517-6161.1996.tb02080.x.
-
S. O. Attakorah, "Agriculture Crop Yield," Kaggle. Available: https://www.kaggle.com/datasets/samuelotiattakorah/agriculture-crop-yield.