Abstract
The increasing demand for innovative strategies in sustainable food production—driven by rapid global population growth, particularly in sub-Saharan Africa (SSA)—necessitates urgent attention to agricultural resilience. Recent technological advancements have enhanced crop productivity, post-harvest preservation, and environmentally sustainable farming practices. However, three critical bottlenecks remain: (i) the lack of accurate, maize-specific yield prediction methods tailored to SSA; (ii) limited multimodal modeling approaches capable of capturing complex, nonlinear interactions among heterogeneous data sources; and (iii) a lack of explainability mechanisms, which render high-performing models “black boxes” and hinder stakeholder trust. To address these gaps, this study presents an explainable machine learning framework for smart maize yield prediction. We integrate multimodal SSA-specific soil, crop, and weather data to capture the multi-dimensional drivers of maize productivity. Six diverse algorithms—including extreme gradient boosting (XGBoost), light gradient boosting machine (LGBM), categorical boosting (CatBoost), support vector machine (SVM), random forest (RF), and an artificial neural network (ANN) combined with a k-nearest neighbors (kNN)—were benchmarked to evaluate predictive performance. To ensure robustness against spatial heterogeneity, we employed a Leave-One-Plot-Out (LOPO) cross-validation strategy. Empirical results on unseen test data identify CatBoost as the best-performing model, achieving a coefficient of determination of (), demonstrating its ability to capture complex, nonlinear relationships in agricultural data. To enhance transparency and stakeholder trust, we integrated Local Interpretable Model-agnostic Explanations (LIME), providing plot-level insights into the physiological and environmental drivers of maize yield. Together, these contributions establish a scalable and interpretable modeling framework capable of supporting data-driven agricultural decision-making in SSA.
1. Introduction
The increasing demand for sustainable food production to meet the needs of a rapidly growing global population, particularly in sub-Saharan Africa (SSA), has intensified the need for technological innovation in agriculture [1,2,3,4,5,6]. Agriculture remains a cornerstone of development in many low- and middle-income countries, contributing significantly to economic growth, employment, and food security. At the heart of the United Nations Sustainable Development Goal (SDG) 2, “Zero Hunger”, lies the imperative for sustainable agricultural practices that are both resilient and efficient [7,8,9,10]. Recent advances in smart agriculture have introduced transformative technologies such as the Internet of Things (IoT) and artificial intelligence (AI), which enable smarter, data-driven farming systems [1,2,3,4,5]. These innovations offer the potential to minimize resource wastage and optimize crop yields in the face of increasing climate variability. However, despite their global proliferation, the adoption of such technologies in SSA remains limited, primarily due to the lack of deployable crop yield estimation methods in such resource-constrained environments. This gap is particularly consequential given SSA’s high population growth rate and persistent vulnerability to food insecurity.
Maize (Zea mays L.)—the SSA region’s most widely produced cereal and a critical staple for household consumption and industrial supply chains—requires accurate yield estimation to support effective planning, market forecasting, and food security interventions [5,6]. Yet precise and scalable maize yield predictions remain challenging due to the complex, nonlinear interactions among soil characteristics, crop physiology, and weather dynamics. Accurate, continuous crop yield estimation is foundational for precision agriculture. It enables farmers to move beyond coarse, binary decisions toward fine-grained resource allocation, soil treatment, and climate-responsive management. For policymakers and agronomists, reliable crop yield prediction models support strategic planning, risk mitigation, and long-term adaptation. Despite the promise of existing machine learning–based yield estimation approaches [1,2,3,4,5,6], several limitations hinder their applicability in SSA.
First, many existing models rely on unimodal data sources, which fail to capture the heterogeneous and interdependent nature of agricultural systems. This omission limits their ability to model the complex, nonlinear relationships that drive yield outcomes. Second, a substantial proportion of prior work employs black-box architectures that lack interpretability, making them unsuitable for farmers, agronomists, and extension workers who require transparent and actionable insights. Third, some studies [5] convert continuous yield values into qualitative classes (e.g., low, medium, high), a practice that discards valuable variance and obscures the magnitude of yield changes in response to environmental drivers. This discretization reduces agronomic utility and restricts the precision of downstream decision-making.
To address these shortcomings, this study proposes a robust, data-driven framework for continuous crop yield prediction. We investigated six distinct machine learning and deep learning architectures—including extreme gradient boosting (XGBoost), light gradient boosting machine (LGBM), categorical boosting (CatBoost), support vector machine (SVM), random forest (RF), and a artificial neural network (ANN) combined with a k-nearest neighbors (kNN)—to identify the most effective model in the SSA context. By preserving the continuous nature of the target variable, our approach captures subtle yield variations that are lost in classification-based methods. To enhance transparency and stakeholder trust, we integrated Local Interpretable Model-agnostic Explanations (LIME), providing plot-level interpretability and revealing the physiological and environmental drivers of maize yield. The framework is validated using a Leave-One-Plot-Out (LOPO) cross-validation strategy to ensure robustness against spatial heterogeneity. Overall, this work aims to improve predictive accuracy, strengthen interpretability, and support data-driven decision-making for crop yield estimation system in SSA.
Our contributions are summarized as follows:
- We developed a regression-based maize yield prediction system that leverages heterogeneous soil, crop, and weather data specific to SSA. Unlike prior unimodal or classification-based approaches, our framework preserves the continuous nature of yield values, enabling fine-grained estimation and capturing subtle agronomic variations that are lost through discretization.
- We investigated six machine learning and deep learning methods—XGBoost, LightGBM, CatBoost, SVM, RF, and ANN-kNN—to assess their predictive capacity.
- We incorporated LIME-based local interpretability to explain model predictions and support decision-making for farmers and agronomists.
- We analyzed prediction errors and feature importance to identify key drivers of crop yield outcomes.
2. Related Work
Crop yield estimation models are designed to support agricultural decision-making by predicting productivity outcomes based on environmental and biological inputs. For farmers, these models enable optimized planting strategies, resource allocation, and treatment schedules, thereby improving yield and reducing waste. For agronomists and policymakers, predictive models offer a data-driven foundation for evaluating soil health, climate resilience, and crop performance across diverse regions. A critical area of ongoing research is the development of models capable of accurately estimating yield across varied environmental conditions [1,2,3,4,5,6,7,8,9,10]. Such models are essential to address the complexity of agricultural systems, enabling stakeholders to make informed decisions that reflect the interplay between soil properties, crop physiology, and weather dynamics. While foundational research has established the importance of these models, significant gaps remain regarding geographic specificity, data modality, and interpretability.
The development of predictive models for varied geographic regions has gained significant traction, yet many studies remain focused on regionally established agricultural infrastructures. This concentration of research in data-rich, high-input regions such as Asia, Europe, and North America is important because models developed under these conditions cannot be assumed to generalize to sub-Saharan Africa (SSA). Differences in soil fertility, climate variability, management intensity, and data availability mean that region-specific models often fail when applied to SSA contexts. These structural differences create a methodological gap, as SSA requires region-specific, multimodal, and explainable models that reflect its unique production constraints and heterogeneous landscapes. For instance, Nikhil et al. [1] performed a comprehensive performance analysis of machine learning models for various crops (including cereals and groundnuts), and Fei et al. [2] explored multi-sensor detection techniques for wheat yield within an Asian context. Similarly, Alibabaei et al. [3] utilized climate big data and irrigation scheduling for tomato and potato yield estimation within a European context. Within the Sub-Saharan African (SSA) context, Olayinka et al. [5] investigated data-driven machine learning approaches to improve maize production. Despite these advancements, a major disadvantage of existing regional studies is their limited generalizability across the heterogeneous landscapes of SSA. Many models are calibrated to specific local fields and fail to maintain predictive power when applied to different climatic zones and regions, necessitating more robust crop yield predictive models.
The data sources utilized for crop yield prediction vary significantly, with many studies relying on unimodal datasets. Huber et al. [7] leveraged purely optical remote-sensing data for yield prediction, while Zachow et al. [8] used seasonal climate model outputs combined with LSTM networks. Although these approaches provide valuable insights into spectral or climatic patterns, they lack the capacity to capture the full agronomic complexity of the production environment. In contrast, a smaller body of work has explored multimodal datasets; for example, Alibabaei et al. [3] integrated climate big data with irrigation scheduling, and Shook et al. [4] combined genotype and weather variables using deep learning. However, these multimodal studies rarely focus on maize yield prediction in the Sub-Saharan African (SSA) context, and they often do not model the synergistic interactions among soil, crop, and weather dynamics simultaneously. This limitation contributes to performance plateaus in heterogeneous and resource-constrained environments such as SSA.
Despite the high predictive accuracy reported in many studies [1,2,3,4,5,6,7,8], there remains a pervasive lack of explainability mechanisms in current crop yield estimation frameworks. Most existing models—including those developed by Alibabaei et al. [3], Shook et al. [4], and Kuradusenge et al. [6], prioritize predictive performance while overlooking the inherently opaque, “black-box” nature of the underlying algorithms. Recent reviews by Pai et al. [9] highlight that the absence of interpretable outputs is a critical limitation, as it prevents agronomists and farmers from understanding the physiological or environmental drivers behind a model’s prediction. Without transparent reasoning, these models cannot support nuanced agronomic decision-making, nor can they build the stakeholder trust required for real-world deployment in resource-constrained and heterogeneous production environments such as those found in sub-Saharan Africa.
Unlike Olayinka et al. [5], who framed maize yield estimation as a classification task—thereby discarding the information-rich continuous yield variable (tons per hectare) and artificially simplifying the learning problem—our study adopts a regression-based formulation that preserves full yield resolution. In contrast to other existing works [1,2,3,4,6,7,8,9], we develop a unified framework that integrates a tripartite multimodal dataset encompassing soil, crop, and weather variables [10], enabling the model to capture cross-modal interactions that are critical in heterogeneous production environments. Furthermore, we incorporate LIME-based local interpretability to generate transparent, plot-specific explanations, providing actionable agronomic insights tailored to the sub-Saharan African context. This combination of regression modeling, multimodal data-level fusion, and local interpretability directly addresses the methodological and contextual gaps identified in prior literature (Table 1).
Table 1.
Comparison of prior state-of-the-art studies on crop yield estimation.
3. Methods
This section details the methodological framework designed to overcome the bottlenecks of predictive accuracy, data heterogeneity, and model opacity in the SSA maize yield prediction context. An overview of the entire framework is illustrated in Figure 1.
Figure 1.
Workflow for maize yield prediction integrating IoT sensor-based data (weather, soil, and crop). This includes data collection, data splitting and preprocessing, the modeling of multiple regression algorithms, hyperparameter tuning and model training, performance evaluation, interpretation of results, and model explainability analysis of the best performing model.
3.1. Data Collection
The dataset used in this study [11] was collected from a controlled experimental maize farm located within a representative agro-ecological zone of southern Nigeria (latitude N6.28, longitude E5.59). The field followed a randomized complete block design (RCBD) comprising 27 plots, each representing a unique combination of three maize varieties—DMR-ESRY 9 (V1), BR9928-DMRSR 10 (V2), and ART-98-SW-1 11 (V3)—and three soil treatments: control (F1), poultry-manure treated (F2), and NPK-treated (F3). Each combination was replicated three times. Soil amendments followed standard agronomic protocols, including poultry manure at 15 t/ha (80 kg N/ha after nutrient analysis) and NPK 20-10-10 at 400 kg/ha (equivalent to 80 kg N, 40 kg P, and 40 kg K per hectare). The experimental field measured 27.5 m × 22 m and was subdivided into 27 plots of 2.5 m × 6 m (15 m2, 0.0015 ha). Plants were spaced at 0.25 m × 0.606 m (row × intra-row). Therefore, each plot contained 99 maize plants. Ten plants per plot were randomly tagged for physical measurements. Each plot was uniquely identified using the VarField_PltNo_Rep format (e.g., V1F1_1_2).
Data collection spanned 75 days, covering all major phenological stages from early vegetative growth to physiological maturity and final harvest. Three synchronized data streams were integrated. First, in situ soil and atmospheric measurements were captured continuously using a purpose-built, solar-powered Arduino-based IoT device equipped with API cloud functionality. The device recorded soil pH, soil temperature, soil humidity, soil nitrogen (N), phosphorus (P), potassium (K), ambient temperature, and atmospheric humidity. Second, real-time meteorological variables were retrieved from the OpenWeatherAPI using the farm’s GPS coordinates. These included weather condition and description, average/minimum/maximum temperature, pressure, humidity, sea-level and ground-level pressure, visibility, wind speed, wind degree, wind gust, rainfall, cloud cover, date/time, country code, and sunrise/sunset times. IoT sensor readings and OpenWeatherAPI calls were synchronized and logged simultaneously to a dedicated research server hosted by the Centre for Computational Science (c2snet.org) at iot.c2snet.org. Sensor-based atmospheric readings were validated against OpenWeather data, with no statistically significant differences observed. Third, physical plant measurements were obtained through direct field observations of ten randomly tagged plants per plot, including plant height, leaf count, stem diameter, and tassel emergence timing. At harvest, grain yield was measured for each sub-plot and standardized to tons per hectare, ranging from 0.493 to 6.907 consistent with expected regional productivity levels.
The harmonized dataset comprises 63,243 time-stamped instances (publicly accessible via Figshare [11]), where each instance represents the combined soil, environmental, and plant-level conditions for a specific plot at a specific moment during the growing season. Each instance corresponds to a distinct observation in time, integrating minute-by-minute environmental sensor readings with periodic plant-growth measurements. This temporal structure enables the machine-learning models to learn the dynamic relationship between evolving soil–atmosphere conditions and the final yield outcome. In total, the dataset contains 38 raw and engineered features spanning soil chemistry, moisture dynamics, microclimate variables, plant morphology, and final yield outcomes. This dataset provides a multi-modal record of soil–plant–atmosphere interactions in a Sub-Saharan African context, addressing a critical gap in publicly available agricultural datasets from low-resource regions and offering a robust foundation for machine-learning-based yield prediction. A more detailed description of the dataset and acquisition protocol can be found in [12]. The dataset attributes used in this study is provided in Table 2.
Table 2.
Summary of integrated dataset attributes including the yield data, physical dataset (crop data, soil data, and field type), OpenWeatherAPI dataset (weather data), and IoT sensor dataset (sensor data).
3.2. Data Splitting
To ensure a scientific evaluation and to prevent data leakage arising from temporal or spatial autocorrelation, the dataset was split using a plot-level group-based strategy rather than random row-level sampling [13,14,15]. Each record in the dataset is associated with a unique plot identifier (VarField_PltNo_Rep) which encodes the maize variety, soil treatment, plot number, and replicate. Because multiple time-stamped observations are collected from the same physical plot throughout the growing season, treating these observations as independent would artificially inflate model performance. To avoid this, the split was performed at the plot level, ensuring that all measurements from a given plot appear exclusively in either the training/validation set or the test set.
All unique plot IDs were first extracted and randomly shuffled using a fixed random seed to ensure reproducibility. Because a single arbitrary seed can produce yield-imbalanced partitions, we implemented a random-seed search to identify the seed that generated the most statistically homogeneous split across plot groups. Using the selected seed, eighty percent (80%) of the plots (n = 21) were allocated to the training/validation pool for hyperparameter tuning and model training; within this pool we implemented leave-one-plot-out (LOPO) cross-validation to ensure internal robustness. The remaining twenty percent (20%) of the plots (n = 6) were held out as a strict, independent test set used exclusively for final model evaluation and LIME-based explainability analysis. This group-based partition ensured that no data from the test plots influenced the training phase, thereby preventing spatial data leakage.
The split and subsequent checks were performed on the row-level modeling target column Total Grain yield (ton/ha) as present in the merged dataset (i.e., the plot-level harvest yield assigned to each time-stamped row for that plot). After splitting, the distribution of the row-level modeling yield across the training/validation and test sets was examined to confirm representativeness. As shown in Figure 2, the difference in mean of the row-level target between the training/validation pool (3.38 ton/ha) and the hold-out test set (3.35 ton/ha) was only 0.03 ton/ha (~0.08%), indicating that the row-level target distribution is balanced between partitions. Note: these train/test means refer to the row-level modeling yield (the per-observation label in the merged dataset) and therefore differ numerically from the final agronomic plot-level yield distribution reported in Section 3.1 (plot-level mean = 3.233 ton/ha).
Figure 2.
Yield distribution comparison between the training/validation pool (n = 21 plots) and the hold-out test set (n = 6 plots). Kernel density curves show total grain yield (ton/ha), with dashed lines marking mean values. The close alignment of mean yields (3.38 vs. 3.35 ton/ha) indicates similar central tendencies across subsets. Differences in distribution shape reflect plot-level heterogeneity that models must generalize across.
3.3. Data Preprocessing
Following the partitioning of the raw multimodal dataset (Section 3.2), a structured preprocessing pipeline was applied to prepare the data for learning, which is discussed in the next subsections.
3.3.1. Missing Data Analysis and Imputation
A systematic check for null values was performed across all 38 features to ensure data integrity [16,17]. The analysis revealed that missing data was restricted exclusively to 14 meteorological variables retrieved via the OpenWeatherAPI (e.g., conditn_op, description_op, temp_op, humidity_op, and wind_speed_op). Specifically, only five instances out of the 63,243 total observations (0.0079% per affected feature) contained missing values, as shown in Figure 3. No features or instances were excluded from this study, as the missing value rate was statistically negligible. To preserve the total sample size and temporal continuity of the growing season data, a hybrid imputation strategy was employed: median imputation was applied to all numerical features to maintain central tendency while remaining robust to potential sensor outliers. Mode imputation was used for categorical features (conditn_op and description_op) to preserve the most frequent environmental state. Furthermore, duplication analysis revealed that no redundant entries required removal.
Figure 3.
Missing value distribution across weather-related features in the training dataset. Each of the fourteen atmospheric variables contain the same number (5) of missing instances, indicating a consistent pattern of data gaps across the weather feed rather than feature-specific failures. This uniformity suggests a shared source of interruption, such as temporary sensor downtime or API retrieval gaps, and informs the choice of imputation strategy applied during preprocessing.
3.3.2. Outlier Identification
Following imputation, we performed outlier identification using the interquartile range (IQR) method for all numerical attributes. As illustrated in Figure 4, features such as wind_deg_op, soil_nitro, and at_humidity exhibit statistical outliers. However, these features were retained without clipping because the outliers in wind_deg_op represent valid wind directions, while the low-end outliers in soil_nitro and at_humidity reflect critical periods of environmental stress. In SSA maize production, extreme weather events (e.g., high-intensity rainfall represented in rain_op) are primary drivers of yield fluctuation. Retaining these values ensures that the six algorithms—particularly ensemble methods like XGBoost and CatBoost—accurately capture the nonlinear relationship between environmental extremes and final yield.
Figure 4.
Outlier distribution for the ten highest-variance features before normalization using the IQR method. Environmental variables/weather (wind direction, rainfall, humidity, and cloud cover) exhibit the widest spread and the highest concentration of extreme values, reflecting natural atmospheric variability and episodic weather events. Plant morphological traits (leaf width, stem girth, and stem diameter) show moderate biological variation with fewer outliers. Sensor-related variables (Silking) display narrower ranges but contain isolated anomalies. The figure highlights heterogeneous scales and patterns across feature groups relevant for preprocessing and modeling.
3.3.3. Feature Encoding and Normalization
To transform the heterogeneous raw data into a format compatible with the six algorithms, we implemented a dual-stage transformation pipeline consisting of categorical encoding and standard scaling. The dataset contains qualitative environmental descriptors, including weather conditions (conditn_op, description_op) and land characteristics (Field_Type). These variables were transformed into numerical representations using One-Hot Encoding, converting each distinct category into a binary column [18,19]. This ensures that the binary features are linearly independent, allowing the models to capture qualitative SSA-specific field observations without mathematical redundancy. In addition, given the presence of valid extreme weather values identified during the exploratory analysis, we employed the standard scaler [20,21] to normalize the numerical feature space. This preprocessing pipeline ensured that the dataset was clean, semantically structured, and appropriately scaled, enabling the proposed model to learn robust patterns across heterogeneous data sources.
3.4. Modeling
This study employs a comprehensive benchmarking framework to evaluate the predictive performance of six distinct machine learning and deep learning algorithms. These models were selected to represent a diverse spectrum of computational approaches—ranging from tree-based ensembles and distance-based learners to neural architectures—to identify the most resilient model for maize yield prediction in the SSA context.
3.4.1. Extreme Gradient Boosting (XGBoost) Regressor
The XGBoost regressor serves as a primary ensemble candidate. Its architecture is based on gradient-boosted decision trees, where a sequence of shallow trees is trained iteratively, each one correcting the residual errors of the preceding ensemble [22,23]. This additive learning process allows the model to capture the nonlinear, interaction-rich relationships characterizing maize yield formation—such as the synergistic effects of rainfall intensity, soil nitrogen levels, and atmospheric humidity stress. A critical architectural choice in our implementation is the use of the L1 loss function (reg:absoluteerror). Furthermore, the interaction between the LOPO cross-validation and XGBoost is central to the framework’s resilience. By exposing the model to different environmental groups in each fold, the boosting process is forced to learn generalizable agronomic patterns rather than memorizing site-specific signatures. We constrained the model complexity to balance expressiveness with the need for robustness across spatially distinct plots.
3.4.2. Light Gradient Boosting Machine (LightGBM)
The LightGBM regressor was employed to leverage its leaf-wise tree-growth strategy [24,25], which is highly efficient for high-dimensional environmental data. Unlike traditional level-wise growth, LightGBM expands the leaf that yields the greatest reduction in loss, enabling the model to capture deeper and more intricate interactions between physiological crop traits and varying soil conditions. In our implementation, the model was configured with 800 estimators and a learning rate of 0.10 to ensure a steady reduction in residual errors during boosting. To prevent overfitting given the geographic clustering present in the dataset, we configured the model using a maximum depth of one and 18 leaves. This configuration allows the model to remain sensitive to complex agronomic patterns while maintaining the capacity to generalize across spatially distinct plots during the LOPO cross-validation process.
3.4.3. CatBoost (Categorical Boosting)
Recognizing that agricultural datasets often rely heavily on categorical identifiers (e.g., weather conditions and field types), we employed CatBoost as a specialized gradient boosting candidate [26,27]. CatBoost is distinguished by its use of ordered boosting, which effectively addresses the problem of prediction shift—a common source of bias in smaller or highly heterogeneous datasets. The CatBoost architecture was configured with a maximum depth of three and 800 estimators to maintain parity with the other ensemble models in our study. By utilizing a symmetric tree structure, the model provides robust protection against overfitting. The integration of CatBoost within the LOPO framework allows for an evaluation of how well categorical domain-specific features translate across different field locations.
3.4.4. Random Forest Regressor (RF)
As a bagging-based ensemble method, the RF regressor was employed to provide a robust, variance-reduced baseline for yield prediction [28,29]. Unlike the sequential nature of boosting, RF constructs an ensemble of 800 independent decision trees in parallel. Each tree is trained on a unique bootstrap sample of the training data using a random subset of features for each split. The RF architecture was configured with a maximum depth of 10. By aggregating the predictions of 800 trees through an averaging process, the RF model effectively smooths out prediction errors, providing a stable benchmark for evaluating how well non-sequential ensemble methods generalize geographically distinct unseen plots within the LOPO validation framework.
3.4.5. Support Vector Machine (SVM)
To capture the nonlinear, high-dimensional interactions within the tripartite dataset, we implemented support vector regression (SVR) utilizing a radial basis function (RBF) kernel. SVR is particularly effective for agricultural modeling as it seeks to find a hyperplane that best fits the data within a specified margin (), rather than minimizing simple squared error [30,31]. In our framework, the model was configured with a penalty parameter (C = 10) and an epsilon-tube (). The RBF kernel allows the model to map environmental features—such as the nonlinear relationship between soil nitrogen availability and moisture stress—into a higher-dimensional space for more accurate yield mapping.
3.4.6. ANN-kNN Model
To establish a rigorous performance baseline, we implemented a hybrid architecture based on the framework proposed by Olayinka et al. [5]. While the original model was designed for maize yield classification, we modified the architecture to perform continuous yield prediction (regression) to suit the requirements of this study. This hybrid model functions as a stacking ensemble that utilizes an ANN for feature extraction and a kNN [32] regressor as a localized meta-learner. The primary ANN component consists of a multi-layer perceptron (MLP) with two hidden layers (64 and 32 neurons, respectively) utilizing ReLU activation functions and a dropout layer (0.2) to prevent overfitting during the feature extraction phase. The network was trained for 100 epochs using the Adam optimizer to minimize mean squared error (MSE). The final linear output of the ANN—representing a preliminary yield estimate—is then concatenated with the original scaled feature vector. This expanded hybrid feature space is subsequently passed to the kNN ( distance-weighted). By stacking the ANN’s global nonlinear insights onto the raw environmental data, the model attempts to refine its predictions based on the local similarity of plots.
3.5. Experimental Configuration
All experiments were conducted on a 64-bit Windows 10 system equipped with an Intel® Core™ i5-1135G7 CPU (2.40–2.42 GHz) and 16 GB of RAM. Model development and evaluation were performed using the Visual Studio Code 1.111 integrated development environment, alongside Jupyter Notebook 7.0.8 for interactive experimentation. The implementation was carried out in Python 3.11.9, leveraging key libraries including pandas for data manipulation, TensorFlow and Keras-Tuner for deep learning and hyperparameter optimization, and scikit-learn for baseline modeling and evaluation metrics.
3.6. Hyperparameter Tuning and Model Training
To ensure the six investigated algorithms achieved their peak predictive potential, we implemented a structured framework for hyperparameter optimization and iterative model training. We employed a random search optimization strategy to identify optimal configurations for the final training, as it offers superior efficiency in high-dimensional spaces by evaluating a representative subset of configurations [33,34]. Unlike exhaustive grid search, which is computationally prohibitive for high-dimensional spaces, random search evaluates a representative subset of configurations, often identifying high-performing models with significantly fewer iterations. This approach was particularly critical for the gradient boosting ensembles—XGBoost, LightGBM, and CatBoost—where complex interactions balance between tree depth, learning rate, and leaf count to determine model stability. The optimization and training processes were integrated directly into the Leave-One-Plot-Out (LOPO) cross-validation framework. Within each fold, the left-out plot functioned as a validation set. The models were trained on the remaining plots, and the random search evaluated 50 distinct configurations per model, targeting the minimization of mean absolute error (MAE) and root mean squared error (RMSE). For the Random Forest and SVM models, tuning prioritized regularization parameters (C) and tree constraints to prevent the models from overfitting. For the hybrid ANN-kNN, training was executed using the Adam optimizer with a batch size of 16. We applied early stopping with a patience of 10 epochs, monitoring the validation loss to truncate training upon convergence. This ensured that the feature extraction phase remained generalizable and did not memorize site-specific signatures. All training experiments were executed using a fixed random seed (seed = 42) to ensure reproducibility. Following this, the final models were retrained on the full training pool before final evaluation on the independent test set. The finalized search spaces and the resulting optimal values are reported in Table 3.
Table 3.
Hyperparameter values to tune the proposed model and four baseline methods.
3.7. Model Evaluation
To quantify the predictive performance and generalizability of the investigated models, we employed four statistical metrics. These indicators were selected to evaluate different aspects of model accuracy, including the goodness-of-fit, average error magnitude, and the sensitivity to large prediction residuals. These evaluation metrics are presented in Table 4.
Table 4.
Evaluation metrics used to assess model performance, with definitions and equations for maize yield prediction where is the measured value, is the mean of the measured value, is the predicted value, and is number of observations.
3.8. Model Explainability
Most machine learning models used for maize yield estimation are black-box systems, making it difficult to understand how individual features contribute to maize yield predictions. To address this and ensure the model’s decisions are transparent to stakeholders, we employed LIME to interpret the behavior of the best-performing algorithm. LIME is a post hoc interpretability framework that approximates complex, nonlinear models locally using interpretable surrogate models [35,36]. For a specific yield prediction, LIME perturbs the input feature space and observes the resulting shifts in the output to estimate the local contribution of each feature. This approach is particularly valuable for smallholder agriculture, as it allows for plot-level transparency. For example, LIME can quantify how a specific combination of low soil nitrogen and high atmospheric temperature contributed to a yield deficit in a particular field. By integrating LIME into our best-performing architecture, we provide feature-level explanations that translate computational outputs into actionable agronomic insights. This enhances stakeholder trust—enabling farmers and policymakers to understand which factors, such as NDVI peaks or moisture stress, most strongly influenced a specific prediction. This granular level of detail ensures that the model serves not only as a predictive tool but also as a diagnostic instrument for identifying yield-limiting factors.
4. Results and Discussion
This section presents a comprehensive evaluation of the six investigated machine learning and deep learning methods—CatBoost, LightGBM, XGBoost, SVM, RF, and the ANN-kNN—for maize yield prediction. The results are presented across five dimensions: comparative performance, error analysis and residual interpretation, impact of hyperparameter sensitivity, impact of data imputation on the model performance, and interpretability via LIME, collectively reinforcing the model’s effectiveness and transparency.
4.1. Performance Evaluation of the Models for Maize Yield Prediction
The predictive performance of the six models on the independent hold-out test set reveals a clear distinction between the various algorithmic architectures. The results, summarized in Table 5, indicate that CatBoost achieved the highest explanatory power with an of 0.756 and the lowest error magnitudes (MAE = 0.965; RMSE = 1.210). This may be attributed to its sophisticated handling of categorical environmental data and its ordered boosting mechanism that mitigates prediction bias.
Table 5.
Comparative performance of the six machine-learning models evaluated on the final hold-out test set for maize yield prediction. CatBoost achieved the highest predictive accuracy across all metrics, followed by LightGBM and SVM, reflecting their strong ability to model nonlinear, stress-driven agronomic interactions. XGBoost showed moderate performance, while RF and the ANN–kNN hybrid exhibited limited generalization under the spatially explicit evaluation framework.
LightGBM emerged as the second-best performer with a notable predictive power of = 0.736, indicating its capability to capture a significant portion of the variance in maize yield while maintaining a competitive error metrics MAE = 1.006 and RMSE = 1.264 by leveraging its specialized leaf-wise (best-first) tree growth strategy. Unlike traditional level-wise growth, this architectural approach allows LightGBM to prioritize the expansion of nodes that result in the greatest loss reduction, making it exceptionally adept at capturing the fine-grained, nonlinear interactions common in complex agronomic datasets.
Interestingly, the SVM model emerged as the third-best performer (= 0.689). Kernel-based methods excel when relationships are nonlinear but smooth, which fits the physiological response patterns of maize to environmental stress. The relatively low MAE and RMSE (1.104; 1.372) suggest that SVM maintains stable predictions across plots with differing environmental signatures.
XGBoost achieves a moderate performance (= 0.644; MAE = 1.252; RMSE = 1.469). Its L1-based objective helps manage extreme weather values, but the model is more sensitive to plot-level variability than CatBoost. The slightly higher MAE indicates that while XGBoost captures major yield-driving interactions, it occasionally underestimates or overestimates yields in plots with unusual climatic or soil profiles. This is consistent with gradient boosting’s reliance on sequential residual correction, which can be challenged by highly heterogeneous field conditions.
RF and ANN-kNN models perform similarly poorly (= 0.452; = 0.453, respectively), with high RMSE values (>1.8). RF’s averaging mechanism smooths out extreme responses, making it less capable of modeling stress effects. The ANN-kNN suffers from limited representational capacity under LOPO, where each test plot differs substantially from the training distribution. These results reinforce that simpler ensemble, or distance-based models are less suited for spatially heterogeneous yield prediction.
4.2. Error Analysis and Residual Interpretation of CatBoost vs. LightGBM
The predictive reliability of the CatBoost (= 0.758) and LightGBM (= 0.736) models were evaluated through a comparative residual analysis to identify systemic biases and variance patterns across the yield spectrum. As illustrated in Figure 5, both gradient boosting architectures exhibit a shared pattern of heteroscedasticity. The vertical spread of residuals expands significantly as the predicted maize yield exceeds 3.5 ton/ha. This distribution suggests that while the integrated tripartite features (soil, weather, and crop) are highly effective at predicting low to moderate yields, the models’ certainty diminishes during high-productivity scenarios. This loss of precision at the upper bound is likely due to the complex, nonlinear interactions governing maximum yield potential, which may require more granular, late-season physiological data or high-resolution nitrogen-use efficiency variables to fully resolve. Despite these shared trends, distinct differences in error distribution are evident between the two models. CatBoost demonstrates superior stability, with residuals clustering more tightly around the zero-error baseline across a broader range of the yield spectrum. Its symmetric tree growth strategy appears to provide a regularizing effect that smooths out extreme errors. In contrast, LightGBM displays a noticeably wider variance and higher frequency of extreme residuals, particularly in the under-prediction of bumper harvests (actual yield > 5 ton/ha). The prevalence of positive residuals at the high end of the scale indicates a systematic tendency for both models to undershoot true yield in highly favorable conditions. LightGBM’s leaf-wise (best-first) growth strategy, while architecturally efficient, appears more sensitive to localized variance in the training data, leading to higher volatility in its final test predictions. In contrast, CatBoost’s tighter residual grouping confirms its role as the more robust estimator for this agricultural dataset, maintaining better accuracy even as environmental complexity increases.
Figure 5.
Comparative residual analysis of CatBoost and LightGBM models for maize yield prediction. This figure illustrates the distribution of residuals (actual minus predicted yield) against predicted values, highlighting a distinct pattern of heteroscedasticity as yield exceeds 3.5 ton/ha. The orange markers represent CatBoost residuals, showing tighter clustering and higher predictive stability, while the teal markers indicate LightGBM residuals, characterized by a wider variance and more pronounced under-prediction in high-yield scenarios.
4.3. Impact of Hyperparameter Sensitivity on the Performance of Proposed Best-Performing Model (CatBoost)
The sensitivity analysis of the CatBoost model reveals that its predictive performance is highly dependent on the interplay between tree depth and learning rate. The empirical results, summarized in Table 6 based on the scores, demonstrate a definitive performance peak followed by a steady decline as structural complexity increases. The highest was achieved at a depth of three with a learning rate of 0.03, yielding an of 0.758. This suggests that for the environmental and trait dataset, shallow trees are more effective at capturing generalized agricultural patterns while avoiding the noise inherent in high-dimensional field data. This sensitivity is defined by two primary trends: First, a learning rate of 0.03 consistently outperformed the more conservative 0.01 and 0.10 across nearly all depths, suggesting it provides the most efficient step size for gradient descent to reach a global minimum without overshooting; second, a significant penalty for excessive depth was observed, as dropped from 0.758 at depth three to 0.638 at depth 10. This ~12% performance reduction illustrates that deeper trees introduced excessive complexity, leading the model to overfit by memorizing specific field plot anomalies rather than learning the broader, robust relationships between soil properties, weather variables, and maize yield potential.
Table 6.
Sensitivity analysis of CatBoost model performance across varying tree depths and learning rates. The results demonstrate the interplay between structural complexity and optimization speed, with the peak predictive accuracy ( = 0.758) achieved at a tree depth of three and a learning rate of 0.03.
4.4. Impact of Data Imputation on the Performance of Proposed Best Model (CatBoost) in Predicting Maize Yields
To evaluate the necessity of hybrid median/mode imputation for missing values, an ablation study was conducted (Table 7) comparing the model’s performance using manual imputation against CatBoost’s inbuilt missing data handling. The results reveal a notable finding: the omission of manual data imputation does not negatively impact the model performance, but rather marginally improves it. While manual imputation achieved a strong of 0.758, allowing the model to process raw missing values with built-in missing-data handling resulted in a better of 0.7601 and a corresponding reduction in error metrics (MAE and RMSE). This suggests that the presence of missing values in the dataset contains a structural signal or informative blank that is better captured by CatBoost’s architectural splitting logic than by filling values with central tendencies such as the median. The fact that the performance slightly improves without manual intervention confirms that the model does not require rigid data cleaning to maintain high-precision yield forecasts. This robustness is a critical advantage for real-world agricultural applications where sensor failure or incomplete farm records frequently result in unevenly distributed datasets. However, it is important to note that while CatBoost handles missing data natively, other considered algorithms in this study such as SVM, RF, or ANN-kNN may fail to execute if they encounter NaN values.
Table 7.
Comparative ablation study of CatBoost performance metrics with and without manual data imputation. The results indicate that the model’s native handling of missing values marginally outperforms the median/mode imputation strategy.
4.5. Interpreting the Proposed Best-Performing Model’s (CatBoost) Decisions with LIME for Maize Yield Prediction
In this section, we use LIME to explain the decision-making process of the CatBoost regressor by revealing how specific environmental and trait variables shape an individual yield prediction. By approximating the complex CatBoost model with a locally linear surrogate, LIME provides a detailed view of both the magnitude and direction of feature contributions for a selected row-level observation per plot in the test set, offering an intuitive interpretation of the model’s behavior at the prediction level.
For plot V2F2_5_3 (index 0) in Figure 6, the CatBoost model predicted a yield of 5.224 ton/ha for an actual yield of 6.907 ton/ha; the LIME explanation reveals the local decision logic for this specific estimate. The prediction emerged from a distinct hierarchy of features, where the major increase in predicted yield was driven by Field_Type_Field_Control contributing +1.338; Day_No. contributing +1.244; and Field_Type_Field_NPK contributing +0.710. These indicators suggest that the model interpreted the field management protocols and the specific timing of observations as the most significant drivers of productivity for this plot. However, this positive trajectory was significantly mitigated by a cluster of plant-morphology variables. Stem diameter and stem girth decreased the yield (by −0.461 and −0.588, respectively), followed by Leaf Width (−0.341), Leaf area (−0.248), and leaf length (−0.217). This indicates that even when field conditions were favorable, the model penalized the predicted yield due to reduced vegetative development in these specific physiological traits. Environmental descriptors [37,38] provided slight increase, with clear sky conditions (description_op_clear sky) adding a marginal increase of +0.226, while moderate rain (description_op_moderate rain) decreased the yield by −0.080. Agronomically, this pattern is highly coherent: the model demonstrates an ability to prioritize large-scale management features (Field Type) while simultaneously integrating fine-grained physiological metrics (stem and leaf dimensions) to refine the final yield estimate.
Figure 6.
Local interpretability analysis of the CatBoost model for plot V2F2_5_3 (index 0) using LIME. The decision tree visualization (top) shows the feature-based splits for the yield prediction, while the feature table (right) lists the corresponding values for the selected plot. The explanation (bottom) highlights the localized feature contributions to the predicted yield (5.224 ton/ha) relative to the actual yield (6.907 ton/ha). Features such as Field_Type_Field_Control, Field_Type_Field_NPK, description_op_clear sky and Day_No positively contribute to the yield prediction (green bars), whereas features such as Stem girth, Stem diameter, Leaf Width, Leaf area, and leaf length contribute negatively (red bars).
For plot V2F1_4_2 (index 588) in Figure 7, the CatBoost model predicted a yield of 3.330 ton/ha against an actual yield of 1.460 ton/ha. The LIME explanation clarifies the local decision logic behind this overestimation, revealing a complex interplay between management and physiological factors. The most significant downward pressure on the prediction was exerted by Field_Type_Field_Control, which decreased the yield estimate by −1.340. This suggests that the model interpreted the specific control field conditions as a major limiting factor for this plot. Conversely, the prediction was increased by Day_No. and Field_Type_Field_NPK features, contributing +1.241 and +0.693 to the yield estimate, respectively. These indicators show that the model viewed the timing of observations and the NPK treatment as favorable drivers that partially offset the negative influence of the control field type. However, this potential for higher productivity was further mitigated by a cluster of plant-morphology variables indicating reduced vegetative development. Stem diameter and Stem girth significantly decreased the yield (by −0.459 and −0.599, respectively), while Leaf area and leaf length also contributed negatively (−0.252 and −0.226). These physiological metrics likely signaled that the crop’s physical structure was insufficient to support a high-yield outcome. Slight adjustments were provided by environmental and specific growth descriptors: clear sky conditions (description_op_clear sky) and Leaf Width offered a marginal increase of +0.141 and +0.159, respectively. The absence of moderate rain (description_op_moderate rain) decreased the estimate by −0.084. Agronomically, the model’s logic remains consistent; it balances broad management categories with site-specific physiological data, accurately identifying that poor stem and leaf development are primary indicators of lower biomass accumulation and yield.
Figure 7.
Local interpretability analysis of the CatBoost model for plot V2F1_4_2 (index 588) using LIME. The decision tree visualization (top) shows the feature-based splits for the yield prediction, while the feature table (right) lists the corresponding values for the selected plot. The explanation (bottom) highlights the localized feature contributions to the predicted yield (3.330 ton/ha) relative to the actual yield (1.460 ton/ha). Supporting features such as Day_No., Field_Type_Field_NPK, Leaf Width, and description_op_clear sky positively contribute to the yield prediction (green bars). Conversely, significant decrease by features such as Field_Type_Field_Control, Stem girth, Stem diameter, Leaf area, Leaf length (red bars), and description_op_moderate rain indicate the model’s response to specific physiological and management constraints.
For plot V3F3_9_3 (Index 1001) in Figure 8, the CatBoost model produced a substantial overestimation, predicting 3.424 ton/ha against an actual yield of 0.660 ton/ha. The LIME explanation provides details about the model’s decision logic, revealing how competing management, environmental, and physiological signals shaped this inflated prediction. The strongest upward influence came from Field_Type_Field_Control, which increased the yield estimate by +1.320. This upward push was reinforced by Day_No., contributing +1.242, suggesting that the model interpreted the timing of the observation occurring during a growth stage normally associated with higher biomass accumulation. However, the Field_Type_Field_NPK feature decreased the yield by −0.709, indicating that the model recognized the NPK-treated field conditions as unfavorable in this specific instance. This interpretation is reinforced by a cluster of plant-morphology variables that collectively signaled poor vegetative development. The Stem diameter, Stem girth, Leaf Width, Leaf area, and Leaf length (−0.462, −0.591, −0.341, −0.251, and −0.221, respectively) exerted negative effects. These indicators point to a plant with limited structural robustness and reduced photosynthetic surface area—traits strongly associated with low yield potential. Environmental descriptors added slight but meaningful adjustments. For instance, the presence of clear sky (description_op_clear sky) conditions slightly increased the prediction (+0.221), while the absence of moderate rain (description_op_moderate rain) decreased the yield by −0.079. Agronomically, these patterns are consistent: the model attempted to reconcile favorable temporal and field-type cues with physiological evidence of poor crop performance. The overestimation ultimately reflects a misalignment between management-level indicators that typically predict higher yields and plant-level measurements that clearly signal stress.
Figure 8.
Local interpretability analysis of the CatBoost model for plot V3F3_9_3 (Index 1001) using LIME. The decision tree visualization (top) shows the feature-based splits for the yield prediction, while the feature table (right) lists the corresponding values for the selected plot. The explanation (bottom) highlights the localized feature contributions to the predicted yield (3.424 ton/ha) relative to the actual yield (0.660 ton/ha). Field_Type_Field_Control, Day_No., and description_op_clear sky positively contribute to the yield prediction (green bars), while features such as Field_Type_Field_NPK, Stem girth, Stem diameter, Leaf area, leaf length, and description_op_moderate rain (red bars) contribute negatively.
For plot V3F2_8_1 (Index 2614) in Figure 9, the CatBoost model produced a slight underestimation, predicting 4.689 ton/ha against an actual measured yield of 5.129 ton/ha. The LIME explanation clarifies the local decision logic behind this discrepancy, showing how the model balanced strong management-level signals with physiological indicators that suggested moderate growth limitations. The most influential upward driver was Field_Type_Field_Control, which increased the yield estimate by +1.339, indicating that the model interpreted certain field-level conditions as resembling those typically associated with higher-performing control plots. Additionally, Day_No. (+1.243) and Field_Type_Field_NPK (+0.709) contributed positively, suggesting that the model viewed both the timing of the observation and the encoded NPK-field characteristics as favorable indicators of productive growth. However, these positive cues were counteracted by a consistent set of plant-morphology variables that collectively signaled suboptimal vegetative development. For example, Stem diameter and Stem girth exerted substantial downward pressure (−0.461 and −0.589), while Leaf Width, Leaf area, and leaf length contributed additional negative effects (–0.342, −0.250, and −0.219). These physiological features point to a crop with reduced structural robustness and limited photosynthetic surface area—traits that typically constrain biomass accumulation and final yield. Environmental descriptors added smaller but meaningful adjustments: clear sky conditions (description_op_clear sky) slightly increased the prediction (+0.231), whereas the absence of moderate rain (description_op_moderate rain) (−0.077) nudged the estimate downward. Agronomically, the model’s reasoning is coherent. It attempted to reconcile strong management-level indicators—normally associated with higher yield potential—with plant-level measurements that signaled moderate physiological stress. The slight underestimation ultimately reflects the model’s weighting of these competing signals: while field-type and temporal cues suggested a productive plot, the morphological indicators correctly conveyed that the crop’s structural development was not fully aligned with the highest-yielding profiles observed in the dataset.
Figure 9.
Local interpretability analysis of the CatBoost model for plot V3F2_8_1 using LIME. The decision tree visualization (top) shows the feature-based splits for the yield prediction, while the feature table (right) lists the corresponding values for the selected plot. The explanation (bottom) highlights the localized feature contributions to the predicted yield (4.689 ton/ha) relative to the measured yield (5.129 ton/ha). Field_Type_Field_Control, Day_No., Field_Type_Field_NPK, and description_op_clear sky positively contribute to the yield prediction (green bars), while features such as Stem girth, Stem diameter, Leaf area, and Leaf length, (red bars) contribute negatively.
Consequently, the aggregated LIME analysis across the farm plots reveals a core subset of features that consistently dictate maize yield potential. Specifically, Field_Type_Field_Control, Field_Type_Field_NPK, Day_No, description_op_clear sky, and Leaf Width emerged as the most influential features.
4.6. Limitations of the Study
While the dataset used in this study is uniquely rich in temporal and multi-modal details, it was collected from a single experimental field within one agro-ecological zone. This spatial restriction limits the environmental variability captured by the models and may constrain the generalizability of the results to broader regional or multi-season production systems [39,40]. In addition, the study relies on manually collected plant-morphology measurements, which, despite being systematically recorded, are subject to observer variability and limited temporal resolution. These measurements capture structural traits at discrete time points rather than continuous growth trajectories, potentially reducing the model’s ability to learn fine-grained developmental dynamics.
5. Conclusions
This study demonstrates that integrating multi-modal soil–plant–atmosphere data with advanced machine-learning techniques provides a powerful framework for predicting maize yield in sub-Saharan Africa. By leveraging a uniquely detailed dataset collected through synchronized IoT-based sensing, API-driven meteorological feeds, and systematic field measurements [12], the modeling pipeline was able to capture the complex, nonlinear interactions that govern crop performance across diverse management regimes and environmental gradients. Across the benchmarking suite, CatBoost emerged as the most reliable and generalizable model, achieving the highest predictive accuracy on the final hold-out test set and demonstrating stable performance under the stringent LOPO cross-validation strategy. Its ability to integrate broad management-level indicators with fine-grained physiological and environmental cues underscores the importance of models capable of learning hierarchical, interaction-rich relationships in agronomic systems. LightGBM and SVM also exhibited strong predictive capacity, while XGBoost demonstrated notable performance despite greater sensitivity to plot-level variability. In contrast, Random Forest and the ANN-kNN hybrid showed varying degrees of underperformance, particularly in plots characterized by extreme climatic or morphological conditions. These findings highlight the differential sensitivity of machine-learning algorithms to spatial heterogeneity, data imbalance, and the nonlinear stress responses inherent in crop production. The interpretability analysis using LIME provided critical insights into the local decision pathways of the CatBoost model. These explanations reveal how the model integrates field-type encodings, temporal progression, and plant-morphology indicators to form yield estimates. By linking model behaviour to agronomically meaningful signals, the interpretability framework enhances the transparency and practical utility of the modeling approach.
Addressing the limitations identified in this study opens several promising avenues for future work. The first is the expansion of data collection beyond a single experimental field to encompass multiple agro-ecological zones, soil types, and management systems. Multi-location and multi-season datasets would introduce greater environmental variability, enabling models to learn broader generalization patterns and reducing the risk of site-specific bias. Such expansion would also support the development of domain-adaptation or transfer-learning frameworks capable of leveraging knowledge across heterogeneous farming contexts. A second direction involves improving the temporal resolution and objectivity of plant-morphology measurements. Integrating automated phenotyping tools—such as UAV-based multispectral imaging, LiDAR canopy profiling, or ground-based machine-vision systems—would provide continuous, high-fidelity measurements of plant structure and growth dynamics. These modalities could capture early stress signatures and developmental trajectories that are difficult to observe through manual measurements, thereby enhancing the model’s ability to detect nonlinear physiological responses.
Author Contributions
Conceptualization, D.D.O., H.C.M., A.D.F. and A.A.-M.; methodology, D.D.O., H.C.M., A.D.F. and A.A.-M.; formal analysis, D.D.O., H.C.M., A.D.F. and A.A.-M.; investigation, D.D.O.; writing—original draft preparation, D.D.O.; writing—review and editing, D.D.O., H.C.M., A.D.F. and A.A.-M.; visualization, D.D.O., H.C.M., A.D.F. and A.A.-M. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by a National Research Foundation grant, co-funded by Telkom SA SOC Ltd., with grant number FTP241104278974.
Data Availability Statement
Data was downloaded from https://doi.org/10.6084/m9.figshare.23994324.v2 [11].
Acknowledgments
The authors express their gratitude to Olayinka et al. for providing open access to the dataset used in this study.
Conflicts of Interest
The authors declare no conflicts of interest. The funding sponsors had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, and in the decision to publish the results.
References
- Nikhil, U.V.; Pandiyan, A.M.; Raja, S.P.; Stamenkovic, Z. Machine learning based crop yield prediction in south India: Performance analysis of various models. Computers 2024, 13, 137. [Google Scholar] [CrossRef] [Scilit]
- Fei, S.; Hassan, M.A.; Xiao, Y.; Su, X.; Chen, Z.; Cheng, Q.; Duan, F.; Chen, R.; Ma, Y. UAV-based multi-sensor data fusion and machine learning algorithm for yield prediction in wheat. Precis. Agric. 2023, 24, 187–212. [Google Scholar] [CrossRef] [Scilit]
- Alibabaei, K.; Gaspar, P.D.; Lima, T.M. Crop yield estimation using deep learning based on climate big data and irrigation scheduling. Energies 2021, 14, 3004. [Google Scholar] [CrossRef] [Scilit]
- Shook, J.; Gangopadhyay, T.; Wu, L.; Ganapathy Subramanian, B.; Sarkar, S.; Singh, A.K. Crop yield prediction integrating genotype and weather variables using deep learning. PLoS ONE 2021, 16, 0252402. [Google Scholar] [CrossRef] [Scilit]
- Olayinka, T.C.; Adetunmbi, A.O.; Obe, O.O.; Ibam, E.O.; Olayinka, A.S. A data driven machine learning approach toward an improved maize crop production. Frankl. Open 2025, 12, 100334. [Google Scholar] [CrossRef] [Scilit]
- Kuradusenge, M.; Hitimana, E.; Mtonga, K.; Gatera, A.; Habiyaremye, J.; Ngabonziza, J.; Hanyurwimfura, D.; Rukundo, P.; Mukasine, A. Smart-cyps: An intelligent internet of things and machine learning powered crop yield prediction system for food security. Discov. Internet Things 2024, 4, 23. [Google Scholar] [CrossRef] [Scilit]
- Huber, F.; Inderka, A.; Steinhage, V. Leveraging remote sensing data for yield prediction with deep transfer learning. Sensors 2024, 24, 770. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zachow, M.; Ofori-Ampofo, S.; Kunstmann, H.; Kuzu, R.S.; Zhu, X.X.; Asseng, S. Wheat yield forecasts with seasonal climate models and long short-term memory networks. Comput. Electron. Agric. 2025, 239, 110965. [Google Scholar] [CrossRef] [Scilit]
- Pai, D.G.; Balachandra, M.; Kamath, R. Explainable AI in agriculture: Review of applications, methodologies, and future directions. Eng. Res. Express 2025, 7, 032202. [Google Scholar] [CrossRef] [Scilit]
- Olatinwo, D.D.; Myburgh, H.C.; De Freitas, A.; Abu-Mahfouz, A.M. A review of smart crop technologies for resource constrained environments: Leveraging multimodal data fusion, edge-to-cloud computing, and IoT virtualization. J. Sens. Actuator Netw. 2025, 14, 99. [Google Scholar] [CrossRef] [Scilit]
- Olayinka, T.C.; Adetunmbi, A.O.; Obe, O.O.; Ibam, E.O.; Olayinka, A.S.; Ogedegbe, S.; Law-Ogbomo, K.E.; Izevbigie, E.E.; Jombo, O.E.; Obajuwana, G.E.; et al. Incorporating IoT Sensor Data and Physical Parameter Data for Maize Crop Yield Analysis. Figshare Dataset 2023. [Google Scholar] [CrossRef]
- Olayinka, T.C.; Adetunmbi, A.O.; Obe, O.O.; Ibam, E.O.; Olayinka, A.S.; Ogedegbe, S.; Law-Ogbomo, K.E.; Izevbigie, E.E.; Jombo, O.E.; Obajuwana, G.E.; et al. Data on assessing the influence of soil, environmental, and physical parameters on maize crop yield. Environ. Phys. Parameters Maize Crop Yield 2024. [Google Scholar] [CrossRef] [Scilit]
- Muraina, I. Ideal dataset splitting ratios in machine learning algorithms: General concerns for data scientists and data analysts. In Proceedings of the 7th International Mardin Artuklu Scientific Research Conference, Mardin, Turkey, 10–12 December 2021; pp. 496–504. [Google Scholar]
- Kulkarni, S. Impact of various data splitting ratios. In Proceedings of the Second International Conference on Emerging Trends in Engineering (ICETE 2023), Hyderabad, India, 28–30 April 2023; Springer Nature: Berlin/Heidelberg, Germany, 2023; Volume 223, p. 96. [Google Scholar] [CrossRef] [Scilit]
- Nguyen, Q.H.; Ly, H.-B.; Ho, L.S.; Al-Ansari, N.; Le, H.V.; Tran, V.Q.; Prakash, I.; Pham, B.T. Influence of data splitting on performance of machine learning models in prediction of shear strength of soil. Math. Probl. Eng. 2021, 2021, 4832864. [Google Scholar] [CrossRef] [Scilit]
- Josse, J.; Chen, J.M.; Prost, N.; Varoquaux, G.; Scornet, E. On the consistency of supervised learning with missing values. Stat. Pap. 2024, 65, 5447–5479. [Google Scholar] [CrossRef] [Scilit]
- Acuna, E.; Rodriguez, C. The treatment of missing values and its effect on classifier accuracy. In Classification, Clustering, and Data Mining Applications; Springer: Berlin/Heidelberg, Germany, 2004; pp. 639–647. [Google Scholar] [CrossRef] [Scilit]
- Dahouda, M.K.; Joe, I. A deep-learned embedding technique for categorical features encoding. IEEE Access 2021, 9, 114381–114391. [Google Scholar] [CrossRef] [Scilit]
- Kosaraju, N.; Sankepally, S.R.; Mallikharjuna Rao, K. Categorical data: Need, encoding, selection of encoding method and its emergence in machine learning models—A practical review study on heart disease prediction dataset using pearson correlation. In Proceedings of International Conference on Data Science and Applications: ICDSA 2022, Kolkata, India, 26–27 March 2022; Springer: Berlin/Heidelberg, Germany, 2023; Volume 1, pp. 369–382. [Google Scholar] [CrossRef] [Scilit]
- Polatgil, M. Investigation of the effect of data normalization on classification and feature selection in intrusion detection system. Indones. J. Comput. Sci. 2022, 11. [Google Scholar] [CrossRef] [Scilit]
- Raju, V.G.; Lakshmi, K.P.; Jain, V.M.; Kalidindi, A.; Padma, V. Study the influence of normalization/transformation process on the accuracy of supervised classification. In Proceedings of the 2020 Third International Conference on Smart Systems and Inventive Technology (ICSSIT), Tirunelveli, India, 20–22 August 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 729–735. [Google Scholar] [CrossRef] [Scilit]
- Chen, T.; He, T.; Benesty, M.; Khotilovich, V.; Tang, Y.; Cho, H.; Chen, K.; Mitchell, R.; Cano, I.; Zhou, T. XGBoost: Extreme Gradient Boosting, R Package Version 0.4-2; Scientific Research Publishing Inc.: Wuhan, China, 2015; Volume 1, pp. 1–4.
- Osman, A.I.; Ahmed, A.N.; Chow, M.F.; Huang, Y.F.; El-Shafie, A. Extreme gradient boosting (XGBoost) model to predict the groundwater levels in Selangor, Malaysia. Ain Shams Eng. J. 2021, 12, 1545–1556. [Google Scholar] [CrossRef] [Scilit]
- Guo, J.; Yun, S.; Meng, Y.; He, N.; Ye, D.; Zhao, Z.; Jia, L.; Yang, L. Prediction of heating and cooling loads based on light gradient boosting machine algorithms. Build. Environ. 2023, 236, 110252. [Google Scholar] [CrossRef] [Scilit]
- Hartanto, A.D.; Kholik, Y.N.; Pristyanto, Y. Stock price time series data forecasting using the light gradient boosting machine (LightGBM) model. JOIV Int. J. Inform. Vis. 2023, 7, 2270–2279. [Google Scholar]
- Dasi, H.; Ying, Z.; Yang, B. Predicting the consumed heating energy at residential buildings using a combination of categorical boosting (CatBoost) and Meta heuristics algorithms. J. Build. Eng. 2023, 71, 106584. [Google Scholar] [CrossRef] [Scilit]
- Ibrahim, A.A.; Ridwan, R.L.; Muhammed, M.M.; Abdulaziz, R.O.; Saheed, G.A. Comparison of the CatBoost classifier with other machine learning methods. Int. J. Adv. Comput. Sci. Appl. 2020, 11, 738–748. [Google Scholar] [CrossRef] [Scilit]
- Bhattacharya, S.; Chakraborty, S. Prediction of responses in a CNC milling operation using random forest regressor. Facta Univ. Ser. Mech. Eng. 2023, 21, 685–700. [Google Scholar] [CrossRef] [Scilit]
- El Mrabet, Z.; Sugunaraj, N.; Ranganathan, P.; Abhyankar, S. Random forest regressor-based approach for detecting fault location and duration in power systems. Sensors 2022, 22, 458. [Google Scholar] [CrossRef] [Scilit]
- Valkenborg, D.; Rousseau, A.J.; Geubbelmans, M.; Burzykowski, T. Support vector machines. Am. J. Orthod. Dentofac. Orthop. 2023, 164, 754–757. [Google Scholar] [CrossRef] [Scilit]
- Pisner, D.A.; Schnyer, D.M. Support vector machine. In Machine Learning; Academic Press: Cambridge, MA, USA, 2020; pp. 101–121. [Google Scholar]
- Zhu, Y.; Zhang, S.; Tang, S.; Gao, Q. Research progress and applications of artificial intelligence in agricultural equipment. Agriculture 2025, 15, 1703. [Google Scholar] [CrossRef] [Scilit]
- Esmaeili, A.; Ghorrati, Z.; Matson, E.T. Agent-based collaborative random search for hyperparameter tuning and global function optimization. Systems 2023, 11, 228. [Google Scholar] [CrossRef] [Scilit]
- Rimal, Y.; Sharma, N.; Alsadoon, A. The accuracy of machine learning models relies on hyperparameter tuning: Student result classification using random forest, randomized search, grid search, bayesian, genetic, and optuna algorithms. Multimed. Tools Appl. 2024, 83, 74349–74364. [Google Scholar] [CrossRef] [Scilit]
- Hooshyar, D.; Yang, Y. Problems with sharp and lime in interpretable ai for education: A comparative study of post-hoc explanations and neural-symbolic rule extraction. IEEE Access 2024, 12, 137472–137490. [Google Scholar] [CrossRef] [Scilit]
- Hung, Y.-H.; Lee, C.-Y. Bmb-lime: Lime with modeling local nonlinearity and uncertainty in explainability. Knowl.-Based Syst. 2024, 294, 111732. [Google Scholar] [CrossRef] [Scilit]
- Lobell, D.B.; Cassman, K.G.; Field, C.B. Crop yield gaps: Their importance, magnitudes, and causes. Annu. Rev. Environ. Resour. 2009, 34, 179–204. [Google Scholar] [CrossRef] [Scilit]
- Kim, K.-H.; Lee, B.-M. Effects of climate change and drought tolerance on maize growth. Plants 2023, 12, 3548. [Google Scholar] [CrossRef] [Scilit]
- Fischer, R.A.; Edmeades, G.O. Breeding and cereal yield progress. Crop Sci. 2010, 50, 70–85. [Google Scholar] [CrossRef] [Scilit]
- Kruseman, G.; Mottaleb, K.A.; Tesfaye, K.; Bairagi, S.; Robertson, R.; Mandiaye, D.; Frija, A.; Gbegbelegbe, S.; Alene, A.; Prager, S. Rural transformation and the future of cereal-based agri-food systems. Glob. Food Secur. 2020, 26, 100441. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.










