International Peer-Reviewed JournalOpen AccessISSN 2456-8880
irejournals@gmail.com+91-7433024337

Home / Current Issue / Paper 1713470

1713470 Vol 9 · Issue 7 Download Paper

Improved Predictive Model for Crop Recommendation and Crop Yield in Rural Areas using K-Nearest Neighbour (KNN) and Decision Tree (DT) Machine Learning Classification Algorithms

Joshua Chinemerem Chibueze Agbakwuru Alphonsus Onyekachi

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

DOI: https://doi.org/10.64388/IREV9I7-1713470

Abstract

The aim of this paper is to develop an improved predictive model for crop recommendation and crop yield in rural areas using K-Nearest Neighbour (KNN) and Decision Tree (DT) machine learning classification algorithms, to improve crop growth and yield through the analysis of the soil ph value as the target towards effective prediction and recommendation of crops using variables such as: crop types, rainfall, soil humidity and temperature are the major objectives of this paper. The study employed two machine learning classification algorithms namely: K-Nearest Neighbour (KNN) and Decision Tree (DT). The data was analyzed with JASP machine learning platform while the experiments are done using a dataset containing 2200 data?s sourced from Kaggle machine learning repository and was named as Hybrid_Agro_Crop_Recomender. During the experiment on the 2200 data?s, as contained in the dataset, 20% was split for test while 80% was split for train making up to a total of 100% after preprocessing was concluded. The result of the experiment showed a very high performance on both applied algorithms where (DT = 95% and KNN =94%). Decision Tree (DT) and K-Nearest Neighbors (KNN) produced F1 Score result for the following variables (apple 100%, banana 100%, blackgram 83%, chickpea 100%, coconut 97%, coffee 97%, cotton 97%, grapes 100%, jute 89% and kidneybeans 100%) accuracy for perfect soil compatibility with high percent nutrient to grow such recommended crops and on the result as produced by ROC curve, the accuracy shows that apple, banana and blackgram has a predictive accuracy from 80% to 100% while crops like maize, mango, mothbeans, mungbeans, mushmelon and orange has a predicted accuracy between 81% to 96%. From the result performance on both algorithms, the experiment shows that the use of a hybrid approach involving two or more classification algorithms in object classification is very much essential for effective decision making. Therefore the developed model was called Hybrid_Agro_Crop_Recomender as its application in decision making produced an excellent outcome to improve crop produce and health of the applied crops. Subject Area Artificial Intelligence, Intelligent Agriculture, Machine Learning, Decision Tree

Keywords

Artificial Intelligence, Machine Learning, Agriculture, Classification Model algorithms, and Crop recommendation model, Hybrid_Agro_Crop_Recomender, Crop Recommender Model

References

[1] Kilic, Ijaz (2020.), Plant Disease Management Strategies for sustainable Agriculture through Traditional and Modern Approaches, vol. 13, Springer Nature (2020)

[2] Simone Graeff, Judit Pfenning, Wilhelm Claupein, and Hans-Peter Liebig (2008) Evaluation of Image Analysis to Determine the N-Fertilizer Demand of Broccoli Plants (Brassica oleracea convar. botrytis var. italica), Hindawi Publishing Corporation Advances in Optical Technologies Volume 2008, Article ID 359760, 8 pages doi:10.1155/2008/359760

[3] Dezordi LR, Aquino LA, Aquino RFBA, Clemente JM, Assunção NS. (2016) Diagnostic Methods to Assess the Nutritional Status of the Carrot Crop. Rev Bras Cienc Solo;v40:e0140813

[4] Cunha et al., 2016 Cunha MLP, Aquino LA, Novais RF, Clemente JM, Aquino PR, Oliveira TF (2016) Diagnosis of the Nutritional Status of Garlic Crops. Rev Bras Cienc Solo;v40:e0140771.

[5] Manhas, S. S., Randive, R., Sawant, S., Chimurkar, P., & Haldankar, G. T. (2021, June). Nutrient Deficiency Detection in Leaves using Deep Learning. In 2021 International Conference on Communication information and Computing Technology (ICCICT) (pp. 1-6). IEEE.

[6] Ahmed, I., & Yadav, P. K. (2023). Plant disease detection using machine learning approaches. Expert Systems, 40(5), e13136.

[7] Ahmed, I., & Yadav, P. K. (2023). Plant disease detection using machine learning approaches. Expert Systems, 40(5), e13136.

[8] Nikitha, S., Prabhanjan, S., & Sathyanarayan, A. (2025). Plant nutritional deficiency detection: A survey of predictive analytics approaches. Iran Journal of Computer Science, 8(1), 83-101

[9] Nikitha, S., Prabhanjan, S., & Sathyanarayan, A. (2025). Plant nutritional deficiency detection: A survey of predictive analytics approaches. Iran Journal of Computer Science, 8(1), 83-101

[10] Jackulin, C., & Murugavalli, S. J. M. S. (2022). A comprehensive review on detection of plant disease using machine learning and deep learning approaches. Measurement: Sensors, 24, 100441

[11] Bera, A., Bhattacharjee, D., & Krejcar, O. (2024). PND-Net: plant nutrition deficiency and disease classification using graph convolutional network. Scientific Reports, 14(1), 15537.

[12] Anuja et al., (2024) Anuja Gedam, Ankita Sambre, Jagruti Pawar, Chetesh Yelekar, Ashish Trivedi(2024) Plant Disease Prediction System Using Machine Learning, International Journal for Multidisciplinary Research (IJFMR) E-ISSN: 2582-2160, Volume 6, Issue 6,: Website: www.ijfmr.com

[13] Prabira Kumar Sethy, Baishalee Negi, Nalini Kanta Barpanda, Santi Kumari Behera and Amiya Kumar Rath (2018) Cognitive Science and Artificial Intelligence, SpringerBriefs in Forensic and Medical Bioinformatics, https://doi.org/10.1007/978-981-10-6698-6_1

[14] El-Rashidy, N., Abdelrazik, S., Abuhmed, T., Amer, E., Ali, F., Hu, J. W., & El-Sappagh, S. (2021). Comprehensive survey of using machine learning in the COVID-19 pandemic. Diagnostics, 11(7), 1155

[15] Yang et al., (2021) Yang Li1,2 and Xuewei Chao1 Li and Chao Plant Methods (2021) 17:68 https://doi.org/10.1186/s13007-021-00770-1

[16] Paramasivam Alagumariappan, Najumnissa Jamal Dewan, Gughan Narasimhan Muthukrishnan, Bhaskar K. Bojji Raju, Ramzan Ali Arshad Bilal and Vijayalakshmi Sankaran (2020). Convolutional Neural Networks in Agriculture Retrieved, from http://agriculture.iiit.ac.in/esagu/esagu2004/docs/ApeaAgrid04.pdf

How to cite this paper

Joshua Chinemerem Chibueze, Agbakwuru Alphonsus Onyekachi "Improved Predictive Model for Crop Recommendation and Crop Yield in Rural Areas using K-Nearest Neighbour (KNN) and Decision Tree (DT) Machine Learning Classification Algorithms" Iconic Research And Engineering Journals Volume 9 Issue 7 2026 Page 1849-1864 https://doi.org/10.64388/IREV9I7-1713470
Joshua Chinemerem Chibueze, Agbakwuru Alphonsus Onyekachi "Improved Predictive Model for Crop Recommendation and Crop Yield in Rural Areas using K-Nearest Neighbour (KNN) and Decision Tree (DT) Machine Learning Classification Algorithms" Iconic Research And Engineering Journals, vol. 9, no. 7, Jan. 2026, doi: https://doi.org/10.64388/IREV9I7-1713470
Joshua Chinemerem Chibueze, Agbakwuru Alphonsus Onyekachi (2026). Improved Predictive Model for Crop Recommendation and Crop Yield in Rural Areas using K-Nearest Neighbour (KNN) and Decision Tree (DT) Machine Learning Classification Algorithms. Iconic Research And Engineering Journals, 9(7). doi: https://doi.org/10.64388/IREV9I7-1713470
Joshua Chinemerem Chibueze, Agbakwuru Alphonsus Onyekachi "Improved Predictive Model for Crop Recommendation and Crop Yield in Rural Areas using K-Nearest Neighbour (KNN) and Decision Tree (DT) Machine Learning Classification Algorithms" Iconic Research And Engineering Journals, vol. 9, no. 7, Jan. 2026. Crossref, https://doi.org/10.64388/IREV9I7-1713470
@article{1713470,
      author = {Joshua Chinemerem Chibueze, Agbakwuru Alphonsus Onyekachi},
      title = {Improved Predictive Model for Crop Recommendation and Crop Yield in Rural Areas using K-Nearest Neighbour (KNN) and Decision Tree (DT) Machine Learning Classification Algorithms},
      journal = {Iconic Research And Engineering Journals},
      year = {2026},
      volume = {9},
      number = {7},
      pages = {1849-1864},
      issn = {2456-8880},
      url = {https://www.irejournals.com/formatedpaper/1713470.pdf},
      abstract = {The aim of this paper is to develop an improved predictive model for crop recommendation and crop yield in rural areas using K-Nearest Neighbour (KNN) and Decision Tree (DT) machine learning classification algorithms, to improve crop growth and yield through the analysis of the soil ph value as the target towards effective prediction and recommendation of crops using variables such as: crop types, rainfall, soil humidity and temperature are the major objectives of this paper.  The study employed two machine learning classification algorithms namely:  K-Nearest Neighbour (KNN) and Decision Tree (DT). The data was analyzed with JASP machine learning platform while the experiments are done using a dataset containing 2200 data?s sourced from Kaggle machine learning repository and was named as Hybrid_Agro_Crop_Recomender. During the experiment on the 2200 data?s, as contained in the dataset, 20% was split for test while 80% was split for train making up to a total of 100% after preprocessing was concluded. The result of the experiment showed a very high performance on both applied algorithms where  (DT = 95% and KNN =94%). Decision Tree (DT) and K-Nearest Neighbors (KNN) produced F1 Score result for the following variables (apple 100%, banana 100%, blackgram 83%, chickpea 100%, coconut 97%, coffee 97%, cotton 97%, grapes 100%, jute 89% and kidneybeans 100%) accuracy for perfect soil compatibility with high percent nutrient to grow such recommended crops and on the result as produced by ROC curve, the accuracy shows that apple, banana and blackgram has a predictive accuracy from 80% to 100% while crops like maize, mango, mothbeans, mungbeans, mushmelon and orange has a predicted accuracy between 81% to 96%.  From the result performance on both algorithms, the experiment shows that the use of a hybrid approach involving two or more classification algorithms in object classification is very much essential for effective decision making. Therefore the developed model was called Hybrid_Agro_Crop_Recomender as its application in decision making produced an excellent outcome to improve crop produce and health of the applied crops. 

Subject Area
Artificial Intelligence, Intelligent Agriculture, Machine Learning, Decision Tree },
      keywords = {Artificial Intelligence, Machine Learning, Agriculture, Classification Model algorithms, and Crop recommendation model, Hybrid_Agro_Crop_Recomender, Crop Recommender Model},
      month = {January},
      doi = {https://doi.org/10.64388/IREV9I7-1713470}
  }