Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Sensitivity of machine learning regression models to data structure and quality in crop yield prediction

  • Mahoukpégo Luc Zinzinhédo ,

    Roles Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Software, Writing – original draft, Writing – review & editing

    zinzinhedoluc@gmail.com

    Affiliation Laboratoire de Biomathématiques et d’Estimations Forestières, Faculté des Sciences Agronomiques, Université d’Abomey-Calavi, Abomey-Calavi, Atlantique, Bénin

  • Mèvognon Firmin Mitchozounnou,

    Roles Formal analysis, Software

    Affiliation Laboratoire de Biomathématiques et d’Estimations Forestières, Faculté des Sciences Agronomiques, Université d’Abomey-Calavi, Abomey-Calavi, Atlantique, Bénin

  • Kolawolé Valère Salako,

    Roles Software, Supervision, Visualization

    Affiliation Laboratoire de Biomathématiques et d’Estimations Forestières, Faculté des Sciences Agronomiques, Université d’Abomey-Calavi, Abomey-Calavi, Atlantique, Bénin

  • Romain Glèlè Kakaï

    Roles Conceptualization, Methodology, Supervision, Validation, Visualization

    Affiliation Laboratoire de Biomathématiques et d’Estimations Forestières, Faculté des Sciences Agronomiques, Université d’Abomey-Calavi, Abomey-Calavi, Atlantique, Bénin

Abstract

Accurate crop yield prediction is essential for agricultural planning, yet machine learning (ML) models remain highly sensitive to the quality and structure of input data. This study uses simulated datasets to systematically investigate how data structure (sample size and number of predictors), data imperfections (missing values and multicollinearity), and pre-processing methods (imputation techniques and principal component analysis) influence ML regression performance. The performance of ML-based models (RF, SVM, MLR, XGBoost, LightGBM, NNet, and kNN) on the pre-processed data was evaluated. In total, each algorithm was tested on 1,728 datasets and pre-processing scenarios, yielding 12,096 model-scenario evaluations across the seven ML algorithms. Results show that missing data decreases performance (R2 drops by up to 20.63%; MAE increases by 12.67%), while multicollinearity may inflate R2 values despite poorer MAE performance. Larger sample sizes consistently improve prediction accuracy (R2 = +18.87%; MAE = −8.16%), whereas more predictors generally reduce it (R2 = −8.47%; MAE = +44.74%). Regression-based imputation improved both R2 and MAE the most, while RF demonstrated greater robustness across varying conditions. These simulation findings were further validated on five real-world crop datasets (Maize, Yam, Cassava, Sorghum, and Peanuts), confirming that despite RF remains the safest and most robust default, no single pre-processing strategy is universally optimal and that the selection of imputation method and dimensionality reduction must be strictly contingent upon the dataset’s specific missingness rate and correlation structure. Overall, this study highlights the complex interplay between data characteristics and pre-processing, urging the development of clearer guidelines for applying ML to agricultural datasets.

Introduction

In statistical modeling, real-world datasets often present a variety of imperfections (such as multicollinearity, limited sample sizes, missing values, outliers, or duplicate records) that significantly challenge robust analysis [1,2]. With such a dataset, statistical analysis is not straightforward, and the results are likely to be biased [3]. These imperfections are pervasive across disciplines, including medicine [46], epidemiology [7,8], agronomy [911], psychology [12], geography [13], astronomy [14], water science [15], etc. Performing a statistical analysis with an imperfect dataset, without any pre-processing, satisfies the garbage in, garbage out (GIGO) of George Fuechsel [16,17]. Therefore, the management of imperfections in datasets deserves particular attention.

Pre-processing refers to a set of techniques aimed at improving data quality before analysis. This includes imputation of missing values, normalization, and feature extraction or reduction. Yet, the choice of any of these techniques is still subjective. For example, in crop yield prediction (CYP), while some studies lack data to achieve better yield prediction [18,19], some eliminate data points with missing values and outliers [20,21] and others impute them with median [22], Expectation–Maximization technique [23], moving average method also know as arithmetic average or mean method [24], regression [25], etc. Other imputation methods include linear interpolation [26], average imputation by nearby districts, k-nearest neighbor [27], random forest-based method [28], multiple imputation by chained equations [29], etc. To improve the accuracy in statistical analysis, several studies evaluate and propose methods for data pre-processing. For instance, to deal with uncertain, imprecise, or missing values, several approaches have been proposed, among which the fuzzy K-nearest neighbor classifier developed by [30] and a nonparametric iterative imputation algorithm [31]. [25] found that among classical statistical imputation methods like Arithmetic Average Replacement, Median Imputation, Linear Interpolation, and Average Imputation by Nearby Districts, the Arithmetic Average Replacement method provides better results, while among Machine learning-based imputations methods like: k-nearest neighbor, Random Forest-based method, linear regression, and the Multiple Imputation by Chained Equations, the Random Forest-based method is better.

Similarly, data normalization is a common pre-processing technique. While the true scale is used in some studies [32,33], other studies rescale predictors using several techniques such as min-max [34,35] and z-score [36,37]. Moreover, when extracting information from a dataset, principal components are also employed [38,39] for instance, to address multicollinearity [40].

Pre-processing decisions have been shown to profoundly affect Machine Learning (ML) performance. For example, [41] investigated how feature selection, feature extraction, and their interaction affect ML performance in predicting crop yield. Findings show that models perform better when both feature selection and feature extraction are applied, instead of only one of them. Similarly, [15] examined the impact of the variational mode decomposition, wavelet packet decomposition, complete ensemble empirical mode decomposition with adaptive noise, extreme-point symmetric mode decomposition, and singular spectrum analysis on the performance of the gated recurrent unit network. They found that the variational mode decomposition and the wavelet packet decomposition perform better than the others, indicating that the models perform differently in different conditions. The number of predictor variables is also critical for the performance of the ML. Some models are based on a large number of features: more than 100 (e.g., 160 – [42], 165 – [43]), while others are based on fewer than 20 features (3 – [44], 18 – [32]). This diversity in the choice of methods can substantially affect the results.

The same challenge is real in health science. For instance, when predicting diabetes disease cases: classical baselines were outperformed in handling imperfect data [45,46]. Indeed, in diabetes prediction, missing values, limited labeled data, high-dimensional feature spaces, and outliers have been identified as primary obstacles to reliable predictive performance, challenges that are structurally analogous to those encountered in agricultural yield prediction. Unlike clinical settings where data collection protocols are relatively standardised, however, field trial data are further characterised by spatial heterogeneity, seasonal variability, and low observation-to-predictor ratios, making the consequences of suboptimal pre-processing choices considerably more severe and less predictable. Despite this growing body of work, the field lacks a systematic understanding of how data structure (e.g., sample size, number of predictors), imperfections (e.g., missing data, multicollinearity), and pre-processing methods interact to influence ML model performance. Few studies have simultaneously considered the combined effect of these factors, making it unclear which ML algorithms are most robust under different conditions.

Data pre-processing techniques were demonstrated to significantly improve ML-based models, and some may decrease the models’ performance [47], meaning that an inappropriate choice of the pre-processing technique may lead to an inaccurate prediction. Similarly, several studies like [48] show the impact of number of variables, and propose data dimension reduction methods, including the principal component analysis. This simulation-based study addresses that gap. We assess the individual and joint effects of data structure, imperfections, and pre-processing on the predictive performance of seven ML models: random forest (RF), support vector machine (SVM), multiple linear regression (MLR), Extreme Gradient Boosting (XGBoost), Light Gradient Boosting Machine (LGBM), Neural Networks (NNet), and k-nearest neighbors (kNN). Using synthetic data based on real-world patterns, we simulate various scenarios involving different levels of missingness, multicollinearity, predictor counts, and sample sizes. We then apply a range of imputation techniques and principal component analysis (PCA) for pre-processing and evaluate the models through repeated random subsampling validation. This approach allows us to (i) Compare the robustness and performance of the selected ML algorithms; (ii) Quantify the sensitivity of model performance to variations in data structure and quality; (iii) Identify key interactions between pre-processing techniques and data characteristics. The results of this study will inform best practices in the pre-processing of imperfect datasets for ML-based prediction, especially in the context of crop yield modeling.

Methods

The overall approach used is depicted in Fig 1. The simulation process was based on real data downloaded online (from Copernicus Climate Change Service). Missing values were introduced into the simulated data, and pre-processing methods were applied. After the pre-processing, a repeated random subsampling validation approach was used to train and test seven ML techniques, namely random forest (RF), support vector machine (SVM), multilinear regression (MLR), Extreme Gradient Boosting (XGBoost), Light Gradient Boosting Machine (LGBM), Neural Networks (NNet), and k-nearest neighbor (kNN).

thumbnail
Fig 1. Simulation and evaluation workflow of ML performance under data imperfections.

https://doi.org/10.1371/journal.pone.0353938.g001

Simulation process

Original data acquisition and pre-processing

The original data used were related to weather and were downloaded from the Copernicus Climate Change Service database (https://climate.copernicus.eu/) as NetCDF files. These files gather the bioclimatic variables (S1 Table), water vapor pressure, and wind speed, covering the period from 1995 to 2020 worldwide. They were imported into the R programming language for pre-processing. We transformed the NetCDF files into raster files using terra package. We extracted the values of each variable from these rasters for the Benin Republic and organized them as a data frame stored in an MS Excel sheet.

Generating data

The downloaded data were not used directly. Only the mean values of each variable and the linear correlation coefficient (r) among them were extracted from the database. The mean values were used to simulate many randomly distributed data with three sample sizes (100, 300, and 500). The coefficients r were used to simulate the covariance matrix, which introduces the correlation rate in the datasets. Different datasets of different numbers of predictors (5, 8, and 12) were simulated. Three levels of r were considered:

  • Low correlation rate: .
  • Moderate correlation rate: .
  • Migh correlation rate: .

The simulation was made using the mvrnorm function from the MASS package in R.

Our purpose being to evaluate the performance of ML in explaining the relationship between the response variable (y) and predictors (the matrix X), we used the non-linear Eq (1). This formulation aims to challenge ML algorithms with diverse functional relationships (linear, non-linear, and interactive), ensuring a robust evaluation of their predictive capabilities. To simulate y, we designed a composite non-linear function inspired by [49], that incorporates a range of common patterns observed in real-world data. Specifically, the function includes (i) an additive quadratic terms to model non-linear effects of individual predictors, (ii) an inverse exponential product term to reflect complex multiplicative interactions (), and (iii) a logarithmic term to simulate the cumulative contribution of all predictors, while controlling the effect of extreme values. For ,

(1)

Introducing imperfection

Previously, we generated datasets with different collinearity rates between the predictors. We had low, moderate, and high correlation rates mimicking the multicollinearity in any real datasets. That was the first imperfection. In addition, we introduced another imperfection, which is the missing values. It consists of randomly removing some lines from the initial dataset. We considered four levels of missing rate: 5%, 10%, 20%, and 25%. Missing values were introduced considering the technique of Missing Completely At Random (MCAR). This was operationalized by randomly selecting data points across the predictor matrix and setting them to NA. This choice was guided by our goal of evaluating the robustness of machine learning algorithms and imputation methods under purely random data loss.

Pre-processing methods studied

Pre-processing a dataset is to improve its quality to meet the desired information when collecting data. One of the common pre-processing methods in statistical analysis is the imputation of missing values. Four common and mostly used imputation techniques were considered: replacement by mean or median values, and regression-based imputation using the lasso model and random forest (R-mice package). The latest methods are multiple imputation by chained equations (MICE), aiming at imputing missing values in an incomplete column (the target variable) by generating plausible synthetic values based on the information from other variables in the dataset [50,51]. Each method was tested under equal missingness assumptions. Mean and Median imputation were selected for their status as the most widely used univariate baseline methods in agricultural prediction tasks, providing a necessary reference point against which more sophisticated techniques can be meaningfully evaluated. MICE-based imputations were selected because they explicitly account for the multivariate covariance structure of the data through a chained equations framework: a valuable property in agricultural datasets where missing values frequently occur across structurally related predictors, such as meteorological or remote sensing variables measured from the same source.

Another pre-processing is the use of principal components (PCs) of the initial (or original) dataset. For that, we analysed the PCs of each dataset and derived the first 2, 3, and 5 PCs, and also considered the initial dataset for comparison, making four levels. The number of retained PCs (2, 3, and 5) was chosen based on the cumulative proportion of explained variance, following a common heuristic in PCA-based pre-processing. These levels generally captured a substantial amount of variability in the data while reducing dimensionality.

Summary of the scenarios

As summarized in Table 1, for each ML algorithm, we ran 1,728 combinations of factors. We explored 03 levels of number of predictor variables (5, 8, and 12), 3 levels of sample size (100, 300, and 500), 4 levels of missing value rate (5%, 10%, 20%, and 25%), 3 levels of multicollinearity (low, medium, and high), and 4 levels of imputation methods (mean, median, Lasso-regression, and RF-regression).

Machine learning modeling and performance evaluation

To achieve our goal, we applied seven of the commonly used ML algorithms in CYP studies. Random Forest (RF) [52,53], Support Vector Regression (SVM) with kernel “radial” [54,55], Multiple Linear Regression (MLR) with ordinary least square estimation method [56,57], and k-Nearest Neighbor (kNN) [58,59] were explored using R-caret package, wereas Extreme Gradient Boosting (XGBoost) and Light Gradient Boosting Machine (LGBM) were explored using R-XGBoost package. Hyperparameter optimization was performed using an automated grid search procedure within the caret package in R (Table 2). This procedure systematically explored the parameter space for each learner, selecting the specific configuration that optimized the R2 and MAE for each simulated scenario and practical crop case. This automated tuning approach was implemented to maintain consistency across the diverse data configurations and to prevent subjective bias in model selection. To ensure model robustness and prevent overfitting, the optimal configuration was selected based on the lowest Mean Squared Error (MSE) derived from 5-fold cross-validation. Each of the seven ML algorithms was applied on the 1,728 scenarios. Hence, we ran in total 12,096 scenarios. All the simulations were run under the R programming language version 4.5.1 with an HP Intel(R), Core(TM) i5-8350U, CPU 1.70GHz (1.90 GHz), and RAM 16 GB.

thumbnail
Table 2. Summary of hyperparameter grids used in grid search across all ML algorithms.

https://doi.org/10.1371/journal.pone.0353938.t002

To evaluate model performance, we employed a repeated random sub-sampling validation approach. Each simulated dataset was split into two sets, one for training (70%) and the other for testing (30%). This procedure was iterated five times. The coefficient of determination (R2) and the mean absolute error (MAE) were used as the performance metrics. R2 values indicate the fit quality, and MAE the error magnitude.

(2)(3)

In addition to R2 and MAE, two complementary metrics were computed to broaden the evaluation framework: the Root Mean Squared Error (RMSE) and the Mean Absolute Percentage Error (MAPE) defined as:

(4)(5)

where denotes the observed yield, the predicted yield, and n the number of test observations. RMSE was log-transformed (logRMSE) to control the effect of extreme values across the wide range of simulated yield magnitudes, consistently with the log-transformation applied to MAE. MAPE provides an intuitive percentage-based measure of prediction error that facilitates comparison across crops and yield scales. Nevertheless, to ensure a clear and concise results presentation and interpretation, the logRMSE and MAPE results are therefore reported as supplementary information under Table S2 Table to Table S5 Table, which mirror the structure of the main results tables. The conclusions drawn from logRMSE and MAPE are directionally consistent with those obtained from R2 and logMAE.

Performance analysis

A multi-way analysis of variance (ANOVA) was performed to assess the effect of the studied factors on the performance of the ML. All the factors cited above (Table 1) were considered as fixed. We adjusted the interactions so that the residuals match the normal distribution as closely as possible. After adjusting the model, we obtained the trend depicted in S1 Fig. Although the residual histograms appear approximately symmetric and centered around zero, the Q–Q plots exhibit systematic deviations from the theoretical normal distribution, particularly in the tails. These deviations indicate the presence of heavy-tailed error behavior, inconsistent with the Gaussian error assumption required for reliable inference in parametric models. Furthermore, residuals versus fitted value plots reveal non-constant variance, with increasing dispersion at higher fitted values, suggesting heteroscedasticity. Such patterns violate the homoscedasticity assumption and imply that error variance is not independent of the predicted response. Importantly, these deviations are not marginal artefacts but are observed consistently across both performance metrics (R² and MAE), indicating that the error structure is intrinsically non-Gaussian and heteroscedastic, rather than the result of random sampling variation. Hence, we pass to permutation ANOVA, a non-parametric test ran with and packages, followed by the Tukey post hoc test with . Significant factors were visualized via boxplots, with the MAE log-transformed to control the effect of extreme values and facilitate the interpretations. logMAE preserves the ordinal structure of the original metric (a lower logMAE still unambiguously indicates better predictive accuracy) and all conclusions drawn from logMAE are directionally consistent with those that would be obtained from the untransformed MAE.

Practical implementation

To join practice with theory, we considered the data of some of the most widely consumed crops in Benin to predict their yield according to the theories generated through this study. For each of these crops (maize, sorghum, yams, and peanuts), we selected four of the highest-producing municipalities and collected yield data through the DSA platform (https://dsa.agriculture.gouv.bj/), gathering Benin’s crop yield data. Corresponding weather data (temperature, rainfall, water vapour pressure, evapotranspiration, wind speed, and relative humidity) were collected as described in the section Original data acquisition and pre-processing. Importantly, these datasets involved different characteristics (Table 3). The missingness level of each dataset was classified according to the following thresholds: No missingness (0%), Low ([0%, 7%[), Moderate ([7%, 15%[), and High ().

thumbnail
Table 3. Characteristics of the real datasets used for practice.

https://doi.org/10.1371/journal.pone.0353938.t003

Results

These results are based on the significance of the main effect of the studied factors (i.e., number of predictor variables, sample size, missing value rate, multicollinearity, and imputation methods) and the interaction terms from the ANOVA. Table 4 shows that each of the factors significantly affects the performance metrics. In addition, in most cases, the interaction between missingness and imputation method was statistically significant (), indicating that the effect of missing data depends strongly on how it is handled. For simplicity, we present only 12 interactions in addition to the main effects of the 07 factors considered.

thumbnail
Table 4. Full Analysis of Variance (ANOVA) results for R2 and MAE including Effect Sizes.

https://doi.org/10.1371/journal.pone.0353938.t004

The Tukey post hoc test indicated that Random Forest (RF) achieved significantly higher predictive accuracy (R2 = 0.80, Group: a) than all other evaluated algorithms (Table 5). While SVM ranked second in R2 (R2 = 0.75), it was statistically equivalent to RF in terms of minimizing absolute error (Group: A). Conversely, MLR demonstrated significantly lower performance across all metrics, occupying the lowest significance groups. Regarding data preparation, Mice-based imputation methods (RF and Lasso) formed a superior significance group (Group: a for R2; Group: A for MAE), significantly outperforming simple Mean and Median imputation, which showed no significant differences between themselves.

thumbnail
Table 5. Estimated marginal means and significance groupings for Algorithms and Imputation methods.

https://doi.org/10.1371/journal.pone.0353938.t005

The graphical trend is clearly depicted in S2 Fig and S3 Fig.

Performance of ML algorithms

The predictive performance of the machine learning algorithms varied significantly across the various data structures and quality scenarios (Fig 2). RF emerged as the most robust and accurate model, achieving the highest mean coefficient of determination () and the lowest error magnitude (). It was closely followed by SVM, which maintained strong stability with an R2 of and a logMAE of . In contrast, gradient boosting algorithms and neural networks showed moderate performance. XGBoost () and kNN () exhibited comparable predictive power, while NNet () and LGBM () struggled to match the accuracy of the ensemble bagging approach. Notably, the high standard deviations across these models suggest a higher sensitivity to the introduced data imperfections (missingness and multicollinearity) compared to RF and SVM. Finally, MLR demonstrated the poorest performance by a significant margin (; ). The near-zero R2 values indicate that MLR was unable to capture the non-linear dependencies in the crop yield data, particularly when faced with the complex data modalities and imputation-induced noise present in the updated dataset. Overall, RF and SVM proved to be the most reliable algorithms for CYP under varying levels of data quality.

thumbnail
Fig 2. Global performance of learning algorithms.

https://doi.org/10.1371/journal.pone.0353938.g002

Analysis of sensitivity

Sensitivity of ML to data structure.

The predictive performance of the models was highly sensitive to the dimensions of the training data. As shown in S4 Fig, R2 values significantly decreased as the number of predictors increased, while the error magnitude increased accordingly. RF consistently outperformed all other algorithms regardless of the number of predictors (Table 6). Nevertheless, with 12 predictors, RF performance decreased to a lower R2 (0.79 versus 0.81 at 5 predictors) and a higher logMAE (3.11 versus 1.54 at 5 predictors), but still outperformed all competing algorithms, including the second-best SVM (R2 = 0.75, logMAE = 3.12) and kNN (R2 = 0.62, logMAE = 3.45). Notably, RF produced the most stable and lowest error rates across 5, 8, and 12 predictors (logMAE of 1.54, 2.39, and 3.11, respectively), systematically below all competing algorithms at every dimensionality level, confirming its superior robustness to high-dimensionality.

thumbnail
Table 6. Effect of data structure and imperfection on ML performance (mean ± SD).

https://doi.org/10.1371/journal.pone.0353938.t006

Sample size also exerted a strong influence on model stability (S5 Fig). R2 values followed a positive linear trend with increasing sample size (a), while logMAE significantly decreased (b). Analysis of the interactions (Table 6) reveals that RF is particularly dominant in small datasets (100 samples), where it yielded an R2 of 0.79 compared to the much lower values of XGBoost (0.58) and NNet (0.54). As sample size increased to 500, RF maintained its lead (R2 = 0.82, logMAE = 2.26), though SVM showed comparable error minimization (logMAE = 2.31). In contrast, MLR performance remained negligible across all sample sizes (), and LGBM required larger samples (500) to achieve even moderate accuracy (R2 = 0.64).

The interaction between sample size and the number of predictors revealed complex patterns in model performance (Fig 3). Generally, R2 values were highest in datasets with fewer predictors and larger sample sizes, but the stability of this metric was highly dependent on the predictor-to-sample ratio. Specifically, for datasets with 5 predictors, increasing the sample size from 100 to 300 led to a sharp increase in R2 from 0.47 to 0.67 (Fig 3a). However, as the number of predictors increased to 12, the benefit of a larger sample size on R2 became less pronounced, with values plateauing between 0.53 and 0.58.

thumbnail
Fig 3. Impact of interaction between sample size and number of predictors on ML performance.

https://doi.org/10.1371/journal.pone.0353938.g003

The impact of this interaction was more consistent regarding error magnitude (Fig 3b). Within each predictor modality, increasing the sample size significantly reduced the logMAE. The most favorable performance was observed with 5 predictors and a sample size of 500 (logMAE = 1.88), while the highest error occurred with 12 predictors and only 100 samples (logMAE = 3.67). This indicates that while larger sample sizes can partially mitigate the noise introduced by high-dimensional data, the number of predictors remains a dominant factor in determining the absolute error of the CYP.

Across these interactions, RF demonstrated remarkable resilience (Table 6 and S2 Table). Even in the most challenging scenario (12 predictors and 100 samples), RF maintained a relatively high R2 of 0.79, whereas the performance of other algorithms, such as LGBM (R2 = 0.19) and XGBoost (R2 = 0.58), was substantially more sensitive to the low sample-to-predictor ratio. This suggests that the ensemble bagging approach is more robust to the “curse of dimensionality” within this experimental framework than the boosting or linear alternatives.

Sensitivity of ML to data imperfection.

Multicollinearity significantly affected the reliability of the predictions. Both R2 and MAE increased with the correlation rate, confirming that high multicollinearity leads to model overestimation (S6 Fig). SVM demonstrated this time the highest tolerance to these effects (Table 3), holding an R2 of 0.89 and the lowest logMAE (2.40) under high correlation conditions. But, it was closely followed by RF (R2 = 0.88, logMAE = 2.50), suggesting that kernel-based and bagging-based methods are better at navigating redundant predictor spaces than boosting algorithms like XGBoost, which saw error rates rise to 3.49 under high correlation.

The impact of missing data was similarly pronounced (S7 Fig). While an increase in the missing value rate from 5% to 25% led to a general decline in R2 and an increase in logMAE, the performance gap between algorithms became more apparent. RF achieved the highest R2 across all missingness levels (0.88 at 5% to 0.72 at 25%).

The interaction between the missing value rate and the correlation rate significantly influenced the predictive stability of the ML models (Fig 4). Across all missingness levels (5% to 25%), datasets with a high correlation rate consistently yielded the highest R2 values, ranging from 0.67 at a 5% missing rate to 0.61 at a 25% missing rate. In contrast, datasets with low correlation showed the lowest R2 and the highest sensitivity to missingness (Fig 4a), with performance dropping from 0.54 to 0.37 as the missing rate increased. This suggests that high multicollinearity acts as a structural redundancy that allows models to maintain a high coefficient of determination even when substantial data is missing.

thumbnail
Fig 4. Impact of interaction between missing values and multicollinearity on ML performances.

https://doi.org/10.1371/journal.pone.0353938.g004

However, this high R2 in correlated datasets did not translate to higher accuracy. As shown in Fig 4b, the logMAE was consistently highest for the high correlation modality across all missing rates (ranging from 2.95 to 3.06). Conversely, the low correlation modality, despite having the lowest R2, achieved the best error minimization (logMAE ranging from 2.37 to 2.63).

This interaction highlights a critical phenomenon: high multicollinearity in crop yield data leads to an overestimation of model fit (R2) while simultaneously increasing prediction error (logMAE). The stability of RF and SVM in these scenarios (Table 3) further indicates that while all models are affected by this interaction, ensemble bagging and kernel methods are more adept at navigating the trade-off between redundancy-driven fit and noise-driven error than linear or boosting-based alternatives.

Sensitivity of ML to pre-processing methods.

The choice of data pre-processing significantly influenced model performance, with advanced imputation and dimensionality reduction methods yielding the best results. Among the imputation strategies, regression-based methods outperformed simple central tendency measures (Fig 5). Both MICE.Lasso and MICE.RF achieved the highest mean coefficient of determination (), compared to Mean and Median imputation (). Similarly, MICE-based methods were superior error minimizers (Fig 5b), with MICE.Lasso yielding the lowest error (), closely followed by MICE.RF ().

thumbnail
Fig 5. Impact of imputation methods on ML models.

https://doi.org/10.1371/journal.pone.0353938.g005

The interaction between imputation methods and specific algorithms further clarifies these trends (Table 7). RF demonstrated high stability across all imputation techniques, achieving its peak performance when paired with MICE.Lasso or MICE.RF (). In contrast, while MLR remained the weakest performer overall, it showed negligible sensitivity to the type of imputation used (), suggesting that the structural limitations of linear models in this context cannot be overcome by advanced imputation alone.

thumbnail
Table 7. Effect of imputation methods and number of principal components across ML algorithms (mean ± SD).

https://doi.org/10.1371/journal.pone.0353938.t007

Regarding dimensionality reduction, the results indicate that a lower number of principal components (PCs) can enhance model fit and reduce noise (Fig 6). The 2 PCs modality achieved the highest perforance (;  ), significantly outperforming the Initial dataset (; ). Performance consistently degraded as the number of PCs increased from 2 to 5, where R2 dropped to 0.55 and logMAE rose to 2.85.

thumbnail
Fig 6. Impact of principal components on ML models.

https://doi.org/10.1371/journal.pone.0353938.g006

The combination of algorithm and PCA modality revealed that ensemble and kernel-based methods benefit most from feature extraction (Table 7 and S3 Table). The RF + 2 PCs combination emerged as the optimal configuration, yielding the highest R2 (0.84) and the lowest logMAE (2.21). Similarly, SVM and NNet showed improved error minimization with 2 PCs (logMAE of 2.28 and 2.51, respectively) compared to their performance on the initial datasets. These results suggest that for CYP under data imperfection, reducing the predictor space to 2 PCs effectively filters out noise while retaining the essential structural information required for high-accuracy modeling.

Other interactions between data structure, imperfection, and pre-processing.

The interaction between data quality factors and dimensionality reduction significantly influenced predictive outcomes (Table 8 and S4 Table). Regardless of the dataset type (Initial or PCs), an increase in the correlation rate led to a higher coefficient of determination (R2) but was accompanied by an increase in error magnitude (logMAE). The 2 PCs configuration consistently yielded the superior performance across all multicollinearity levels, achieving the highest R2 for low (), moderate (), and high () correlation rates. Notably, under high multicollinearity, 2 PCs offered better error minimization () than the initial dataset (), suggesting that dimensionality reduction effectively filters out redundancy-induced noise.

thumbnail
Table 8. Effect of interaction between multicollinearity or number of predictors and principal components (mean SD).

https://doi.org/10.1371/journal.pone.0353938.t008

A similar trend was observed in the interaction between the number of predictors and principal components. As the predictor count increased from 5 to 12, there was a general decline in model performance across all modalities. However, the 2 PCs transformation proved highly effective at mitigating the “curse of dimensionality.” For datasets with 12 predictors, the 2 PCs modality achieved an R2 of and a logMAE of , whereas the initial dataset performed significantly worse with an R2 of and a logMAE of .

Interestingly, when the number of predictors was low (5 predictors), the performance gap between the 2 PCs modality (, ) and the initial dataset (, ) was less pronounced. This indicates that while dimensionality reduction via 2 PCs is beneficial across all scenarios, its impact on enhancing predictive accuracy and error minimization is most critical when dealing with high-dimensional and highly correlated crop yield datasets.

The interaction between imputation methods and structural data modifications (dimensionality reduction and missingness) revealed distinct performance patterns (Table 9 and S5 Table). Regarding the interaction with principal components, advanced imputation methods exhibited superior error minimization across all PC modalities. Specifically, for the 2 PCs dataset, Mice-Lasso and Regression-RF achieved the lowest error ( and , respectively) compared to Mean and Median imputation (). While R2 values remained relatively stable across imputation types within each PC level, the 2 PCs modality consistently outperformed the Initial dataset and higher PC counts, reaching an R2 of when paired with advanced imputation.

thumbnail
Table 9. Effect of interaction between number of principal components or missing rate and imputation methods (mean ± SD).

https://doi.org/10.1371/journal.pone.0353938.t009

The impact of the missing value rate on imputation effectiveness was equally pronounced. As missingness increased from 5% to 25%, the predictive power declined across all scenarios; however, advanced techniques maintained a clear advantage. At a 25% missing rate, MiceLasso and RegressionRF yielded higher R2 values ( and , respectively) compared to the Mean and Median methods ( and ).

Furthermore, the error magnitude was consistently lower for regression-based imputations at every level of missingness. For instance, at 5% missingness, MiceLasso achieved a logMAE of , while Mean and Median imputation resulted in higher errors ( and , respectively). This trend persisted up to the 25% missing rate, where Mice.Lasso () continued to outperform simple central tendency imputations (). These findings suggest that MiceLasso and RegressionRF are more resilient to high rates of data missingness and integrate more effectively with dimensionality reduction techniques to preserve the predictive integrity of crop yield models.

Optimal actions on the common challenges faced in imperfect datasets pre-processing for ML-based prediction.

This study evaluated the predictive performance of two-way interactions. The comprehensive analysis reveals a clear hierarchy of factors governing predictive performance in crop yield modeling. The results indicate that the robustness of any given algorithm is intrinsically tied to the specific pre-processing interventions applied to address data structural and quality challenges.

Small-sample and high dimensionality: the interaction between sample size and the number of predictors confirms that while performance generally improves with larger samples and lower dimensionality, Random Forest (RF) maintains a unique lead in small-sample (N = 100) and high-dimensional (12 predictors) scenarios. While newer boosting algorithms such as LGBM and XGBoost require larger data volumes to achieve stability, RF and SVM demonstrate superior resilience across varying predictor-to-sample ratios.

Multicollinearity and missingness: regarding data imperfections, the interaction between multicollinearity and missingness rates shows that high correlation creates a deceptive increase in R2 while simultaneously inflating the logMAE. This “overestimation effect” is most effectively mitigated through the extraction of 2 PCs, which filters redundant noise and stabilizes the error magnitude regardless of the missingness level.

Pre-processing: Furthermore, the interaction between imputation methods and algorithmic performance reveals that advanced MICE-based regression (Lasso and RF) consistently outperforms simple central tendency measures. These advanced techniques restore the underlying data distribution more accurately, allowing ensemble models to achieve peak accuracy even at a 25% missing rate. Finally, the interaction between dimensionality reduction and machine learning algorithms highlights a “less is more” trend; using 2 PCs consistently yields better error minimization and higher R2 than the initial dataset or higher PC counts by providing a cleaner, non-redundant feature space for RF and SVM.

In summary, for imperfect agricultural datasets, the most reliable workflow involves the use of MICE-regression paired with 2 PCs extraction. Under these optimized conditions, Random Forest emerges as the most powerful and robust algorithm, although SVM and kNN serve as effective alternatives when the predictor space is properly reduced and missing information is intelligently restored.

Validation through practical crop datasets.

The empirical validation across five distinct crop datasets (Sorghum, Yam, Maize, Peanuts, and Cassava) confirms that predictive success in agriculture is a function of the synergy between data characteristics and the modeling pipeline (Table 10). RF emerged as the top-performing algorithm for three of the five crops: Sorghum (R2 = 0.58), Yam (R2 = 0.51), and Cassava (R2 = 0.22), reinforcing its simulation-established robustness to noise and non-linearities inherent in Benin field data. In datasets with moderate missingness and low collinearity, such as Yam and Sorghum, MICE-based imputation methods served as critical stabilizers, allowing the models to capture underlying yield patterns that simpler imputation strategies would have obscured. For Peanuts, which exhibited no missingness but high collinearity, applying 2 Principal Components (PCs) without any imputation enabled XGBoost to reach peak performance (R2 = 0.42), directly validating our simulation finding that dimensionality reduction acts as a vital noise filter when feature redundancy dominates. Interestingly, for Maize (where both moderate missingness and moderate collinearity coexisted), the combination of MICE-RF and 2 PCs restructured the feature space sufficiently for kNN (R2 = 0.35) to outperform ensemble methods, illustrating that local-pattern learners gain competitive advantage when pre-processing successfully resolves both data imperfections simultaneously.

thumbnail
Table 10. Optimal modeling workflows and performance metrics for practical crop yield datasets.

https://doi.org/10.1371/journal.pone.0353938.t010

Overall, these results demonstrate that no single algorithm or pre-processing strategy is universally optimal; rather, the strategic alignment between data characteristics, imputation method, and dimensionality reduction consistently determines predictive integrity across diverse agricultural contexts (S6 Table, S7 Table, S8 Table, S9 Table, and S10 Table, respectively). Performance variability should be anticipated when this framework is applied to more diverse datasets characterised by different agro-ecological conditions, crop physiologies, or more severe missingness mechanisms, such as MAR or MNAR patterns where the strategic alignment between data characteristics, imputation method, and dimensionality reduction identified here may yield different optimal configurations, reinforcing that the guidelines proposed in this study should be treated as evidence-based starting points rather than universal prescriptions.

Discussion

This study demonstrates that machine learning (ML) performance in agricultural yield prediction is a function of data structure, imperfections, and pre-processing. Random Forest (RF) emerged as the most robust algorithm, consistently maintaining high performance across both simulated and practical datasets, regardless of small sample sizes () or high-dimensional predictor spaces. While SVM and kNN proved competitive in specific cases, notably with Sorghum (R2 = 0.58) and Maize (R2 = 0.35), RF’s stability confirms it as a reliable baseline for complex agricultural data. In predicting potato yield in Spain, [18] highlighted the issue of small sample sizes; despite this, RF provided satisfactory results, which aligns with our findings across five distinct crops. Our analysis confirms that identifying the best model is complex because the configuration with the highest R2 does not always align with the lowest MAE. For instance, while SVM yielded a high R2 for Sorghum, RF provided better error minimization in other contexts. This suggests that relying solely on R2, as seen in studies like [60], may mask significant predictive errors. We therefore recommend a multi-metric evaluation, as our ANOVA results showed that the interaction between Algorithm and Imputation had a massive effect size ( for R2), indicating that model selection cannot be decoupled from data remediation strategy.

Data imperfections significantly dictated the effectiveness of pre-processing. In crops with high multicollinearity, like Peanuts (|r| = 0.63), dimensionality reduction through 2 PCs was essential to stabilize algorithms like XGBoost. This aligns with the findings of [61], who noted that multicollinearity is a primary limitation in regression-based models. The “multicollinearity paradox” observed in our results (where R2 increases while MAE worsens) is fundamentally a byproduct of overfitting. In high-collinearity environments, the model overestimates its predictive power by fitting to the redundant overlap between predictors. This leads to a mathematical over-adjustment to training noise, which manifests as an inflated R2 but results in large deviations in out-of-sample predictions (MAE). The multicollinearity paradox arises through two complementary mechanisms. The first is a coefficient instability mechanism: under high collinearity, the near-singularity of the predictor matrix destabilises model parameters, producing erratic point-level predictions that inflate MAE even when the global fit appears acceptable. The second is a variance inflation mechanism: when predictors are highly correlated, their joint contribution to the response variable amplifies the total variance of Y (SST), which causes R to increase mechanically as the denominator grows, even when residuals also grow. While this second mechanism is embedded in our simulation design, it is not an artefact: it reflects a plausible real-world scenario in which correlated agro-climatic predictors jointly amplify yield variability, as is well documented in agricultural systems where temperature, radiation, and soil moisture covary seasonally [62]. Together, these two mechanisms explain why R2 and MAE can diverge simultaneously under high multicollinearity, and why R2 alone is an unreliable criterion for model selection in agricultural datasets characterised by correlated predictor structures. This supports our finding that PCA acts as a necessary noise filter in correlated environments, consistent with [43], who found that PCs improved accuracy, though their application is not always straightforward.

Conversely, in settings where correlation was managed or low, preserving the original feature space yielded better results, confirming that pre-processing must be tailored to the dataset’s specific structure. The success of advanced imputation (e.g., Mice.RF and Mice.Lasso) in the top configurations for Yam, Maize, and Cassava underscores its superiority over simple mean or median replacement. Our ANOVA results quantified this, showing that Imputation was the most influential factor (), proving that restoring the underlying distribution is more critical than the choice of the learner itself.

From a computational standpoint, Mean and Median imputation are virtually instantaneous, while MICE-based methods carry a higher but one-time burden that scales with sample size and predictor count. Similarly, MLR and kNN are the least demanding algorithms, whereas RF, XGBoost, and LightGBM require ensemble training, with LightGBM mitigating this cost through histogram-based splitting. Practitioners should therefore consider MICE-RF paired with RF as the most reliable workflow when computational resources are available, and Median imputation paired with SVM as a leaner yet competitive alternative.

As limitations of this study, we explored only a subset of algorithms common in yield prediction, while more powerful architectures exist [63,64]. Furthermore, we focused on established ML-based imputation rather than emerging multidimensional meteorological frameworks [65]. Future research should investigate these evolving methods to further refine yield forecasting in data-scarce environments. Interest may also be drawn to quantitative analysis of the trade-off between performance gains and computational expense.

Limitations and future work

While this study provides a comprehensive and systematic investigation of the sensitivity of ML regression models to data structure and imperfections in crop yield prediction, several limitations should be acknowledged and serve as directions for future research.

Although the simulation framework was carefully designed to reflect realistic agricultural data conditions (including varying sample sizes, predictor counts, collinearity levels, and missing rates) the reliance on simulated data inevitably introduces assumptions that may not fully capture the complexity and heterogeneity of real field environments. The generalisability of the proposed guidelines should therefore be interpreted with this caveat in mind.

In addition, the empirical validation was conducted on five crop datasets (Maize, Yam, Cassava, Sorghum, and Peanuts) collected from a specific agro-ecological context in Benin. While these datasets confirm the practical relevance of our simulation findings, a broader validation encompassing more diverse crops, regions, soil types, and agricultural production systems would further strengthen the external validity of the proposed pre-processing framework.

Furthermore, while seven algorithms covering a broad spectrum from linear (MLR) to kernel-based (SVM), instance-based (kNN), ensemble (RF, XGBoost, LightGBM), and neural (NNet) learners were evaluated, deep learning architectures such as Long Short-Term Memory (LSTM) networks and Convolutional Neural Networks (CNN) were not considered. These architectures may offer additional robustness under specific data conditions, particularly when temporal or spatial structure is present in the predictor variables.

Regarding the evaluation framework, model performance was assessed through R2, MAE, logRMSE, and MAPE. Future work should explore complementary uncertainty-aware evaluation frameworks such as quantile regression assessed with pinball loss, which would provide a more comprehensive picture of predictive reliability under imperfect data conditions and better support decision-making under uncertainty in agricultural planning.

Finally, the sensitivity analysis could be further extended by testing model robustness under controlled input perturbations such as Gaussian noise injection into the predictor variables, which would simulate measurement error and sensor drift: common sources of imperfection in field data collection. Hyperparameter optimisation strategies beyond the grid search applied here, such as Bayesian optimisation or random search, may additionally alter algorithm performance rankings under specific data conditions and deserve systematic investigation in future studies.

Conclusion

This study demonstrated that data structure, imperfections, and pre-processing highly influence ML models. However, RF is the most robust algorithm to data imperfections, confirmed across all conditions examined. Specifically, the practical results for Sorghum and Yam confirm RF and SVM’s stability in small-sample agricultural contexts. Quantitatively, structural factors dictated performance: larger sample sizes improved accuracy (R2 = +10.81%), while increased dimensionality escalated error (MAE = +47.37%). We identified a “multicollinearity paradox”, where high correlation can inflate R2 while simultaneously increasing prediction error, as confirmed by the Peanuts dataset (|r| = 0.633). Based on these findings, we propose the following prescriptive guidelines for practitioners. When the dataset is small with moderate multicollinearity and a high percentage of missing values, a configuration analogous to the Maize dataset in our validation, we recommend applying MICE-RF imputation to restore data integrity, followed by dimensionality reduction via 2 PCs to neutralise collinearity-induced variance inflation, and fitting a RF model as the primary learner given its demonstrated robustness to noisy and incomplete data. When data are complete but collinearity is high, 2 PCs alone paired with a boosting algorithm such as XGBoost represents the most reliable workflow, as illustrated by the Peanuts results. When missingness is low and collinearity is negligible, preserving the original feature space without imputation or dimensionality reduction, as in the Sorghum workflow, allows SVM or RF to exploit the clean signal most efficiently. Data structure and pre-processing interact significantly, and they should not be treated individually, but must be tailored to the dataset’s specific correlation and missingness profile rather than treated as isolated decisions. Future work should explore more diverse algorithms, evaluation metrics, and missing data mechanisms, including MAR and MNAR patterns, to further generalise these guidelines across broader agricultural contexts.

Supporting information

S1 Table. Bioclimatic variables.

Bioclimatic variables used for the simulation.

https://doi.org/10.1371/journal.pone.0353938.s001

(XLSX)

S1 Fig. Residuals normality check.

Distribution of residuals from the parametric ANOVA.

https://doi.org/10.1371/journal.pone.0353938.s002

(TIF)

S2 Fig. Turkey post hoc test.

Estimated marginal mean by Algorithm.

https://doi.org/10.1371/journal.pone.0353938.s003

(TIF)

S3 Fig. Turkey post hoc test.

Estimated marginal mean by Imputation method.

https://doi.org/10.1371/journal.pone.0353938.s004

(TIF)

S4 Fig. Predictor count impact ML.

Impact of the number of predictors on ML performance.

https://doi.org/10.1371/journal.pone.0353938.s005

(TIF)

S5 Fig. Sample size impacts ML.

Impact of sample size on ML performance.

https://doi.org/10.1371/journal.pone.0353938.s006

(TIF)

S6 Fig. Multicollinearity impacts ML.

Impact of multicollinearity on ML performance.

https://doi.org/10.1371/journal.pone.0353938.s007

(TIF)

S7 Fig. Missingness impacts ML.

Impact of missing values on ML performance.

https://doi.org/10.1371/journal.pone.0353938.s008

(TIF)

S2 Table. Table 6 Continuous.

Effect of data structure and imperfection on ML performance (mean SD) Note: logRMSE = logarithm of Root Mean Squared Error; MAPE = Mean Absolute Percentage Error (%).

https://doi.org/10.1371/journal.pone.0353938.s009

(XLSX)

S3 Table. Table 7 Continuous.

Effect of imputation methods and number of principal components across ML algorithms (mean SD). Note: logRMSE = logarithm of Root Mean Squared Error; MAPE = Mean Absolute Percentage Error (%). MiceLasso = MICE with Lasso; RegressionRF = MICE with Random Forest.

https://doi.org/10.1371/journal.pone.0353938.s010

(XLSX)

S4 Table. Table 8 Continuous.

Effect of interaction between multicollinearity or number of predictors and principal components (mean SD). Note: logRMSE = logarithm of Root Mean Squared Error; MAPE = Mean Absolute Percentage Error (%). Values averaged across all algorithms, imputation methods, sample sizes, and missing rates.

https://doi.org/10.1371/journal.pone.0353938.s011

(XLSX)

S5 Table. Table 9 Continuous.

Effect of interaction between number of principal components or missing rate and imputation methods (mean SD). Note: logRMSE = logarithm of Root Mean Squared Error; MAPE = Mean Absolute Percentage Error (%). MiceLasso = MICE with Lasso; RegressionRF = MICE with Random Forest.

https://doi.org/10.1371/journal.pone.0353938.s012

(XLSX)

S6 Table. Analyzing maize yield.

Extended predictive performance for Maize yield across all modeling configurations.

https://doi.org/10.1371/journal.pone.0353938.s013

(XLSX)

S7 Table. Analyzing yam yield.

Extended predictive performance for Yam yield across all modeling configurations.

https://doi.org/10.1371/journal.pone.0353938.s014

(XLSX)

S8 Table. Analyzing Cassava yield.

Extended predictive performance for Cassava yield across all modeling configurations.

https://doi.org/10.1371/journal.pone.0353938.s015

(XLSX)

S9 Table. Analyzing Sorghum yield.

Extended predictive performance for sorghum yield across all modeling configurations.

https://doi.org/10.1371/journal.pone.0353938.s016

(XLSX)

S10 Table. Analyzing peanuts yield.

Extended predictive performance for peanut yield across all modeling configurations.

https://doi.org/10.1371/journal.pone.0353938.s017

(XLSX)

S1 Code. Simulation materials.

The simulation materials are available at https://zenodo.org/records/18607703. The file run.scenario.R simulates data using the function Simulation_function.R based on GData_NA.xlsx. It generates the artificial dataset named simulated_data.xlsx, which was analysed with Analysis.R. The practice section was performed by Practice_SO2.R using the real datasets such as CassavaKK.xlsx, GroundnutKK.xlsx, MaizeKK.xlsx, SorghumKK.xlsx, and YamKK.xlsx.

https://doi.org/10.1371/journal.pone.0353938.s018

(ZIP)

Acknowledgments

We would like to thank the handling editor and anonymous reviewers for their constructive comments that have improved the quality of this paper.

References

  1. 1. Ying X. An Overview of Overfitting and its Solutions. J Phys: Conf Ser. 2019;1168:022022.
  2. 2. Favero M, Carlucci S, Chinazzo G, Møller JK, Schweiker M, Vellei M, et al. Ten questions concerning statistical data analysis in human-centric buildings research: A focus on thermal comfort investigations. Build Environ. 2024;264:111903.
  3. 3. Anderson W, Shukla S, Verdin J, Hoell A, Justice C, Barker B, et al. Preseason maize and wheat yield forecasts for early warning of crop failure. Nat Commun. 2024;15(1):7262. pmid:39179601
  4. 4. Güneş AM, van Rooij W, Gulshad S, Slotman B, Dahele M, Verbakel W. Impact of imperfection in medical imaging data on deep learning-based segmentation performance: An experimental study using synthesized data. Med Phys. 2023;50(10):6421–32. pmid:37118976
  5. 5. Goel K, Sadeghianasl S, Andrews R, Ter Hofstede A, Wynn M, Kapugama Geeganage D, et al. Digital Health Data Imperfection Patterns and Their Manifestations in an Australian Digital Hospital. In: Proceedings of the Annual Hawaii International Conference on System Sciences. 2023. p. 3235–44.
  6. 6. Alkema L, Raftery AE, Gerland P, Clark SJ, Pelletier F. Estimating trends in the total fertility rate with uncertainty using imperfect data: Examples from West Africa. Demogr Res. 2012;26(15):331–62. pmid:24273449
  7. 7. Stoto MA, Woolverton A, Kraemer J, Barlow P, Clarke M. COVID-19 data are messy: analytic methods for rigorous impact analyses with imperfect data. Global Health. 2022;18(1):2. pmid:34991622
  8. 8. Ouedraogo S. Estimation of older adult mortality from imperfect data: A comparative review of methods using Burkina Faso censuses. DemRes. 2020;43:1119–54.
  9. 9. Neves A, Vieira AR, Sequeira V, Silva E, Silva F, Duarte AM, et al. Modelling Fish Growth with Imperfect Data: The Case of Trachurus picturatus. Fishes. 2022;7(1):52.
  10. 10. Chen LJ, Xing L, Han LJ. Influence of data preprocessing on the quantitative determination of nutrient content in poultry manure by near infrared spectroscopy. J Environ Qual. 2010;39(5):1841–7. pmid:21043290
  11. 11. Hachimi CE, Belaqziz S, Khabba S, Sebbar B, Dhiba D, Chehbouni A. Smart Weather Data Management Based on Artificial Intelligence and Big Data Analytics for Precision Agriculture. Agriculture. 2023;13(1).
  12. 12. Slinker BK, Glantz SA. Multiple regression for physiological data analysis: the problem of multicollinearity. Am J Physiol. 1985;249(1 Pt 2):R1–12. pmid:4014489
  13. 13. Follin JM, Girres JF, Olteanuraimond AM, Sheeren D. The origins of imperfection in geographic data [Book chapter]. Geographic Data Imperfection 1: From Theory to Applications. 2019. p. 25–44.
  14. 14. EskandariNasab M, Hamdi SM, Filali Boubrahimi S. Impacts of Data Preprocessing and Sampling Techniques on Solar Flare Prediction from Multivariate Time Series Data of Photospheric Magnetic Field Parameters. ApJS. 2024;275(1):6.
  15. 15. Wang W, Du Y, Chau K, Cheng C-T, Xu D, Zhuang W-T. Evaluating the Performance of Several Data Preprocessing Methods Based on GRU in Forecasting Monthly Runoff Time Series. Water Resour Manage. 2024;38(9):3135–52.
  16. 16. Hertz D. MANAGEMENT SCIENCE AND THE CHIEF EXECUTIVE. Manage Decis. 1972;10(3):253–61.
  17. 17. McKechnie I, Raymond K, Stacey D. Identifying Inconsistencies in Data Quality Between FAOSTAT, WOAH, UN Agriculture Census, and National Data. Data Sci J. 2024;23.
  18. 18. Gómez D, Salvador P, Sanz J, Casanova JL. Potato Yield Prediction Using Machine Learning Techniques and Sentinel 2 Data. Remote Sens. 2019;11(15):1745.
  19. 19. Mao H, Meng J, Ji F, Zhang Q, Fang H. Comparison of Machine Learning Regression Algorithms for Cotton Leaf Area Index Retrieval Using Sentinel-2 Spectral Bands. Appl Sci. 2019;9(7):1459.
  20. 20. Guan L, Peng J, Han K, Sung K. Yield modeling for prediction of regional whole‐crop barley productivity. Grassland Sci. 2019;65(3):179–88.
  21. 21. Malik P, Sengupta S, Jadon JS. Comparative Analysis of Soil Properties to Predict Fertility and Crop Yield using Machine Learning Algorithms. In: 2021 11th International Conference on Cloud Computing, Data Science & Engineering (Confluence). 2021. p. 1004–7.
  22. 22. Sajid SS, Shahhosseini M, Huber I, Hu G, Archontoulis SV. County-scale crop yield prediction by integrating crop simulation with machine learning models. Front Plant Sci. 2022;13:1000224. pmid:36518505
  23. 23. Tripathi D, Biswas SK, Baruah B. Data analytics in ensemble learning for effective crop yield prediction. Eng Res Express. 2024;6(3).
  24. 24. Alibabaei K, Gaspar PD, Lima TM. Crop Yield Estimation Using Deep Learning Based on Climate Big Data and Irrigation Scheduling. Energies. 2021;14(11):3004.
  25. 25. Saini P, Nagpal B. Analysis of missing data and comparing the accuracy of imputation methods using wheat crop data. Multimed Tools Appl. 2023;83(14):40393–414.
  26. 26. Flores A, Tito-Chura H, Cuentas-Toledo O, Yana-Mamani V, Centty-Villafuerte D. PM2.5 Time Series Imputation with Moving Averages, Smoothing, and Linear Interpolation. Computers. 2024;13(12):312.
  27. 27. Ma X, Zhong Q. Missing value imputation method for disaster decision-making using K nearest neighbor. J Appl Stat. 2015;43(4):767–81.
  28. 28. Lee Y, Leite WL. A comparison of random forest-based missing imputation methods for covariates in propensity score analysis. Psychol Methods. 2024. https://doi.org/10.1037/met0000676 pmid:38869857
  29. 29. Azur MJ, Stuart EA, Frangakis C, Leaf PJ. Multiple imputation by chained equations: what is it and how does it work?. Int J Methods Psychiatr Res. 2011;20(1):40–9. pmid:21499542
  30. 30. Cadenas JM, Garrido MC, Martínez R, Muñoz E, Bonissone PP. A fuzzy K-nearest neighbor classifier to deal with imperfect data. Soft Comput. 2017;22(10):3313–30.
  31. 31. Zhang S, Jin Z, Zhu X. Missing data imputation by utilizing information within incomplete instances. J Syst Softw. 2011;84(3):452–9.
  32. 32. Li D, Miao Y, Gupta SK, Rosen CJ, Yuan F, Wang C, et al. Improving Potato Yield Prediction by Combining Cultivar Information and UAV Remote Sensing Data Using Machine Learning. Remote Sens. 2021;13(16):3322.
  33. 33. Abbas F, Afzaal H, Farooque AA, Tang S. Crop Yield Prediction through Proximal Sensing and Machine Learning Algorithms. Agronomy. 2020;10(7):1046.
  34. 34. Aworka R, Cedric LS, Adoni WYH, Zoueu JT, Mutombo FK, Kimpolo CLM, et al. Agricultural decision system based on advanced machine learning models for yield prediction: Case of East African countries. Smart Agric Technol. 2022;2:100048.
  35. 35. Li D, Wu X. Individualized Indicators and Estimation Methods for Tiger Nut (Cyperus esculentus L.) Tubers Yield Using Light Multispectral UAV and Lightweight CNN Structure. Drones. 2023;7(7):432.
  36. 36. Coulibali Z, Cambouris AN, Parent S-É. Site-specific machine learning predictive fertilization models for potato crops in Eastern Canada. PLoS One. 2020;15(8):e0230888. pmid:32764750
  37. 37. Paudel D, Boogaard H, de Wit A, Janssen S, Osinga S, Pylianidis C, et al. Machine learning for large-scale crop yield forecasting. Agric Syst. 2021;187:103016.
  38. 38. Bonneu F, Makowski D, Joly J, Allard D. Machine learning based on functional principal component analysis to quantify the effects of the main drivers of wheat yields. Eur J Agron. 2024;159:127254.
  39. 39. Yang S, Li L, Fei S, Yang M, Tao Z, Meng Y. Wheat yield prediction using machine learning method based on UAV remote sensing data. Drones. 2024;8(7).
  40. 40. Aguilera AM, Escabias M, Valderrama MJ. Using principal components for estimating logistic regression with high-dimensional multicollinear data. Computat Stat Data Analys. 2006;50(8):1905–24.
  41. 41. Pham HT, Awange J, Kuhn M. Evaluation of three feature dimension reduction techniques for machine learning-based crop yield prediction models. Sensors. 2022;22(17).
  42. 42. Ansarifar J, Wang L, Archontoulis SV. An interaction regression model for crop yield prediction. Sci Rep. 2021;11(1):17754. pmid:34493778
  43. 43. Kurek J, Niedbała G, Wojciechowski T, Świderski B, Antoniuk I, Piekutowska M, et al. Prediction of Potato (Solanum tuberosum L.) Yield Based on Machine Learning Methods. Agriculture. 2023;13(12).
  44. 44. Sun C, Feng L, Zhang Z, Ma Y, Crosby T, Naber M, et al. Prediction of End-Of-Season Tuber Yield and Tuber Set in Potatoes Using In-Season UAV-Based Hyperspectral Imagery and Machine Learning. Sensors (Basel). 2020;20(18):5293. pmid:32947919
  45. 45. Farnoosh R, Abnoosian K, Isewid RA, Javaheri D. DiabetesXpertNet: An innovative attention-based CNN for accurate type 2 diabetes prediction. PLoS One. 2025;20(9):e0330454. pmid:41026707
  46. 46. Abnoosian K, Farnoosh R, Behzadi MH. Prediction of diabetes disease using an ensemble of machine learning multi-classifier models. BMC Bioinform. 2023;24(1):337. pmid:37697283
  47. 47. Huang J, Li Y-F, Xie M. An empirical analysis of data preprocessing for machine learning-based software cost estimation. Inform Softw Technol. 2015;67:108–27.
  48. 48. Salem N, Hussein S. Data dimensional reduction and principal components analysis. Procedia Comput Sci. 2019;163:292–9.
  49. 49. Jerome HF. Multivariate Adaptive Regression Splines. The Annals of Statistics. 1991;19(1):1–141.
  50. 50. Deng Y, Chang C, Ido MS, Long Q. Multiple Imputation for General Missing Data Patterns in the Presence of High-dimensional Data. Sci Rep. 2016;6:21689. pmid:26868061
  51. 51. Zhao Y, Long Q. Multiple imputation in the presence of high-dimensional data. Stat Methods Med Res. 2016;25(5):2021–35. pmid:24275026
  52. 52. Liu Y, Wang Y, Zhang J. New machine learning algorithm: Random forest. In: Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics). 2012. p. 246–52. Available from: https://www.scopus.com/inward/record.uri?eid=2-s2.0-84867640767&doi=10.1007%2f978-3-642-34062-8_32&partnerID=40&md5=73f4e3124d7e3beefa2405665c761b72
  53. 53. Jeong JH, Resop JP, Mueller ND, Fleisher DH, Yun K, Butler EE, et al. Random Forests for Global and Regional Crop Yield Predictions. PLoS One. 2016;11(6):e0156571. pmid:27257967
  54. 54. Zhang F, O’Donnell LJ. Support vector regression. Elsevier; 2019. https://doi.org/10.1016/B978-0-12-815739-8.00007-9
  55. 55. Paidipati KK, Chesneau C, Nayana BM, Kumar KR, Polisetty K, Kurangi C. Prediction of Rice Cultivation in India—Support Vector Regression Approach with Various Kernels for Non-Linear Patterns. AgriEng. 2021;3(2):182–98.
  56. 56. Wu Y. Linear regression in machine learning [Conference paper]. Proceedings of SPIE - The International Society for Optical Engineering. 2022. 12163 p. Available from: https://www.scopus.com/inward/record.uri?eid=2-s2.0-85131830947&doi=10.1117%2f12.2628053&partnerID=40&md5=e31f3a4b9bec0fcdc67c6190a09f0acf
  57. 57. Piekutowska M, Niedbała G, Piskier T, Lenartowicz T, Pilarski K, Wojciechowski T, et al. The Application of Multiple Linear Regression and Artificial Neural Network Models for Yield Prediction of Very Early Potato Cultivars before Harvest. Agronomy. 2021;11(5):885.
  58. 58. Zhang Z. Introduction to machine learning: k-nearest neighbors. Ann Transl Med. 2016;4(11):218. pmid:27386492
  59. 59. Siddalingappa R, Kanagaraj S. K-nearest-neighbor algorithm to predict the survival time and classification of various stages of oral cancer: a machine learning approach. F1000Res. 2023;11:70. pmid:38046542
  60. 60. Kayad A, Sozzi M, Gatto S, Marinello F, Pirotti F. Monitoring Within-Field Variability of Corn Yield using Sentinel-2 and Machine Learning Techniques. Remote Sens. 2019;11(23):2873.
  61. 61. Burdett H, Wellen C. Statistical and machine learning methods for crop yield prediction in the context of precision agriculture. Precision Agric. 2022;23(5):1553–74.
  62. 62. Mechiche-Alami A, Abdi AM. Agricultural productivity in relation to climate and cropland management in West Africa. Sci Rep. 2020;10(1):3393. pmid:32098992
  63. 63. Tahi SPG, Houndji VR, Salako KV, Hounmenou CG, Kakaï RG. Machine learning techniques for cereal crops yield prediction: A comprehensive review. Appl Model Simul. 2024;8:174–90.
  64. 64. van Klompenburg T, Kassahun A, Catal C. Crop yield prediction using machine learning: A systematic literature review. Comput Electron Agric. 2020;177:105709.
  65. 65. Li C, Ren X, Zhao G. Machine-Learning-Based Imputation Method for Filling Missing Values in Ground Meteorological Observation Data. Algorithms. 2023;16(9):422.