<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: G L S VAISHNAVI REDDY</title>
    <description>The latest articles on DEV Community by G L S VAISHNAVI REDDY (@g_lsvaishnavireddy_cbb).</description>
    <link>https://dev.to/g_lsvaishnavireddy_cbb</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3899936%2F97a7bbd7-aeb0-4330-820f-fb49d03c9203.png</url>
      <title>DEV Community: G L S VAISHNAVI REDDY</title>
      <link>https://dev.to/g_lsvaishnavireddy_cbb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/g_lsvaishnavireddy_cbb"/>
    <language>en</language>
    <item>
      <title>Anaylsis of farmer query pattern for crop advisory.</title>
      <dc:creator>G L S VAISHNAVI REDDY</dc:creator>
      <pubDate>Mon, 27 Apr 2026 17:38:09 +0000</pubDate>
      <link>https://dev.to/g_lsvaishnavireddy_cbb/anaylsis-of-farmer-query-pattern-for-crop-advisory-3acd</link>
      <guid>https://dev.to/g_lsvaishnavireddy_cbb/anaylsis-of-farmer-query-pattern-for-crop-advisory-3acd</guid>
      <description>&lt;p&gt;By Vaishnavi Reddy, Siri Reddy, Hasini, Joshi Gayatri. This project was developed under the guidance and mentorship of Professor Chanda Rajkumar&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Idea Behind the Project:&lt;/strong&gt;&lt;br&gt;
What if thousands of farmers are asking similar questions every day—but no one is truly analyzing them?&lt;br&gt;
This was the thought that led to our project.&lt;/p&gt;

&lt;p&gt;Farmers frequently raise queries about crop diseases, fertilizers, irrigation, and weather conditions through helplines, apps, and messaging platforms. These queries often contain valuable insights, but they are usually scattered, unstructured, and underutilized.&lt;/p&gt;

&lt;p&gt;Instead of approaching this with a highly complex solution, we focused on a simpler idea:&lt;/p&gt;

&lt;p&gt;Can we design a system that automatically analyzes farmer queries and identifies patterns to provide smarter crop advisory support?&lt;/p&gt;

&lt;p&gt;Why Do We Think This Problem Matters?&lt;/p&gt;

&lt;p&gt;In real-world agricultural systems, a large amount of farmer interaction data exists as unstructured text—short questions, voice-to-text inputs, or incomplete descriptions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Within this data:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Problems are often described vaguely&lt;br&gt;
Local languages and mixed dialects are used&lt;br&gt;
Critical issues like pest attacks or nutrient deficiencies may be hidden in simple sentences&lt;/p&gt;

&lt;p&gt;Manually analyzing such data is not only time-consuming but also inefficient at scale.&lt;/p&gt;

&lt;p&gt;As the number of farmers using digital platforms grows, it becomes essential to build systems that can:&lt;/p&gt;

&lt;p&gt;Understand queries automatically&lt;br&gt;
Identify recurring issues&lt;br&gt;
Provide timely and relevant advisory&lt;/p&gt;

&lt;p&gt;This project explores how a lightweight NLP-based system can help bridge this gap in a practical and scalable way.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How We Set Up Our Project&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The goal of the project was to create a complete system that:&lt;/p&gt;

&lt;p&gt;Accepts farmer queries as input&lt;br&gt;
Cleans and processes the text&lt;br&gt;
Extracts meaningful patterns&lt;br&gt;
Classifies the type of query (e.g., pest, fertilizer, irrigation)&lt;br&gt;
Stores and analyzes the data for future insights&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feeh7bgsm5fytv0us5orr.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feeh7bgsm5fytv0us5orr.jpg" alt=" " width="800" height="379"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technology Stack&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To keep the system simple yet effective, we used a lightweight and practical tech stack.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python — Core Engine&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The entire system is built using Python due to its strong support for NLP and data processing.&lt;/p&gt;

&lt;p&gt;Data Handling&lt;br&gt;
Pandas → Dataset processing&lt;br&gt;
NumPy → Numerical operations&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F08p0tgx6cppf8m9ureeo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F08p0tgx6cppf8m9ureeo.png" alt=" " width="419" height="89"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NLP with NLTK&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We used NLTK to preprocess farmer queries by:&lt;/p&gt;

&lt;p&gt;Removing stopwords&lt;br&gt;
Cleaning text&lt;br&gt;
Normalizing input&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm0v7p644n6yoks6jugpb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm0v7p644n6yoks6jugpb.png" alt=" " width="488" height="71"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Machine Learning — Scikit-learn&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Scikit-learn was used to build the classification model.&lt;br&gt;
TF-IDF → Feature extraction&lt;br&gt;
Logistic Regression → Query classification&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw675ob5r9xl1lr0qvozi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw675ob5r9xl1lr0qvozi.png" alt=" " width="615" height="136"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Backend — Flask API&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We developed a simple backend using Flask to make the model accessible.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft3i9a1n67oj66yzucs15.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft3i9a1n67oj66yzucs15.png" alt=" " width="513" height="239"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MongoDB Integration for Database&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Farmer query data is highly unstructured and varies significantly in format.&lt;/p&gt;

&lt;p&gt;We used MongoDB because:&lt;br&gt;
It supports flexible schemas (no rigid tables)&lt;br&gt;
It efficiently stores document-based data&lt;br&gt;
It is scalable and suitable for real-time applications&lt;/p&gt;

&lt;p&gt;The system workflow:&lt;br&gt;
User submits a query&lt;br&gt;
The model processes and classifies it&lt;br&gt;
Results are stored in MongoDB for analysis&lt;br&gt;
Data Stored in MongoDB&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Each query is stored as a document containing:&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
Farmer query text&lt;br&gt;
Predicted category (pest, irrigation, fertilizer, etc.)&lt;br&gt;
Crop type (if identified)&lt;br&gt;
Location (if available)&lt;br&gt;
Timestamp&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8e8hdul2z8h0345ballq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8e8hdul2z8h0345ballq.png" alt=" " width="532" height="173"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;System Architecture&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The system follows a modular pipeline:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Input&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Farmer query (text or voice-converted text)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Preprocessing&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Cleaning, normalization, stopword removal&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Feature Extraction&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;TF-IDF vectorization&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Prediction&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Classification using Logistic Regression&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Storage&lt;/strong&gt;&lt;br&gt;
Results stored in MongoDB&lt;br&gt;
Pipeline Flow&lt;br&gt;
Input → Preprocessing → Feature Extraction → Model → Output&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;System Demonstration&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The system allows users to input a farmer query such as:&lt;/p&gt;

&lt;p&gt;_"Why are my crop leaves turning yellow?"&lt;br&gt;
_&lt;br&gt;
The model processes the query and predicts the category (e.g., nutrient deficiency).&lt;/p&gt;

&lt;p&gt;The output is displayed as:&lt;/p&gt;

&lt;p&gt;“Fertilizer-related issue”&lt;br&gt;
“Pest-related issue”&lt;/p&gt;

&lt;p&gt;This demonstrates how the system can assist in decision-making.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Results and Insights:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;From our analysis:&lt;/p&gt;

&lt;p&gt;Frequent queries were related to pests and fertilizers&lt;br&gt;
Seasonal trends were clearly observed&lt;br&gt;
Similar problems were reported across different regions&lt;/p&gt;

&lt;p&gt;This shows that analyzing query patterns can help in:&lt;/p&gt;

&lt;p&gt;Predicting upcoming issues&lt;br&gt;
Providing proactive advisory&lt;br&gt;
Improving agricultural decision-making&lt;br&gt;
Future Improvements&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Future enhancements can include:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Using advanced models like BERT for better accuracy&lt;br&gt;
Supporting regional languages&lt;br&gt;
Integrating weather and soil data&lt;br&gt;
Building a real-time farmer advisory app&lt;br&gt;
Conclusion&lt;/p&gt;

&lt;p&gt;This project demonstrates how NLP and machine learning can transform unstructured farmer queries into meaningful insights.&lt;/p&gt;

&lt;p&gt;By integrating intelligent models with MongoDB, the system evolves from a simple classifier into a scalable crop advisory solution.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ultimately, this approach helps in:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Understanding farmer needs better&lt;br&gt;
Delivering timely recommendations&lt;br&gt;
Supporting smarter and more sustainable agriculture&lt;/p&gt;

</description>
      <category>python</category>
      <category>mongodb</category>
      <category>framing</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
