The Bangla Agricultural Advisor Chatbot is a Django-based web application designed to assist farmers and agricultural enthusiasts in Bangladesh by providing advice and solutions in the Bengali language. The chatbot supports three interaction modes: Text Query, Voice Query,Image Upload
# Bangla Agricultural Advisor Chatbot
## Overview
The **Bangla Agricultural Advisor Chatbot** is a Django-based web application designed to assist farmers and agricultural enthusiasts in Bangladesh by providing advice and solutions in the Bengali language. The chatbot supports three interaction modes:
1. **Text Query**: Users can type their questions in Bengali and receive relevant advice.
2. **Voice Query**: Users can speak their queries in Bengali, and the chatbot will transcribe and respond with advice.
3. **Image Upload**: Users can upload images of crops to detect diseases and receive actionable suggestions.
The project leverages machine learning models for natural language processing (NLP) and image classification to provide accurate responses.
---
## Features
### 1. Text-Based Query System
- Users can input their questions in Bengali.
- The system uses a TF-IDF vectorizer and cosine similarity to match user queries with pre-defined answers from a dataset.
### 2. Voice Recognition
- Users can speak their queries in Bengali using a microphone.
- The system uses Google Web Speech API to transcribe the audio into text and processes it similarly to text queries.
### 3. Disease Detection via Image Upload
- Users can upload images of crops to detect diseases.
- A TensorFlow-based deep learning model classifies the uploaded image and matches it with relevant disease control advice from the dataset.
### 4. Dynamic User Interface
- The frontend dynamically updates based on user interactions (text, voice, or image).
- Separate sections are displayed for disease detection results and advice.
---
## Project Structure
```
bangla_agriculture_chatbot/
├── chatbot/
│ ├── static/
│ │ ├── models/
│ │ │ ├── disease_detection_model.h5
│ │ │ ├── tfidf_vectorizer.joblib
│ │ │ ├── tfidf_matrix.joblib
│ │ │ └── class_labels.json
│ │ └── samples/
│ ├── templates/
│ │ └── chatbot/
│ │ └── index.html
│ ├── views.py
│ └── urls.py
├── data/
│ └── agriculture_data.csv
├── …