Indian Journal of Agricultural Research

Indian Journal of Agricultural Research cover
Volume 60 · 2026/07/07

AgroAdvisor: RAG-Powered Explainable AI for Soil Nutrient Profiling and Crop Yield Recommendations

P. Nithya
G. Senthil Kumar
161 Views

Submitted

2026/05/08

First Online

2026/07/07

doi

10.18805/IJARe.A-6581

Cite article - P. Nithya, G. Senthil Kumar. (2026). AgroAdvisor: RAG-Powered Explainable AI for Soil Nutrient Profiling and Crop Yield Recommendations. Indian Journal of Agricultural Research. 60: 15–24. doi: 10.18805/IJARe.A-6581

Abstract

Background: Determining the health of soil and predicting the output of agriculture are complicated processes owing to regional variation and complex nutrient interactions among soil properties.

Methods: AgroAdvisor acts as a decision support system using predictive models, particle swarm optimization (PSO) and retrieval-augmented generation (RAG). Soil health parameters such as nitrogen (N), phosphorous (P), potassium (K), pH and moisture levels are analyzed through a hybrid regression model incorporating random forest and gradient boosting. PSO is used for hyperparameter optimization, which improves the accuracy of prediction compared to traditional methods.

Result: Experimental testing on soil samples from South India demonstrated a decrease in mean absolute error ranging between 18% to 23% due to PSO optimization. The retrieval-augmented generation technique, based on scientific papers, ICAR/FAO guidelines and local soil management techniques, generated contextually relevant and internally consistent recommendations for fertilizer usage, crop rotation and soil management.

References

  1. Amiri, M., Amnieh, H.B., Hasanipanah, M. and Khanli, L.M. (2016). A new combination of artificial neural network and K- nearest neighbors models to predict blast-induced ground vibration and air-overpressure. Engineering Computations . 32: 631-644. Ayub, U. and Moqurrab, S.A. (2018). Predicting Crop Diseases using Data Mining Approaches: Classification. In: 2018 1 st International Conference on Power, Energy and Smart Grid (ICPESG). doi: 10.1109/ICPESG.2018.8384523. Behzadafshar, K., Mohebbi, F., Soltani Tehrani, M., Hasanipanah, M. and Tabrizi, O. (2018). Predicting the ground vibration induced by mine blasting using imperialist competitive algorithm. Engineering Computations . 35: 1774-1787. Cho, O.H. (2024). Machine learning algorithms for early detection of legume crop disease. Legume Research . 47(3): 463- 469. doi: 10.18805/LRF-788 . Faradonbeh, R.S. and Monjezi, M. (2017). Prediction and minimization of blast-induced ground vibration using two robust meta- heuristic algorithms. Engineering Computations . 33: 835- 851. Heydari, S.S. and Mountrakis, G. (2018). Effect of classifier selection, reference sample size, reference class distribution and scene heterogeneity in per-pixel classification accuracy using 26 landsat sites. Remote Sensing of Environment . 204: 648-658. doi: 10.1016/j.rse.2017. 09.035. Kalmani, H.V., Dharwadkar, V.N. and Thapa, V. (2025). Crop yield prediction using deep learning algorithm based on CNN- LSTM with attention layer and skip connection. Indian Journal of Agricultural Research . 59(8): 1303-1311. doi: 10.18805/IJARe.A-6300 . Kamilaris, A., Gao, F., Prenafeta-Boldu, F.X. and Ali, M.I. (2016). Agri-IoT: A Semantic Framework for Internet of Things- Enabled Smart Farming Applications. In: 2016 IEEE 3 rd World Forum on Internet of Things (WF-IoT), pp. 442- 447. Kennedy, J. and Eberhart, R. (1995). Particle Swarm Optimization. In: Proceedings of ICNN’95-International Conference on Neural Networks, Perth, WA, Australia. 4: 1942-1948. doi: 10.1109/ICNN.1995.488968. Lee, W.B. and Kim, B.H. (2024). Machine learning innovations for precise plant disease detection: A review. Legume Research . 47(10): 1633-1638. doi: 10.18805/LRF-799 . Meenakshi, M. and Naresh, R. (2022a). Prediction of Soil Moisture Root Zone Health in Artificial Neural Network. In: 4 th International Conference on Recent Trends in Computer Science and Technology (ICRTCST). IEEE . doi: 10.1109/ ICRTCST9782050. Meenakshi, M. and Naresh, R. (2022b). Review on Health and Productivity Analysis in Soil Moisture Parameters. In: Expert Clouds and Applications. Lecture Notes in Networks and Systems, Springer. Meenakshi, M and Naresh, R. (2022c). Soil health analysis and fertilizer prediction for crop image identification by Inception-V3 and random forest. Remote Sensing Applications: Society and Environment. 28: 100846. doi: 10.1016/j.rsase.2022.100846. Meenakshi, M. and Naresh, R. (2023a). Machine learning based classifying polluted soil health and productivity analysis in Tamil Nadu delta area in water management system. Soft Computing . 28(Suppl 2): 537-537. doi: 10.1007/ s00500-023-08237-2. Metagar, M.S. and Walikar, G.A. (2024). Machine learning models for plant disease prediction and detection: A review. Agricultural Science Digest . 44(4): 591-602. doi: 10.18805/ag.D-5893 . Oerke, E.C. and Dehne, H.W. (2004). Safeguarding production- losses in major crops and the role of crop protection. Crop Protection . 23(4): 275-285. Pandey, Y., Khan, M.F., Vishal, Pandey, A.K. and Singh, S.P. (2023). Real-time soil monitoring with IoT enabled system for crop prediction. Agricultural Science Digest . doi: 10.18805/ag.D-5705 . Poutea, R., Collin, A. and Stoll, B. (2011). A Comparison of Machine Learning Algorithms for Classification of Tropical Ecosystems Observed by Multiple Sensors at Multiple Scales. In: International Geoscience and Remote Sensing Symposium, Vancouver, BC. Rajak, R.K., Pawar, A., Pendke, M., Shinde, P., Rathod, S. and Devar, A. (2017). Crop recommendation system to maximize crop yield using machine learning technique. International Research Journal of Engineering and Technology . 4(12): 1-4. Sharma, A., Jain, A., Gupta, P. and Chowdary, V. (2021). Machine learning applications for precision agriculture: A comprehensive review. IEEE Access . 9: 4843-4873. doi: 10.1109/ access.2020.3048415. Stafford, J.V. (2019). Precision Agriculture ’19. Wageningen: Wageningen Academic Publishers.
EDITORIAL BOARD

Guided by Experienced Academic Leadership

Distinguished scholars and subject experts committed to editorial excellence, scientific integrity and rigorous peer review.

View Full Board
V. Geethalakshmi
Chief Editor

V. Geethalakshmi

Ex-Vice ChancellorTamil Nadu Agricultural University Coimbatore, INDIA

R. Sarada Jaya Lakshmi
Associate chief editor

R. Sarada Jaya Lakshmi

Ex-Vice ChancellorCoordinator, DAATTC Kurnool, Acharya N.G. Ranga Agricultural University, Andhra Pradesh, INDIA

Neetu Sharma
Editor

Neetu Sharma

ProfessorSher-e-Kashmir University of Agricultural Sciences & Technology of Jammu and Kashmir, INDIA

S. Alarmelu
Editor

S. Alarmelu

Principal ScientistICAR-Sugarcane Breeding Institute, Coimbatore, Tamil Nadu, INDIA.