Download PDFOpen PDF in browserA Machine Learning and LLM-Based System for Crop Recommendation, Revalidation, and Fertilizer Advisory16 pages•Published: December 4, 2026AbstractAs farmers look for ways to select crops, the use of new technologies such as Machine Learning (ML) and Natural Language Processing (NLP) is providing data and insights. Many crop advisory tools, however, are less successful because they fail to provide an explanation for their selection of crops, and they ignore local conditions and requirements, or don’t mention fertilizers. In this new tool, a traditional ML technique is paired with a new phenomenon called Retrieval-Augmented Generation (RAG) and powered by a local implementation of the Mistral-7B model. This method determines the best crops based on soil properties such as nitrogen, phosphorus, potassium and the weather conditions such as temperature, moisture, soil pH and rainfall. It revalidates the information output of the Machine Learning Model and also picks fertilizers from a curated vector database. The language model can score the crop recommendations, and also offers easy-to-understand explanations of the recommendations in real world terms. This tool was evaluated on Kaggle Crop Recommendation Dataset & Local fertilizer dataset with the results showing great accuracy for both XGBoost, Random Forest, and the stacked model achieving an accuracy of 99%, 99% and 99.77% respectively. This combination of relevant ML results and clear explanations provides farmers with reliable and actionable crop advice.Keyphrases: crop recommendation, explainable ai, large language models, machine learning, mistral 7b, precision agriculture, retrieval augmented generation In: Prakash Duraisamy (editor). Proceedings of 16th International Conference on Computing Communication and Networking Technologies, vol 115, pages 789-804.
|

