International Peer-Reviewed Journal•Open Access•ISSN 2456-8880
irejournals@gmail.com•+91-7433024337

Home / Current Issue / Paper 1713074

1713074 Vol 9 · Issue 6 Download Paper

Optimizing Crop Yield Prediction Using C4.5 Classification Algorithm for Sustainable Agriculture

Sani Umar J. S. Mshelia Solomon Makasda Dickson Aisha Muhammad Hussein Ahmad Jidda M

Subject area: Science,Engineering and Technology  ·  Area of research: Machine Learning

DOI: 10.64388/IREV9I6-1713074

Abstract

Accurate crop yield prediction is a critical component of sustainable agricultural planning, particularly in regions affected by climatic variability and limited resources. This study evaluates the effectiveness of the C4.5 decision tree classification algorithm for crop yield prediction using agro-climatic and soil-related variables. Empirical data obtained from farms in Mubi North, Adamawa State, Nigeria, comprising soil nutrients (N, P, K), pH, organic matter, rainfall, temperature, humidity, and management practices, were used to classify crop yield into low, medium, and high categories. The performance of the optimized C4.5 model was compared with ensemble learning approaches, namely Random Forest and Gradient Boosting classifiers. Model enhancement techniques, including pruning, cost-sensitive learning, and probability calibration, were applied to improve generalization and reliability. Experimental results show that the pruned C4.5 model achieved superior performance, recording 1.00 accuracy, macro-F1 score, and Cohen?s Kappa on the test dataset, outperforming the ensemble models under the given experimental conditions. Feature importance and SHAP-based explainability analysis identified rainfall and soil nutrient levels as the most influential predictors of yield variability. The findings demonstrate that interpretable decision tree models remain highly effective for crop yield prediction in data-constrained agricultural environments and provide actionable insights for sustainable farm management.

Keywords

C4.5, Classification Algorithm, Decision tree, Random forest, Gradient boosting

References

[1] United Nations. Goal 2: Zero Hunger. United Nations Sustainable Development 2023. https://www.un.org/sustainabledevelopment/hunger/ (accessed November 3, 2023).

[2] Ahmed, A., Adewumi, S. E., & Yemi-peters, V. (2023). Crop Yield Prediction in Nigeria Using Machine Learning Techniques: (A Case Study of Southern Part of Nigeria). UMYU Scientifica, 2(4), 31 – 38. https://doi.org/10.56919/usci.2324.004

[3] Van Klompenburg, T., Kassahun, A., & Catal, C. (2020). Crop yield prediction using machine learning: A systematic literature review. Computers and Electronics in Agriculture, 177, 105709. https://doi.org/10.1016/j.compag.2020.105709

[4] Abbas Q, Jeong W, Lee SW. Explainable AI in Clinical Decision Support Systems: A Meta-Analysis of Methods, Applications, and Usability Challenges. Healthcare (Basel). 2025 Aug 29;13(17):2154. doi: 10.3390/healthcare13172154. PMID: 40941506; PMCID: PMC12427955.

[5] Bishnoi, Sudha & Hooda, B. K.. (2022). Decision Tree Algorithms and their Applicability in Agriculture for Classification. Journal of Experimental Agriculture International. 20-27. 10.9734/jeai/2022/v44i730833.

[6] Bala Ram Sapkota, Gurjinder S. Baath, K. Colton Flynn, Kabindra Adhikari, Chad Hajda, Douglas R. Smith,(2025) Machine learning algorithms for maize yield prediction with multispectral imagery: Assessing robustness across varied growing environments, Science of Remote Sensing, Volume 12, 2025, 100267, ISSN 2666-0172,https://doi.org/10.1016/j.srs.2025.100267. (https://www.sciencedirect.com/science/article/pii/S2666017225000732)

[7] T., Padma & Sinha, Dipali. (2023). Crop Yield Prediction Using Improved Random Forest. ITM Web of Conferences. 56. 10.1051/itmconf/20235602007.

[8] Vashisht, Swati & Kumar, Praveen & Trivedi, (Dr.) Munesh. (2022). Crop Yield Prediction Using Improved Extreme Learning Machine. Communications in Soil Science and Plant Analysis. 54. 1-21. 10.1080/00103624.2022.2108828.

[9] Kiran Kumar P N, Bhavya R A, Dhanushree A N, & Nagarjuna G R. (2024). An efficient crop recommendation system using machine learning mechanisms .  International Journal of Human Computations & Intelligence, 3(2), 325–333. https://doi.org/ 10.5281/zenodo. 11441063

[10] Kulyal, Malika & Saxena, Parul. (2022). Machine Learning approaches for Crop Yield Prediction: A Review. 1-7. 10.1109/ICCCS55188.2022.10079240.

[11] Divya Goe and Payal Gulati (2023). Crop Yield and Crop Production Predictions using Machine Learning IJCSNS International Journal of Computer Science and Network Security, VOL.23 No.9, September 2023.

[12] Gudelo, Woldekidan & Abebe, Mohammed & Dargaso, Tekle. (2025). Boosting Agricultural Outcomes with a Hybrid Ensemble Model for Crop Prediction under Climatic and Soil Variability. Advances in Knowledge-Based Systems, Data Science, and Cybersecurity. 02. 276-290. 10.54364/cybersecurityjournal.2025.1114.

[13] Pham Thi, Hoa & Awange, Joseph & Kuhn, Michael & Văn, Bình & Bui, Luyen. (2022). Enhancing Crop Yield Prediction Utilizing Machine Learning on Satellite-Based Vegetation Health Indices. Sensors. 22. 719. 10.3390/s22030719.

[14] Priya, N.M. (2024). IoT and Machine Learning based Precision Agriculture through the Integration of Wireless Sensor Networks. Journal of Electrical Systems.

[15] Cravero, Ania & Pardo, Sebastian & Galeas, Patricio & Fenner Lopez, Julio & Caniupan, Monica. (2022). Data Type and Data Sources for Agricultural Big Data and Machine Learning. Sustainability. 14. 16131. 10.3390/su142316131.

[16] Zarbakhsh, S.; Fakhrzad, F.; Rajkovic, D.; Niedbała, G.; Piekutowska, M. (2025). Approaches and challenges in machine learning for monitoring agricultural products and predicting plant physiological responses to biotic and abiotic stresses. Curr. Plant Biol. 2025, 43, 100535

[17] Akula, Baby & Parmar, Raghuvirsinh & Raj, Mayur & Kareddy, Indudhar. (2021). Classification model prediction for rice yield using data mining approach in Ranga Reddy district of Telangana, India. Journal of Agrometeorology. 23. 10.54386/jam.v23i2.75.

[18] Crane-Droesch, Andrew (2018) Machine learning methods for crop yield prediction and climate change impact assessment in agriculture, journal:Environmental Research Letters doi:10.1088/1748-9326/aae159 url:https://doi.org/10.1088/1748-9326/aae159,

[19] Saleh Fahad Siyi, Abdusalam Ya’u Gital, Fatima Umar Zambuk, Sani Umar, Odulu Lydia, M A. Lawal & I. Z. Yakubu (2025) Investigating the Role of Intrusion Detection Systems in Edge Computing: A Comprehensive Review International Journal of Research Publication and Reviews, Vol (6), Issue (4), April (2025), Page – 6999-7008

[20] Saleh Fahad Siyi, Abdusalam Ya’u Gital, Fatima Umar Zambuk, Mustapha A. Lawal, Sani Umar, Odulu Lydia & I. Z. Yakubu An ensemble intrusion detection system using gradient boosting algorithm for edge-based computing. IJARIIE-ISSN(O)-2395-4396 Vol-11 Issue-3 2025

[21] Abdulmajeed Atiah Alharbi, Jeza Allohibi. A new hybrid classification algorithm for predicting student performance[J]. AIMS Mathematics, 2024, 9(7): 18308-18323. doi: 10.3934/math.2024893

[22] Yaganteeswarudu Akkem, Saroj Kumar Biswas, Aruna Varanasi, (2023) Smart farming using artificial intelligence: A review, Engineering Applications of Artificial Intelligence, Volume 120, 105899, ISSN 0952-1976, https://doi.org/10.1016/j.engappai.2023.105899. (https://www.sciencedirect.com/science/article/pii/S0952197623000830)

[23] Zidan, F., & Febriyanti, D.E. (2024). Optimizing Agricultural Yields with Artificial Intelligence-Based Climate Adaptation Strategies. IAIC Transactions on Sustainable Digital Innovation (ITSDI).

[24] Sahın Demırel (2024) AN. Investigating the effect of climate factors on fig production efficiency with machine learning approach. J Sci Food Agric. 2024 Oct;104(13):7885-7894. doi: 10.1002/jsfa.13619. Epub 2024 May 31. PMID: 38817196.

[25] Zhang, P., Lu, B., Shang, J., Wang, X., Hou, Z., Jin, S., Yang, Y., Zang, H., Ge, J., & Zeng, Z. (2024). Ensemble Learning for Oat Yield Prediction Using Multi-Growth Stage UAV Images. Remote Sensing, 16(23), 4575. https://doi.org/10.3390/rs16234575

[26] Yang, Shurong & Li, Lei & Fei, Shuaipeng & Mengjiao, Yang & Tao, Zhiqiang & Meng, Yaxiong & Xiao, Yonggui. (2024). Wheat Yield Estimation Using Machine Learning Method Based on UAV Remote Sensing Data. 10.20944/preprints202405.0402.v1.

How to cite this paper

Sani Umar, J. S. Mshelia, Solomon Makasda Dickson, Aisha Muhammad Hussein, Ahmad Jidda M "Optimizing Crop Yield Prediction Using C4.5 Classification Algorithm for Sustainable Agriculture" Iconic Research And Engineering Journals Volume 9 Issue 6 2025 Page 1910-1915 https://doi.org/10.64388/IREV9I6-1713074
Sani Umar, J. S. Mshelia, Solomon Makasda Dickson, Aisha Muhammad Hussein, Ahmad Jidda M "Optimizing Crop Yield Prediction Using C4.5 Classification Algorithm for Sustainable Agriculture" Iconic Research And Engineering Journals, vol. 9, no. 6, Dec. 2025, doi: https://doi.org/10.64388/IREV9I6-1713074
Sani Umar, J. S. Mshelia, Solomon Makasda Dickson, Aisha Muhammad Hussein, Ahmad Jidda M (2025). Optimizing Crop Yield Prediction Using C4.5 Classification Algorithm for Sustainable Agriculture. Iconic Research And Engineering Journals, 9(6). doi: https://doi.org/10.64388/IREV9I6-1713074
Sani Umar, J. S. Mshelia, Solomon Makasda Dickson, Aisha Muhammad Hussein, Ahmad Jidda M "Optimizing Crop Yield Prediction Using C4.5 Classification Algorithm for Sustainable Agriculture" Iconic Research And Engineering Journals, vol. 9, no. 6, Dec. 2025. Crossref, https://doi.org/10.64388/IREV9I6-1713074
@article{1713074,
      author = {Sani Umar, J. S. Mshelia, Solomon Makasda Dickson, Aisha Muhammad Hussein, Ahmad Jidda M},
      title = {Optimizing Crop Yield Prediction Using C4.5 Classification Algorithm for Sustainable Agriculture},
      journal = {Iconic Research And Engineering Journals},
      year = {2025},
      volume = {9},
      number = {6},
      pages = {1910-1915},
      issn = {2456-8880},
      url = {https://www.irejournals.com/formatedpaper/1713074.pdf},
      abstract = {Accurate crop yield prediction is a critical component of sustainable agricultural planning, particularly in regions affected by climatic variability and limited resources. This study evaluates the effectiveness of the C4.5 decision tree classification algorithm for crop yield prediction using agro-climatic and soil-related variables. Empirical data obtained from farms in Mubi North, Adamawa State, Nigeria, comprising soil nutrients (N, P, K), pH, organic matter, rainfall, temperature, humidity, and management practices, were used to classify crop yield into low, medium, and high categories. The performance of the optimized C4.5 model was compared with ensemble learning approaches, namely Random Forest and Gradient Boosting classifiers. Model enhancement techniques, including pruning, cost-sensitive learning, and probability calibration, were applied to improve generalization and reliability. Experimental results show that the pruned C4.5 model achieved superior performance, recording 1.00 accuracy, macro-F1 score, and Cohen?s Kappa on the test dataset, outperforming the ensemble models under the given experimental conditions. Feature importance and SHAP-based explainability analysis identified rainfall and soil nutrient levels as the most influential predictors of yield variability. The findings demonstrate that interpretable decision tree models remain highly effective for crop yield prediction in data-constrained agricultural environments and provide actionable insights for sustainable farm management.},
      keywords = {C4.5, Classification Algorithm, Decision tree, Random forest, Gradient boosting},
      month = {December},
      doi = {https://doi.org/10.64388/IREV9I6-1713074}
  }