IDEAS home Printed from https://ideas.repec.org/a/bcp/journl/v9y2025issue-3p1983-1994.html
   My bibliography  Save this article

Crop Yield Prediction Using Random Forest Algorithm and Xgboost Machine Learning Model

Author

Listed:
  • Sultan Saiful

    (Department of Business Law, Sekolah Tinggi Ilmu Ekonomi Swadaya, Indonesia)

  • Narendra Bayutama Wibisono

    (Department of Business Law, Sekolah Tinggi Ilmu Ekonomi Swadaya, Indonesia)

Abstract

Agricultural productivity is strongly influenced by environmental and climatic factors, requiring robust analytical approaches to evaluate their combined impact. This study examines the relationship between food production, biodiversity, and weather patterns across temperate heterogeneous agricultural landscapes in Switzerland. The dataset integrates crop yield, farm characteristics (area, altitude, crop category, and crop type), and 11 climate indices sourced from the European Climate Assessment & Dataset (ECA&D). These indices include temperature variations, precipitation levels, humidity, sunshine duration, and seasonal extremes across four major seasonal subcategories. To model these relationships, we applied machine learning techniques, comparing Random Forest and XGBoost algorithms to analyze their predictive performance. To calculate the model accuracy, we use 3 model evaluation metrics, including R², Mean Squared Error (MSE), and Root Mean Squared Error (RMSE). The results shows that Random Forest outperforms XGBoost with slightly higher R² score (0.9589 vs. 0.9568) and lower MSE (908.80 vs. 956.48). These findings highlight the potential of learning methods in predicting agricultural outcomes and assessing climate impact on crop yield.

Suggested Citation

  • Sultan Saiful & Narendra Bayutama Wibisono, 2025. "Crop Yield Prediction Using Random Forest Algorithm and Xgboost Machine Learning Model," International Journal of Research and Innovation in Social Science, International Journal of Research and Innovation in Social Science (IJRISS), vol. 9(3), pages 1983-1994, March.
  • Handle: RePEc:bcp:journl:v:9:y:2025:issue-3:p:1983-1994
    as

    Download full text from publisher

    File URL: https://www.rsisinternational.org/journals/ijriss/Digital-Library/volume-9-issue-3/1983-1994.pdf
    Download Restriction: no

    File URL: https://rsisinternational.org/journals/ijriss/articles/crop-yield-prediction-using-random-forest-algorithm-and-xgboost-machine-learning-model/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Andreea-Cristina PETRICĂ & Stelian STANCU & Alexandru TINDECHE, 2016. "Limitation of ARIMA models in financial and monetary economics," Theoretical and Applied Economics, Asociatia Generala a Economistilor din Romania - AGER, vol. 0(4(609), W), pages 19-42, Winter.
    2. Andreea-Cristina PETRICĂ & Stelian STANCU & Alexandru TINDECHE, 2016. "Limitation of ARIMA models in financial and monetary economics," Theoretical and Applied Economics, Asociatia Generala a Economistilor din Romania / Editura Economica, vol. 0(4(609), W), pages 19-42, Winter.
    3. Johnathon Shook & Tryambak Gangopadhyay & Linjiang Wu & Baskar Ganapathysubramanian & Soumik Sarkar & Asheesh K Singh, 2021. "Crop yield prediction integrating genotype and weather variables using deep learning," PLOS ONE, Public Library of Science, vol. 16(6), pages 1-19, June.
    4. Westcott, Paul C. & Jewison, Michael, 2013. "Weather Effects on Expected Corn and Soybean Yields," Agricultural Outlook Forum 2013 146846, United States Department of Agriculture, Agricultural Outlook Forum.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Saeed, Naima & Nguyen, Su & Cullinane, Kevin & Gekara, Victor & Chhetri, Prem, 2023. "Forecasting container freight rates using the Prophet forecasting method," Transport Policy, Elsevier, vol. 133(C), pages 86-107.
    2. Shalini Sharma & Víctor Elvira & Emilie Chouzenoux & Angshul Majumdar, 2021. "Recurrent Dictionary Learning for State-Space Models with an Application in Stock Forecasting," Post-Print hal-03184841, HAL.
    3. repec:nrb:journl:v:35:y:2023:i:1:p:22 is not listed on IDEAS
    4. Yao Guo & Huwei Li, 2024. "Predicting Economic Advantages in Smart Innovative City Development: A CSO-MCNN Approach," Journal of the Knowledge Economy, Springer;Portland International Center for Management of Engineering and Technology (PICMET), vol. 15(4), pages 20299-20319, December.
    5. Yingying Song & Monchaya Chiangpradit & Piyapatr Busababodhin, 2025. "Composite Triple Activation Function: Enhancing CNN-BiLSTM-AM for Sustainable Financial Risk Prediction in Manufacturing," Sustainability, MDPI, vol. 17(7), pages 1-35, March.
    6. Addie, Ron & Taranto, Aldo, 2024. "Economic Similarities and their Application to Inflation," EconStor Preprints 283286, ZBW - Leibniz Information Centre for Economics.
    7. Mutele, Litshedzani & Carranza, Emmanuel John M., 2024. "Statistical analysis of gold production in South Africa using ARIMA, VAR and ARNN modelling techniques: Extrapolating future gold production, Resources–Reserves depletion, and Implication on South Afr," Resources Policy, Elsevier, vol. 93(C).
    8. Huo, Dongyang & Malik, Asad Waqar & Ravana, Sri Devi & Rahman, Anis Ur & Ahmedy, Ismail, 2024. "Mapping smart farming: Addressing agricultural challenges in data-driven era," Renewable and Sustainable Energy Reviews, Elsevier, vol. 189(PA).
    9. M. Godsoe & M. Ladd & R. Cox, 2019. "Assessing Canada’s disaster baselines and projections under the Sendai Framework for Disaster Risk Reduction: a modeling tool to track progress," Natural Hazards: Journal of the International Society for the Prevention and Mitigation of Natural Hazards, Springer;International Society for the Prevention and Mitigation of Natural Hazards, vol. 98(1), pages 293-317, August.
    10. Fengxia Dong, 2022. "Cover Crops, Drought, Yield, and Risk: An Analysis of US Soybean Production," NBER Chapters, in: American Agriculture, Water Resources, and Climate Change, pages 241-267, National Bureau of Economic Research, Inc.
    11. Eric J Belasco & Joseph Cooper & Vincent H Smith, 2020. "The Development of a Weather‐based Crop Disaster Program," American Journal of Agricultural Economics, John Wiley & Sons, vol. 102(1), pages 240-258, January.
    12. Pradyot Ranjan Jena & Babita Majhi & Rajesh Kalli & Ritanjali Majhi, 2023. "Prediction of crop yield using climate variables in the south-western province of India: a functional artificial neural network modeling (FLANN) approach," Environment, Development and Sustainability: A Multidisciplinary Approach to the Theory and Practice of Sustainable Development, Springer, vol. 25(10), pages 11033-11056, October.
    13. Ida Farida & Faurani Santi Singagerda, 2021. "Volatilitiy of World Food Commodity Prices and Renewable Fuel Standard Policy," International Journal of Energy Economics and Policy, Econjournals, vol. 11(1), pages 516-527.
    14. Sharma, Sankalp & Bairagi, Subir K., 2021. "Role of Producer Risk-preferences on Debt Undertaking: Evidence from Nebraska," 2021 Annual Meeting, August 1-3, Austin, Texas 313998, Agricultural and Applied Economics Association.
    15. Irwin, Scott & Good, Darrel & Sanders, Dwight, 2015. "Understanding and Evaluating WAOB/USDA Corn Yield Forecasts," farmdoc daily, University of Illinois at Urbana-Champaign, Department of Agricultural and Consumer Economics, vol. 5, April.
    16. Robert D. De Kleine & Timothy J. Wallington & James E. Anderson & Hyung Chul Kim, 2017. "Commentary on “carbon balance effects of US biofuel production and use,” by DeCicco et al. (2016)," Climatic Change, Springer, vol. 144(2), pages 111-119, September.
    17. Sandy Dall'Erba & Zhangliang Chen & Noé J. Nava, 2021. "U.S. Interstate Trade Will Mitigate the Negative Impact of Climate Change on Crop Profit," American Journal of Agricultural Economics, John Wiley & Sons, vol. 103(5), pages 1720-1741, October.
    18. Irwin, Scott & Hubbs, Todd, 2020. "The Accuracy of Early Season Crop Weather Model Forecasts of the U.S. Average Soybean Yield," farmdoc daily, University of Illinois at Urbana-Champaign, Department of Agricultural and Consumer Economics, vol. 10(136), July.
    19. Cao, An N.Q. & Gebrekidan, Bisrat Haile & Heckelei, Thomas & Robe, Michel A., 2022. "County-level USDA Crop Progress and Condition data, machine learning, and commodity market surprises," 2022 Annual Meeting, July 31-August 2, Anaheim, California 322281, Agricultural and Applied Economics Association.
    20. Michael Keane & Timothy Neal, 2020. "Climate change and U.S. agriculture: Accounting for multidimensional slope heterogeneity in panel data," Quantitative Economics, Econometric Society, vol. 11(4), pages 1391-1429, November.
    21. Anurag Satpathi & Parul Setiya & Bappa Das & Ajeet Singh Nain & Prakash Kumar Jha & Surendra Singh & Shikha Singh, 2023. "Comparative Analysis of Statistical and Machine Learning Techniques for Rice Yield Forecasting for Chhattisgarh, India," Sustainability, MDPI, vol. 15(3), pages 1-18, February.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:bcp:journl:v:9:y:2025:issue-3:p:1983-1994. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Dr. Pawan Verma (email available below). General contact details of provider: https://rsisinternational.org/journals/ijriss/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.