[Paper Review] AgriLLM: Harnessing Transformers for Farmer Queries
This paper proposes AgriLLM, a fine-tuned sequence-to-sequence language model using flan-t5-base to automate contextually relevant, natural language responses to real farmer queries from India’s Kisan Call Center dataset. It achieves state-of-the-art performance with a 0.555 BLEU and 0.724 ROUGE score, demonstrating strong generalization across crop sectors, seasons, and query types, offering a scalable solution to reduce call center load and improve agricultural information access.
Agriculture, vital for global sustenance, necessitates innovative solutions due to a lack of organized domain experts, particularly in developing countries where many farmers are impoverished and cannot afford expert consulting. Initiatives like Farmers Helpline play a crucial role in such countries, yet challenges such as high operational costs persist. Automating query resolution can alleviate the burden on traditional call centers, providing farmers with immediate and contextually relevant information. The integration of Agriculture and Artificial Intelligence (AI) offers a transformative opportunity to empower farmers and bridge information gaps. Language models like transformers, the rising stars of AI, possess remarkable language understanding capabilities, making them ideal for addressing information gaps in agriculture. This work explores and demonstrates the transformative potential of Large Language Models (LLMs) in automating query resolution for agricultural farmers, leveraging their expertise in deciphering natural language and understanding context. Using a subset of a vast dataset of real-world farmer queries collected in India, our study focuses on approximately 4 million queries from the state of Tamil Nadu, spanning various sectors, seasonal crops, and query types.
Motivation & Objective
- To address the critical gap in accessible agricultural expertise for farmers in developing countries, especially in India, where expert consultation is costly and limited.
- To automate query resolution for farmers using large language models (LLMs), reducing dependency on traditional call centers and lowering operational costs.
- To evaluate the effectiveness of sequence-to-sequence models like T5 and BART in generating high-quality, natural language responses tailored to agricultural queries.
- To ensure model robustness across diverse query types, crop sectors, and seasonal variations in real-world farmer interactions.
- To enable scalable, low-cost, and contextually accurate information delivery to farmers through NLP-driven automation.
Proposed method
- The study uses a curated subset of 4 million real farmer queries from Tamil Nadu collected via India’s Kisan Call Center (KCC), paired with expert-verified responses.
- Extensive data preprocessing was applied to clean and normalize the dataset, removing noise and standardizing query formats.
- Multiple sequence-to-sequence models—including flan-t5-base, bart-base, pegasus-xsum, and mt5-small—were fine-tuned on the dataset using standard NLP training pipelines.
- Model performance was evaluated using standard NLP metrics: BLEU, ROUGE, precision, recall, and F1 score, with ablation studies across query types, seasons, and crop sectors.
- The flan-t5-base model was selected as the best-performing architecture due to its strong performance across diverse metadata distributions.
- Ablation studies were conducted to assess model consistency and robustness across different query categories, including fertilizer use, nutrient management, and government schemes.
Experimental results
Research questions
- RQ1Can fine-tuned sequence-to-sequence LLMs generate high-quality, contextually accurate responses to real farmer queries in the Indian agricultural domain?
- RQ2How do different encoder-decoder architectures (e.g., T5, BART, PEGASUS) compare in performance on agricultural query generation tasks?
- RQ3Does the model maintain consistent performance across diverse metadata categories such as crop sector, season, and query type?
- RQ4To what extent can LLMs reduce the burden on traditional farmer helplines by automating query resolution?
- RQ5Can the model generate responses that are linguistically appropriate and accessible to a broad rural audience in developing countries?
Key findings
- The flan-t5-base model achieved the highest overall performance with a BLEU score of 0.555 and a ROUGE score of 0.724, outperforming other models like bart-base and pegasus-xsum.
- The model demonstrated strong robustness across all metadata categories, maintaining high F1 scores (above 0.83) across sectors such as agriculture, horticulture, and seasons including Rabi, Kharif, and Jayad.
- Query types related to fertilizer use and nutrient management yielded the highest performance, with an F1 score of 0.861 and BLEU of 0.628, indicating strong capability in technical agricultural domains.
- The model showed consistent performance across different crop sectors and seasons, with only minor variations in metrics, suggesting strong generalization and reliability.
- The ablation study confirmed that the model’s performance was stable and reliable across diverse query types, with the lowest F1 score (0.767) observed for government scheme queries, still within acceptable ranges.
- The study establishes that fine-tuned sequence-to-sequence models can effectively automate agricultural query resolution, offering a scalable, low-cost alternative to traditional call centers.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.