Abstract
1. Introduction
The economy of many developing nations relies on
agriculture, with a considerable number of people depending on farming as their
main source of income. However, Due to inadequate transportation and
communication networks and language challenges, most farmers have had difficulty
accessing quality agricultural.
As is well known, the lack of timely expert advice
often causes delays in making decisions and reducing productivity with negative
financial consequences by avoidable damage to crops. Innovations of AI open up
new avenues for farmers assistance by means of smarter advisory systems.
Specifically, deep learning methods have demonstrated
impressive results in image-based crop disease detection [1], [2], and
lightweight models like Mobile Net allow these solutions to be implemented on
mobile devices with limited resources [3], [4]. In a similar vein, efforts are
being made to handle farmer inquiries in various languages and offer automated
agricultural advice through the use of Natural Language Processing (NLP) and
conversational AI systems [6], [7]. Voice chat has been advantageous for low
literacy users as well in rural areas [8].
Despite these promising results, most existing solutions focus on just one aspect of the problem, such as text-based warnings, or disease detection. Additionally, many solutions rely heavily on frequent internet access, which limits their effectiveness in rural farming areas. Smart farming research has highlighted the importance of edge computing and offline-capable design in providing reliable solutions in these scenarios [11]- [13]. To address these issues, we propose an AI-Based Farmer Query and Advisory System (FQAS) designed specifically for rural realities and driven by farmers. It is accessible through Text, Voice, and Images, ensuring low-literacy and low-connectivity users can access it through single views.
We use light models of convolution neural network for Crop Disease Detection such as Mobile Net, which will be use to analyze the images of leaf captured in field. We use transformer based NLP models to answer the queries of farmers in multiple regional language support and a hybrid cloud-edge architecture to ensure high reliability and low latency of the system. Explainability mode for better explanaAtion of recommendations to earn the trust of the farmers [5]. In this paper, an intelligent framework on AI Crop Disease Detection and diagnosis, namely, Farmer Query Support and advisory System (FQAS), which facilitate farmers to get advise through Text/Voice/Images on their handheld smart devices has been proposed, which can be accessed by farmers with varied literacy levels. Using natural language processing and computer vision processes, the platform provides relevant suggestions and adheres to the standard practices and methods in the agricultural field. An Image based Disease Detection to identify the issues in early stages. The system uses Hybrid Cloud Edge architecture with Offline support to cater to the connectivity issues faced by the farmers during the climatic conditions.
II. LITERATURE REVIEW
AI has also been gradually finding its way to the
agricultural practices of many farms-mostly in terms of crop monitoring,
disease detection, and farmer advice. Now, as mobile devices and access to
field data has increased, researchers are exploring how AI-based assistance can
enable better on-farm decision-making by farmers.
Extensive research is available on the detection of
diseases from images of plants. Mohanty et al. showed that deep convolutional
neural networks could diagnose diseases of plants from images of leaves,
providing the proof-of-concept that automated diagnosis of crop health with
computer vision is possible [1]. For that work, Hughes and Salathe created an
open-access database of plant health images that remains the primary dataset
used for disease detection systems [2].
Considering live usage, speeds are required.
Light-weight architectures such as Mobile Net have been designed to address
this problem by allowing for deep learning inference to run on low-resource
smart phones and other devices [3]. Inspired by these lighter architectures, a
more recent study by Duhan et al. experimented with smaller deep learning
models designed specifically for mobile plant disease identification, following
on from the need for faster, more energy conscious classifiers [4].
Besides disease diagnosis, recent efforts have been
made to develop conversational/ advisory systems to talk directly with farm
operators. Jain et al. proposed Farmer. Chat, an AI conversational system that
utilizes large language models and domain-specific expertise for agricultural
advisory [6]. These instances demonstrate how natural language systems can be
used to convert farming expertise into questions that farmers ask in everyday
life.
For India, for example, where farmers speak in many
regional languages, a multi-lingual language model such as IndicBERT [7] - a
multi-lingual model for Indian languages - will enable to make NLP more
accessible [7]. Again, in the context of low levels of literacy, Kumar and
Gupta built voice-based advisory systems that enabled voice-to-text and
text-to-voice [8]. These represent the ability to create systems that do not
just rely on text.
At a larger system level, some work has been carried
out on digital extension and decision support systems. For instance, Mittal et
al. recognised the opportunities and challenges of large scale digital advisory
services for farming, such as constraints to adoption and challenges of
infrastructure [9]. They have also explored personalised recommendation systems
for smallholder farmers - targeted advice based on specific local farm contexts
[10].
From an architectural perspective, several of the papers make the observation that availability is particularly significant for more remote computing contexts. Edge computing can significantly reduce latency and reliance on the cloud [11]. Delay-tolerant networking and offline-enabled mobile apps are solutions for connectivity needed in areas where internet services are intermittent or unavailable [12-14].
While some solutions have been proposed in existing works to attend to the particular facets of disease detection, online conversing interfaces or offline implementation, the majority of them have been addressed independently. Few research work has been formulated to integrate the diversity of multimodal interaction, intelligent query understanding, disease diagnosis and connectivity-aware design into a single paradigm. This paper elaborates this gap that sparked the AI-Based Farmer Query Support and Advisory System.
III. METHODOLOGY
In this preposition work we are designing and
developing an AI Based Farmer Query Support and Advisory System with the
purpose of delivering quick, trustworthy and comprehensible agricultural advice
to farmers. While several products on the market cater to a single information
need, such as for disease detection or text-based query resolution, we aim to
create an integrated platform capable of addressing various farmer information
needs in a real-world context. For this purpose, we aim to integrate
knowledge-based reasoning, machine learning, computer vision and natural
language processing into a common platform.
Technically, it is a simple pipeline. This is how
farmers get their questions answered by words, voice and pictures and then the
answer comes out in text, performed by AI algorithms using the previous
context. This seems all very straightforward, but that requires almost
everything to make the full workflow function, and for end-user experience as
well as accuracy, and in any village environment.
A. System Overview
There are three working layer of the platform in order
to realize modular architecture and make the platform convenient for maintenance,
which are input layer, a process layer and an advising layer. The performance
of the entire platform will not be affected by changing a part of the platform
because of the design of dividing the platform into different functions. Many
smart agriculture platforms use this solution to improve the scalability and
reliability [11].
1) Input
Layer (Farmer Interaction): The first layer Farmers and their questions Farmers
have a range of literacy levels and may be new to using a smartphone, so we do
not rely on text-based input. Instead, we accept different ways of entering
questions: farmer types question, farmer speaks into phone, farmer posts a
photo of their crop with visible symptoms.
2) We
employ Automatic Speech Recognition (ASR) to transcribe the spoken query, as we
have had success using this input method to support low-literate users [8].
Figure: Farmers can also get support by capturing an image of a diseased leaf,
which removes the requirement to have technical skills. Multimodal input provides
farmers with accessibility and usability benefits.
3) Processing
Layer: This layer is where most of the decision making happens. For a user
question – the input is formatted, then when information is received it is
passed through NLP and ML models. This layer interprets what the farmer wants
to do, pulls out the relevant information and then combines this with an
agricultural context before making a decision. In the live implementation this
is the primary intelligence of the platform, blending different types of
learning to ensure accurate and interpretable recommendations.
4) Output
Layer: After analyzing the data, the system will output a simple and direct
message. We avoid using difficult words and make suggestions that can easily be
understood by the farmers. The responses are carried out via text or audio
(through the Text-to-Speech tool – TTS depending on the user's choices. We keep
track of the feedbacks and the interaction history in order to make the system
better in successive outputs.
B. Farmer Query Input and Data Collection
Apart from the queries posed by the user, the system
also makes use of several different external sources of data to provide
contextual suggestions. For example, previous crop data, weather, farmsoil
data, farmer-approved farming methods and previously asked questions in the
forum. These multiple sources of information can provide context-specific
rather than generic advice, similar to state-of-the-art digital agricultural
extension services [9].
C. Query Preprocessing
The first thing we do is clean and normalize the query
text. The stages of the pre-processing process include language detection, text
normalization, tokenization, removing stop words and lemmatization. These
processes allow us to reduce noise and enhance the performance of the
subsequent NLP models.
Language support techniques (IndicBERT and others) For
India, we have used the technique which is based on the indicBERT and others
which work well for regional languages [7]. When a voice is encountered, the
same pipeline is used after first converting the sound to text.
D. Intent Classification and Entity Extraction
Once the question is cleaned up, we determine what the
farmer is really asking. We train an intent classification model that
understands the query in terms of common farming activities such as control
pests, manage fertilizers, specify irrigates and choose crops.
At the same time, since the query is represented in
this structured manner (by extracting important elements like crop,
plant-disease symptoms, place, season, soil condition, etc. by NER), the system
can provide more accurate context-aware recommendations. Similar style of
intent identification has been made in a conversational agricultural experts
platform called Farmer Chat [6].
E. Knowledge-Based Reasoning and Decision Engine
Once we've identified the intention and the entities,
we send it to a hybrid decision engine. Instead of relying exclusively on
machine learning, we employ 3 other engines: a rule-based knowledge graph, a
collection of advisory solutions from specialists, models trained with
historical data and a small-scale knowledge graph connecting crops, climate and
disease.
The hybrid approach gives the advantage of both
robustness and flexibility. Leaving rule-based reasoning in the system means
generic recommendations can be maintained, whilst learning-based reasoning
adapts to the rapidly changing field situation. Such personalised decision
support has been found to be beneficial for small holder farmers [10].
F. Image-Based Disease Detection
To visualize diagnosis, We use a lightweight deep
learning model for diagnosing, for example, Mobile Net, which achieves a
tradeoff between accuracy and computational cost [3], [4]. This means our
disease detection model can run on a mobile phone quickly, and there's no need
for too advanced hardware. We train our model on a publicly available dataset
of plant disease, and adapt work on deep learning for crop health – and they
may even use techniques from explainable AI to guide the system to specify the
visual regions that are leading to the prediction.
G. System Deployment Framework
We designed the system with Client-Server
architecture. App side is the client side, there are backend services performs
NLP inference, models, database.
Owing to the patchy network that most rural areas
have, we employ a hybrid cloud-edge architecture. The device caters to trivial
and lightweight tasks like caching and basic processing, and the cloud handles
compute-heavy tasks. System architecture relies on edge computing,
delay-tolerant networks, and offline mode for 100% internet coverage.
H. Evaluation Strategy
We can assess the accuracy of intent classification, disease detection, and consider response time and efficiency, or, as can be established from other evaluation methods with other digital farm advisory systems that are published in papers [9], we can consider a pilot study on farmers.
Fig. 1. Proposed
System Architecture of the AI-Based Farmer Query Support and Advisory System.
Following the overall methodology,
we will discuss the internal structure of Farmer Query and Advisory System
(FQAS) scheme that we have designed. Here, we will show FQAS structure (system
architecture) for the Proposed query system as shown in Fig. 1. While designing
the structure, we kept in mind that the system should be simple, robust and
usable in real life rather than designing a complicated structure. Because the
platform is for daily use by farmers, so it should work in rough condition with
low-end smart-phones and having unreliable network.
In order to do this, our system
will need to be separated into four different functionality layers. Each layer
will be responsible for a different job. Separating the system in this way,
rather than just having one large block, will allow us to administer
computation, communication and interaction with the user more easily.
A. Farmer Interaction Layer
The first farmer
facing layer, handles communication with the system. We have found through
trial that farmers are not always the best at dealing with technological
systems so they should be quick and easy to interact with, that is why we
maintain a clear, simple and straightforward user interface. The application
exists in a mobile or web platform and uses many languages that can be used
across the region. Farmers can send in questions in many different formats.
Most prefer to type their query, others prefer to speak it and some simply take
a snap of their crop that's under threat. This is why we support text input,
voice input through an Automatic Speech Recognition (ASR) engine and optional
images uploads.
B. Data and Communication Layer
When the query is finally captured,
it needs to be reliably sent to the backend services. But commonly in rural
environments, the connectivity is poor or intermittent. For this very reason,
we design the communication layer to be resilient rather than assuming the
connectivity is ever-present. For such cases, the app locally stores the
queries on the device and it automatically syncs itself when connected to
network. We also add secure transmission algorithms to encrypt the data sent by
the users. We also use external agricultural data sources such as weather
reports, soil reports, government data and so on. With the help of knowledge on
edge computing and delay tolerant networking, it still remains functional
despite the loss of connectivity while most of the functions would not be
available anymore. [11]-[13].
C. AI Processing and Decision Layer
In the following section, we are
able to evaluation the layered framework of the proposed methodology. The
principle of the proposed structure is processing layer. The processing layer
is the principle part of the proposed framework. However, the previous
technique relied on single. In the new strategy, a couple of processing modules
are used to interpret the inquiry and describe the suitable advice.
1)
NLP
and Query Understanding: For the input text and voice, we use NLP techniques to
understand the querying farmer. We perform language detection, preliminary
processing of input, intents classification and Named Entity Recognition to
pick out of the essential information (e.g., crop, location, season, symptoms
of diseases) like location, crop, season, symptoms of diseases. This is how the
system understands and there is evidence that this results in better
performance of voice-based conversational agri-assistants [6], [7].
2)
Knowledge-Based
Decision Engine: When we have the info we need, we pass it to our hybrid decision engine:
it combines rule-based expert-defined logic, with learning-based models trained
on previous data, and a knowledge graph of connections between crops, pests and
diseases, and environment. This combination makes a lot of sense. Rules are
more than simple, more than general, they are more stable and provide reliable
guidance on the majority of simple cases, while learning-based models are the
more flexible decision-makers, covering questions on more complex or ambiguous
situations. Personalized decision support for smallholder farmers, similar to
this, has been demonstrated to be effective [10].
3)
AI
Recommendation Module: Custom alerts are
created based on decision engine outcomes. The decision engine create decision
plans that from forecast crop yields and risk levels, and decide what
fertilizer, pesticide or irrigation recommendations to give to the farmer. The
goal is to give quick, to-the-point, advice, rather than descriptive or
technical information.
4)
Image-Based
Disease Detection: When a farmer posts a
leaf image, we can analyse it using a smaller CNN architecture, such as Mobile
Net. We prefer small networks because they provide a balanced, high degree of
accuracy and speed for mobile usage [3], [4]. This module enables early disease
detection for better interventions, and is based on previous work on deep
learning for plant health monitoring [1], [2].
D. Advisory and Feedback Layer
The last layer returns the generated recommendation to the user, i.e. the farmer. Recommendations are formulated to be understood easily, using friendly language and in the format preferred by the user (short text messages, speech through Text-to-Speech or small visual cues when applicable). We also gather user feedback on usefulness of the generated suggestions. The layered architecture is a trade-off of usability, speed of operation and deployments, aiming not only at on experimental environment, but also in real agricultural settings as shown in Figure 2 that represents the interaction flow among the proposed system components.
Fig. 2. Data Flow Diagram of
the proposed AI-Based Farmer Query Support and Advisory System.
IV. SYSTEM WORKFLOW
Figure 3 presents the workflow of the
proposed system. The workflow consists of the following steps:
1)
Farmer has to submit the query through text,
voice, or image.
2)
Then data is transmitted safely to the backend.
3)
Query is preprocessed and then structured.
4)
NLP module finds out intent and extracts
entities.
5)
Decision engine gives advice based on unique
needs.
6)
Advisory is delivered in selected format.
7) Farmer feedback is collected to improve the system.
Fig. 3. System Workflow of the AI-Based Farmer Query
Support and Advisory System.
Conclusion
In this proposed work we have proposed, designed and
developed an AI-Based Farmer Query Support and Advisory System to address this
problem for its ease of accessibility and higher utility for day-to-day
agricultural practices. We have proposed a system that is not dependent on
traditional advisory approaches that depend on higher network connectivity or
expert support, instead can be directly accessed by farmers via their mobile
devices in such a resource-scarce setting. The features of a natural language
processing-based system is proposed where a natural interface such as text,
speech and vision-based input are used by a multimodal approach to input
questions. The multimodal interactions improves system accessibility among farmers
with varying levels of literacy. The hybrid reasoning approach promises
received guidance to be consistent with existing practices while seeking to
provide relevant and contextually specific recommendations to a farmer. The
image-based disease detection supports early diagnosis and minimizes crop loss
which is well-known to farmers. The hybrid cloud, edge setup with offline
support addresses the lower network connectivity issues while the user feedback
mechanism helps in incremental improvement based on local needs. This approach
demonstrates that AI has the potential to address challenges in the area of
agricultural advisory systems.
References
[1] S.
P. Mohanty, D. P. Hughes, and M. Salathe, “Using deep learning for´ image-based
plant disease detection,” Frontiers in Plant Science, vol. 7, pp. 1–10, 2016.
[2] D.
P. Hughes and M. Salathe, “An open access repository of images on´ plant health
to enable the development of mobile disease diagnostics,” arXiv preprint
arXiv:1511.08060, 2015.
[3] A.
Howard et al., “MobileNets: Efficient convolutional neural networks for mobile
vision applications,” arXiv preprint arXiv:1704.04861, 2017.
[4] S.
Duhan et al., “Lightweight deep learning models for plant disease detection on
mobile devices,” Computers and Electronics in Agriculture, vol. 210, 2025.
[5] M.
Porf´ırio et al., “Explainable artificial intelligence for plant disease
classification,” Procedia Computer Science, vol. 219, pp. 45–54, 2023.
[6] S.
Jain et al., “Farmer.Chat: Scaling AI-powered agricultural advisory services,”
arXiv preprint arXiv:2406.01234, 2024.
[7] R.
Ramesh et al., “IndicBERT: A multilingual language model for Indian languages,”
arXiv preprint arXiv:2009.03300, 2020.
[8] P.
Kumar and A. Gupta, “Voice-based agricultural advisory systems for low-literacy
users,” IEEE Access, vol. 9, pp. 112345–112356, 2021.
[9] A.
Mittal et al., “Digital platforms for agricultural extension services: Opportunities
and challenges,” Information Processing in Agriculture, vol. 9, no. 2, pp.
123–134, 2022.
[10] M. Rose et al., “Personalized
decision support systems for smallholder farmers,” Agricultural Systems, vol.
176, 2019.
[11] S.
Li et al., “Edge computing for smart agriculture: Architecture and challenges,”
IEEE Sensors Journal, vol. 20, no. 14, pp. 7342–7353, 2020.
[12] A. K. Sharma and V. Singh,
“Delay-tolerant networking for rural communication systems,” IEEE
Communications Surveys & Tutorials, vol. 19, no. 3, pp. 1732–1750, 2017.
[13] P. Verma et al., “Offline-enabled
mobile applications for agricultural decision support,” International Journal
of Agricultural Informatics, vol.6, no. 1, pp. 1–10, 2021.
[14] A. Utsav, A. Abhishek, A. Kumari
and H. R. Daksh, "Smart Irrigation System Using Cisco Packet Tracer,"
2022 International Conference on Wireless Communications Signal Processing and
Networking (WiSPNET), Chennai, India, 2022, pp. 297-301, doi:
10.1109/WiSPNET54241.2022.9767184. .