YIELD PREDICTION OF NSUKKA YELLOW PEPPER USING SOME MACHINE LEARNING MODELS
DOI:
https://doi.org/10.4314/njt.2025.5528Keywords:
Nsukka Yellow Pepper, ,Crop Yield Prediction, Machine Learning, Experimental InvestigationAbstract
In this study, the accuracy and efficiency of four machine learning models, Random Forest, Decision Tree, Multiple Linear Regression and Support Vector Machine were evaluated for predicting the yield of Nsukka yellow pepper. This kind of predictive study will help farmers and other related workers in informed decision making with farm inputs, resource optimization, risk management and market planning. The study was carried out at the Research Farm, Department of Agricultural and Bioresources Engineering, University of Nigeria, Nsukka, Enugu State, Nigeria. Historical data for temperature, humidity and solar radiation were collected from the Meteorological Station of the National Centre for Energy Research and Development, University of Nigeria, Nsukka. The historical data covered a period of three months, 9th January to 9th April 2024, corresponding to the period when crop parameters such as plant height, leaf length, leaf width and crop yield were measured and collated for one hundred and seven plants of Nsukka yellow pepper. This period covers the time from transplanting to harvesting. The machine learning regression algorithms were trained, validated and tested using yield data from the pepper farm. The algorithms developed with Python codes were trained in Google Colab. Results revealed that the Multiple Linear Regression model had the best performance metrics with an MSE of 45.23, RMSE of 6.73 and R2 of 0.67. This implies that the Multiple Linear Regression model is an effective tool for predicting the yield of Nsukka yellow pepper, and hence useful for decision support to farmers. Furthermore, to statistically confirm the performance differences among the models, one-way ANOVA and ANCOVA tests were conducted. ANOVA results (F = 25.76, p < 0.001) showed significant variation among the mean predicted yields for the four models, while the ANCOVA (F = 18.92, p < 0.001), controlling for actual yield, confirmed that the models differed significantly even after accounting for real yield effects. This confirms that the Multiple Linear Regression and Support Vector Regression models outperformed Random Forest and Decision Tree models in terms of predictive consistency.
References
[1] Alawode,O.O. Obegunde,V.O. “Economic Analysis of Pepper Marketing in Oyo State, Nigeria,” Applied Tropical Agriculture., 21(3), 116-121, 2016.
[2] D.C. Raoul-Fani,D.C. Ukpe,H.U. . Ngo,N.V. Mohamadou,S. Adedze,M. Pemunta,N.V. “Perceived effects of climate change on profit efficiency among small scale chili pepper marketers in Benue State, Nigeria, GeoJournal, 86, pages 1849–1862, 2021
[3] Gobie,W. “A seminar review on red pepper (Capsicum) production and marketing in Ethiopia”, Cogent Food & Agriculture, 5:1, 1647593, 2019, DOI: 10.1080/23311932.2019.1647593.
[4] Ebe,F.E. Obike,K.C. Oti,G.O. Njoku,J.I.K. Abonyi,J.O. “Analysis of resources use, productivity and profitability among yellow pepper rural female farmers in Nsukka Agricultural Zone of Enugu State, Nigeria,” Faman Journal, 21(1), 2021.
[5] Olutumise,A.I. “Determinants of market participation and preference for production of pepper (Capsicum spp.) among farmers in southwest, Nigeria, Heliyon, 8, 9e10585 2022.
[6] Maspaitell,M. Garnevska,E. Siddique,M.I. Sha,N. “Towards high value markets: a case study of smallholder vegetable farmers in Indonesia,” International Food and Agribusiness Management Review, 21(1), pp. 73–88, 2023.
[7] Onwubuya,E.A. Okporie,E.O. Nenna,M.G. “Nsukka yellow pepper: Processing & preservation techniques among women farmers,” African Journal of Agricultural Research, 4(9), pp. 859–863, 2009.
[8] van Klompenburg,T. Kassahun,A. Catal,C. “Crop yield prediction using machine learning: A systematic literature review,” Computers and Electronics in Agriculture., 214, 108298, 2023.
[9] Saruk,B.S. Mokesh,R.G. “Optimizing rice yield prediction: A policy-oriented approach to agricultural sustainability,” Results in Engineering, 28, 2025, 107844, https://doi.org/10.1016/j.rineng.2025.107844
[10] Liu,S.C. Jian,Q.Y. Wen,H.Y. Chung,C.H. “A Crop Harvest Time Prediction Model for Better Sustainability, Integrating Feature Selection and Artificial Intelligence Methods,” Sustainability, 14, 14101, 2022.
[11] Zhang,L. Zhang,Z. Luo,Y. Cao,J. Tao,F. “Combining Optical, Fluorescence, Thermal Satellite, and Environmental Data to Predict County-Level Maize Yield in China Using Machine Learning Approaches,” Remote Sensing., 12(1), 21, 2020.
[12] Shah Hosseini,M. Martinez-Feria,R.A. Hu,G. Archontoulis,S.V. “Maize yield and nitrate loss prediction with machine learning algorithms,” Environmental Research Letters, vol. 14, no. 12, 124026, 2019.
[13] Chang,Y. Latham,J. Licht,M. Wang,L. “A data-driven crop model for maize yield prediction,” Communications Biology, 6(439), 2023.
[14] Qaddoum,K. Hines,E.L. “Reliable Yield Prediction with Regression Neural Networks,” WSEAS Trans. Syst. Control, 7(1), pp. 1–10, 2012.
[15] Schwalbert,R.A. Amado,T. Corassa,G. Pott,L.P. Prasad,P. Ciampitti,I.A. “Satellite-based soybean yield forecast: Integrating machine learning and weather data for improving crop yield prediction in southern Brazil,” Agricultural and Forest Meteorology, 284, 107886, 2020.
[16] Maimaitijiang,M. Sagan,V. Sidike,P. Hartling,S. Esposito,F. Fritschi,F.B. , “Soybean yield prediction from UAV using multimodal data fusion and deep learning,” Remote Sens. Environ., 37, 111599, 2020.
[17] Gopal,P.M. Bhargavi,R. “A novel approach for efficient crop yield prediction,” Computers and Electronics in Agriculture, 165, 104968, 2019.
[18] Shiu,Y.S. Chuang,T.C. “Yield Estimation of Paddy Rice Based on Satellite Imagery: Comparison of Global and Local Regression Models,” Remote Sensing, 11(2), p. 111, Jan. 2019, doi: 10.3390/rs11020111.
[19] Patil, Y. Ramachandran, H. Sundararajan, S. Srideviponmalar, P. “Comparative Analysis of Machine Learning Models for Crop Yield Prediction Across Multiple Crop Types,” SN Computer Science, 6(1), p.64, 2025. https://doi.org/10.1007/s42979-024-03602-w
[20] Awad,M. “Toward Precision in Crop Yield Estimation Using Remote Sensing and Optimization Techniques,” Agriculture, 9(3), 54, 2019.
[21] Guo,W.W. Xue,H. “Crop Yield Forecasting Using Artificial Neural Networks: A Comparison between Spatial and Temporal Models,” Mathematical Problems Engineering, 2014, pp. 1–7, 2014.
[22] Cai,Y. Guan,K. Lobell,D. Potgieter,A.B. Wang,S. Peng,J. Xu,T. Asseng,S. Zhang,Y. You,L. Peng,B. “Integrating satellite and climate data to predict wheat yield in Australia using machine learning approaches,” Agricultural and Forest Meteorology,274, pp. 144–159, 2019.
[23] Han,X. Chen,L. Zhao,S. Li,J. “Improving winter wheat yield forecasting based on multi-source data and machine learning,” Agriculture, (5), 571, 2020.
[24] Bhojani,S.H. Bhatt,N. “Performance Analysis of Activation Functions for Wheat Crop Yield Prediction,” IOP Conference Series.: Matererial Science and Engineering, 1042, 012015, 2021.
[25] Nevavuori,P. Narra,N. Lipping,T. “Crop yield prediction with deep convolutional neural networks,” Computers Electronics in Agriculture, 163, 104859, 2019.
[26] Zhang,L. Zhang,Z. Luo,Y. Cao, J. Tao,F. “Combining Optical, Fluorescence, Thermal Satellite, and Environmental Data to Predict County-Level Maize Yield in China Using Machine Learning Approaches,” Remote Sensing, 12(1), 21, 2020.
[27] Abbas,F. Afzaal,H. Farooque,A.A. Tang,S. “Crop Yield Prediction through Proximal Sensing and Machine Learning Algorithms,” Agronomy, 10(7), 1046, 2020.
[28] Fukuda,S. Spreer,W. Yasunaga,K.Y. Sardsud,V. Müller, J. “Random Forests modelling for the estimation of mango (Mangifera indica L. cv. Chok Anan) fruit yields under different irrigation regimes,” Agricultural Water Management, 116, pp. 142–150, 2013.
[29] Jeong,J.H. Resop,J.P. Mueller,N.D. Fleisher,D.H. Yun,K. Butler,E.E. Timlin,D.J. Shim,K.M. Gerber,J.S. Reddy,V.R. Kim,S.H. “Random Forests for Global and Regional Crop Yield Predictions,” PloS one, 11(6), p.e0156571, 2016.
[30] Gonzalez-Sanchez,A. Frausto-Solis,J. Ojeda-Bustamante,W. “Predictive ability of machine learning methods for massive crop yield prediction,” Spanish J. Agric. Res., 12(2), pp. 313–328, 2014.
[31] Hooda,B.K. Hooda,E. “Feature selection using matrix correlations and its applications in agriculture,” International Journal of Applied Mathematics & Statistical Sciences (IJAMSS)., 10(1), pp. 13–20, 2021.
[32] Priya,P. Muthaiah,U. Balamurugan,M. “Predicting Yield of the Crop Using Machine Learning Algorithm,” International Journal of Engineering Sciences & Research Technology, 7(1), pp.1-7, 2015.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Nigerian Journal of Technology

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
The contents of the articles are the sole opinion of the author(s) and not of NIJOTECH.
NIJOTECH allows open access for distribution of the published articles in any media so long as whole (not part) of articles are distributed.
A copyright and statement of originality documents will need to be filled out clearly and signed prior to publication of an accepted article. The Copyright form can be downloaded from http://nijotech.com/downloads/COPYRIGHT%20FORM.pdf while the Statement of Originality is in http://nijotech.com/downloads/Statement%20of%20Originality.pdf
For articles that were developed from funded research, a clear acknowledgement of such support should be mentioned in the article with relevant references. Authors are expected to provide complete information on the sponsorship and intellectual property rights of the article together with all exceptions.
It is forbidden to publish the same research report in more than one journal.

