Iranian Journal of Field Crops Research

Iranian Journal of Field Crops Research

Calibration, Evaluation, and Validation of the Most Appropriate Machine Learning Algorithms for Predicting Corn (Zea mays L.) Seed Yield under Biofertilizer Applications: An Interdisciplinary Approach

Document Type : Research Article

Author
Department of Agrotechnology, Faculty of Agriculture, Ferdowsi University of Mashhad, Mashhad, Iran
Abstract
Introduction
The escalating degradation of water and soil resources, coupled with global warming, population growth, and climate change, necessitates a reevaluation of food production systems. Corn (Zea mays L.), as the third most strategic crop worldwide, faces increasing demand due to rising food needs. Optimizing seed yield under varying environmental conditions is critical, with arbuscular mycorrhizal fungi (AMF) and plant growth-promoting rhizobacteria (PGPR) playing pivotal roles by enhancing nutrient uptake (e.g., phosphorus and nitrogen) and improving plant resilience to stresses and pathogens. However, the complex eco-physiological interactions influencing seed yield remain poorly understood, underscoring the need for advanced modeling tools. Traditional regression models often fail to capture non-linear and interactive relationships among factors such as photosynthesis rates, nutrient levels, and plant anatomical traits. Consequently, machine learning models like Deep Neural Networks (DNN) and Transformers have emerged as powerful alternatives for precision agriculture. This study aims to identify key features affecting corn seed yield using stepwise regression and compare eight machine learning algorithms, Enhanced DNN, Transformer, XGBoost, SVM, ANN, ANFIS, LightGBM, and SVR, to determine the most accurate model for predicting yield and unveiling hidden eco-physiological relationships.
Materials and Methods
The experiments were conducted over two consecutive years at the research farm of Ferdowsi University of Mashhad, Iran (latitude 36°15'N, longitude 59°28'E, altitude 985 m), located in the Kashafroud River basin. The region features a semi-arid climate with an average annual rainfall of 252 mm and a mean temperature of 15°C, with loamy soil of moderate organic carbon content. The dataset comprised 96 samples and 73 features, collected over two growing seasons, including plant traits (e.g., leaf chlorophyll content via SPAD index, nitrogen concentration) and soil characteristics. Of these, 32 were primary features (e.g., photosynthesis rate, leaf area index, canopy temperature), and 41 were engineered interaction features (e.g., Pmax, Mean_Leaf Area Index, Canopy Temp, 1_Root Colonization), designed based on domain knowledge of agro-ecophysiology, soil ecology, AMF, and PGPR. Data were randomly split (random_state = 42) into 70% training (67 samples), 15% validation (14 samples), and 15% test (15 samples) sets, with standardization applied using StandardScaler. Feature selection employed stepwise backward regression, reducing 73 features to 13 key variables (e.g., Canopy Temp_3, % P plant) based on adjusted R², multicollinearity, and variance inflation factor (VIF). Among the 15 machine learning algorithms evaluated, eight were configured with model-specific architectures, including an Adaptive Neuro-Fuzzy Inference System (ANFIS) implemented using TensorFlow-based layers, a Transformer model with two attention heads, an Artificial Neural Network (ANN) with three hidden layers, and a Support Vector Regression (SVR) model with a radial basis function (RBF) kernel. Model performance was evaluated using the coefficient of determination (R²), root mean square error (RMSE), mean absolute error (MAE), and Willmott's index of agreement (d). In addition, the Shapiro–Wilk test was used to assess the normality of model residuals.
Results and Discussion
Stepwise regression yielded a model with an adjusted R² of 58.53% and a predictive R² of 51.06%, identifying 13 features (e.g., Canopy Temp_3, coefficient = 0.2451, p = 0.002). Machine learning results identified ANFIS (R² = 0.555), the Transformer model (R² = 0.545), and ANN (R² = 0.518) as the top-performing models, whereas SVM (R² = 0.325) exhibited the lowest performance. The Nemenyi diagram ranked ANN first (mean rank = 1.50, Willmott's d = 0.848), followed by the Transformer model, with a critical distance of 1.11 indicating significant differences (α = 0.05) between the highest- and lowest-ranked models. Taylor diagrams highlighted the superior performance of the Transformer model (RMSE = 2.834, R² = 0.545), with ANFIS and ANN performing similarly. SHAP plots revealed that interactions such as Leaf Area Index–Dry Matter Yield were among the most influential predictors, while SVR shared nine features with the regression model. Correlation analysis grouped the features into physiological (e.g., SPAD_Mean) and yield-related (e.g., Dry Matter Yield) categories, with strong positive correlations (e.g., SPAD_2 and cob diameter, r = 0.82) and strong negative correlations (e.g., Canopy Temp_Mean and Root Colonization, r = −0.82). Skewed distributions in KDE plots underscored the need for non-linear models. Force plots (e.g., LightGBM sample) showed features like Leaf Area Index_Dry Matter Yield (+280.047) driving predictions, while loss curves for Enhanced DNN indicated effective convergence.
Conclusion
The study suggests that neural network-based models excel in capturing complex eco-physiological interactions, with canopy temperature and root-nitrogen interactions as key predictors, offering insights for sustainable corn production despite data size limitations.
Keywords
Subjects

Authors retain the copyright. This is an open access article distributed under Creative Commons Attribution 4.0 International License (CC BY 4.0)

  1. Abekoon, T., Sajindra, H., Rathnayake, N., Ekanayake, I., Jayakody, A. (2025). A novel application with explainable machine learning (SHAP and LIME) to predict soil N, P, and K nutrient content in cabbage cultivation. Smart Agricultural Technology, 11, 100879. https://doi.org/10.1016/j.atech.2025.100879
  2. Bao, X., Zou, J., Zhang, B., Wu, L., Yang, T., & Huang, Q. (2022). Arbuscular mycorrhizal fungi and microbes interaction in rice mycorrhizosphere. Agronomy, 12(6), 1277. https://doi.org/10.3390/agronomy12061277
  3. Bhupenchandra, I., Chongtham, S. K., Devi, A. G., & Dutta, P. (2024). Unlocking the potential of arbuscular mycorrhizal fungi: exploring role in plant growth promotion, nutrient uptake mechanisms, biotic stress alleviation, and sustaining agricultural production systems. Journal of Plant Growth Regulation. https://doi.org/10.1007/s00344-024-11467-9
  4. Bracho-Mujica, G., Rötter, R. P., Haakana, M., Palosuo, T., Fronzek, S., Asseng, S., Yi, C., Gaiser, T., Kassie, B., Paff, K., Eyshi Rezaei, E., Rodriguez, A., Ruiz-Ramos, M., Srivastava, A. K., Stratonovixh, P., Tao, F., & Semenov, M. A. (2024). Effects of changes in climatic means, variability, and agro-technologies on future wheat and maize yields at 10 sites across the globe. Agricultural and Forest Meteorology, 346, 109887. https://doi.org/10.1016/j.agrformet.2024.109887
  5. Brar, B., Bala, K., Saharan, B. S., Kumar Sadh, P., & Duhan, J. S. (2024). Bio-boosting agriculture: Harnessing the potential of fungi-bacteria-plant synergies for crop improvement. Discover Plants,1, 21 https://doi.org/10.1007/s44372-024-00023-0
  6. Cohen, J. (1988). Statistical Power Analysis for the Behavioral Sciences, 2nd Ed. New York: Routledge.
  7. Fashoto, S., Mbunge, E., Opeyemi, O. G., & Van Den Burg, J., (2021). Implementation of machine learning for predicting maize crop yields using multiple linear regression and backward elimination. Malaysian Journal of Computing, 6, 679–697.
  8. Godfray, H. C. J., Poore, J., & Ritchie, H. (2024). Opportunities to produce food from substantially less land. BMC Biology, 22,138. https://doi.org/10.1186/s12915-024-01936-8
  9. Khaki, S., Wang, A., & Archontoulis, A. V. (2020). A CNN-RNN Framework for Crop Yield Prediction. Front. Plant Sci. Sec. Computational Genomics, https://doi.org/10.3389/fpls.2019.01750
  10. Khoso, M. A., Wagan, S., Alam, I., Hussain, A., Ali, Q., Saha, S., Poudel, T. R., Manghwar, H., & Liu, F. (2024). Impact of plant growth-promoting rhizobacteria (PGPR) on plant nutrition and root characteristics: Current perspective. Plant Stress, 11, 100341. https://doi.org/10.1016/j.stress.2023.100341.
  11. Kuhn, M., & Johnson, K. (2013). Applied Predictive Modeling. Pringer Science & Business Media, 600 p. ISBN: 978-1-4614-6848-6. https://doi.org/10.1007/978-1-4614-6849-3
  12. Mitra, D., Panneerselvam, P., Senapati, A., Chidambaranathan, P., Nayak, A. K., & Mohapatra, P. K. D. (2023). Arbuscular mycorrhizal fungi response on soil phosphorus utilization and enzymes activities in aerobic rice under phosphorus-deficient conditions. Life (Basel). 30,3(5), 1118. https://doi.org/10.3390/life13051118
  13. Moore, D. S., Notz, W. I., & Flinger, M. A. (2013). The Basic Practice of Statistics (6th ed.). New York, NY: W. H. Freeman and Company. 138 p.
  14. Nayak, H. S., Silva, J. V., Parihar, C. M., Krupnik, T. J., Sena, D. R., Kakraliya, S. K., Jat, H. S., Sidhu, H. S., Sharma, P. C., Jat, M. L., Sapkota, T. B. (2022). Interpretable machine learning methods to explain on-farm yield variability of high productivity wheat in Northwest India. Field Crops Research, 287, 108640. https://doi.org/10.1016/j.fcr.2022.108640
  15. Pentos, K., Mbah, J. T., Pieczarka, K., Niedbała, G., & Wojciechowski, T. (2022). Evaluation of multiple linear regression and machine learning approaches to predict soil compaction and shear stress based on electrical parameters. Applied Sciences, 12(17), 8791. https://doi.org/10.3390/app12178791
  16. Salvador, G. L. O., Araju, F. F., Pereira, A. P. A., Bonofacio, A., & Araujo, A. S. F. (2022). Rhizobacteria and arbuscular mycorrhizal fungus presented distinct and specific effects on soybean growth when inoculated with organic compost. Rhizosphere, 22, 100513. https://doi.org/10.1016/j.rhisph.2022.100513
  17. Srivastava, A. K., Safaei, N., Khaki, S., Lopez, G., Zeng, W., Ewert, F. Gaiser, T., & Rahimi, J. (2022). Winter wheat yield prediction using convolutional neural networks from environmental and phenological data. Scientific Reports, 12(1). https://doi.org/10.1038/s41598-022-06249-w
  18. Taiz, L., Moller, I. M., Murphy, A., & Peer, W.A. (2018). Fundamentals of Plant Physiology. New York, USA: Oxford University. Press. ISBN 978160535790
  19. Wang, Y., Zhang, Q., Yu, F., Zhang, N., Zhang, X., Li, Y., Wang, M., & Zhang, J. (2024). Progress in research on deep learning-based crop yield prediction. Agronomy, 14(10), 2264. https://doi.org/10.3390/agronomy14102264
  20. Xie, X., Wu, T., Zhu, M., Jiang, G., Xu, Y., Wang, X., & Pu, L. (2021). Comparison of random forest and multiple linear regression models for estimation of soil extracellular enzyme activities in agricultural reclaimed coastal saline land. Ecological Indicators, 120, 106925. https://doi.org/10.1016/j.ecolind.2020.106925
Send comment about this article
Enter Name.
Enter a valid email address.
Enter a vaid affiliation.
Enter comments (At leaset 10 words)
CAPTCHA Image
Enter Security Code Correctly.

  • Receive Date 24 June 2025
  • Revise Date 16 August 2025
  • Accept Date 29 September 2025
  • First Publish Date 04 October 2025