Skip to content

ArogyaKrishi MVP is an innovative web application crafted to empower farmers with cutting-edge tools for crop disease detection, soil type prediction, and tailored fertilizer recommendations. By harnessing the latest technology, it delivers actionable insights that revolutionize agricultural practices, promoting healthier crops and sustainablity.

Notifications You must be signed in to change notification settings

Blacksujit/ArogyaKrishi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

45 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒพ ArogyaKrishi ๐ŸŒพ

image

project-image

๐ŸŒŸThis is our Project or prototype development to the SIH Hackathon 2024:

๐Ÿงพ๐Ÿงพ Table of Contents:

๐Ÿ‘‰ Problem statement ID: SIH - 1638:

Theme - Agri&tech Background: Crop diseases can devastate yields leading to significant financial losses for farmers. Early detection and timely intervention are crucial for effective management. Description: Develop an AI-driven system that analyzes crop images and environmental data to predict potential disease outbreaks. This system will provide farmers with actionable insights and treatment recommendations to mitigate risks. Expected Solution: A mobile and web-based application that utilizes machine learning algorithms to identify crop diseases and suggest preventive measures and treatments based on real-time data.

๐Ÿ’ก Our Approach :

1.) Divided the problem statement into chunks and pieces .

2.) begain the searching with the each segement in the research papaers , you can visit kaggle , and UCI Machine learning Datasets , for the references and datasets,

3.) Then for the inspiration purpose we have reviewed and looked several projects and repositories available on the github and internet , you can visit , these repositories , repo1 , and repo2 , repo3 .

4.) For the innovation and ideas , we have used claude.ai , perlexity , gpt , research papaers

5.) Determine what are the common Problem faced by the indian farmers and also researched about that for reference visit , here , and how we can automate and mitigate it with the help of the Tech and innovation to an optimum level , such thtat the farmers life will be easier,

6.) After we have then searched for some common agricultural practices followed and weather forecast analysis report in the past years, which will help us to analyse why the things have become more complex for the crops to survive in the extreme conditions you can visit for the data

7.) After all the informationa has exhausted we have then move towards the most crucial part which is user behaviour , becuase it is the only thing where our product will ipmact and also , we were aware of how seamlessly we can onboard our user will create an , visibility and viability and easily accessibility of our product . so thouroughly researched about , how familier the indian farmer behaviour is using tech , whether it is mobile application or it is and web application , we thaught every aspect in terms of the language barrier to UI complexity to the navigation e, every nity , greety is tackled so we couldn't miss out anything , for the same we have researched about the things here

8.) At last we have iterated on our approach to look out if any breaches our setback is there or not , if it is then we have to restart the things from scratch but there wasnt , after all these brainstorming with the team and other things we were ready to move to the POC stage with our idea.

9.) so thats all these was our approach for the problem statement .

๐Ÿ“‚ Project Structure:


Arogya_Krishi_MVP/
|
โ”‚
โ”œโ”€โ”€ app.py                          # Main application file
โ”œโ”€โ”€ requirements.txt                # List of dependencies
โ”œโ”€โ”€ .env                            # Environment variables
โ”‚
โ”œโ”€โ”€ models/                         # Directory for machine learning models
โ”‚   โ”œโ”€โ”€ RandomForest.pkl            # Crop recommendation model
โ”‚   โ”œโ”€โ”€ DenseNet121v2_95.h5        # Soil type prediction model
โ”‚   โ”œโ”€โ”€ SoilNet_93_86.h5           # SoilNet model
โ”‚   โ””โ”€โ”€ plant_disease_model.pth     # (if applicable) Disease prediction model
โ”‚
โ”œโ”€โ”€ utils/                          # Utility functions and classes
โ”‚   โ”œโ”€โ”€ disease.py                  # Disease-related utilities
โ”‚   โ”œโ”€โ”€ fertilizer.py               # Fertilizer-related utilities
โ”‚   โ””โ”€โ”€ model.py                    # Model-related utilities (e.g., ResNet9)
โ”‚
โ”œโ”€โ”€ uploads/                        # Directory for uploaded files
โ”‚   โ””โ”€โ”€ (user-uploaded images)      # Images uploaded by users
โ”‚
โ”œโ”€โ”€ static/                         # Static files (CSS, JS, images)
โ”‚   โ”œโ”€โ”€ css/                        # CSS files
โ”‚   โ”œโ”€โ”€ js/                         # JavaScript files
โ”‚   โ””โ”€โ”€ images/                     # Images used in the application
โ”‚
โ”‚โ”€โ”€โ”€โ”€ templates/                      # HTML templates for rendering
โ”‚    โ”œโ”€โ”€ index.html                  # Main page
โ”‚    โ”œโ”€โ”€ signup.html                 # Signup page
โ”‚    โ”œโ”€โ”€ login.html                  # Login page
โ”‚    โ”œโ”€โ”€ dashboard.html              # User dashboard
โ”‚    โ”œโ”€โ”€ crop.html                   # Crop recommendation page
โ”‚    โ”œโ”€โ”€ fertilizer.html              # Fertilizer suggestion page
โ”‚    โ”œโ”€โ”€ disease.html                # Disease prediction page
โ”‚    โ”œโ”€โ”€ disease-result.html         # Result page for disease prediction
โ”‚    โ”œโ”€โ”€ crop-result.html            # Result page for crop prediction
โ”‚    โ””โ”€โ”€ try_again.html              # Error handling page
โ”‚
โ”‚
โ”‚โ”€โ”€โ”€โ”€.gitattributes
โ”‚
โ”‚โ”€โ”€โ”€โ”€.gitignore
โ”‚
โ”‚โ”€โ”€โ”€โ”€README.md
โ”‚
โ”‚โ”€โ”€โ”€โ”€crop-disease-detection.ipynb
โ”‚
โ”‚โ”€โ”€โ”€โ”€config.py
โ”‚
โ”‚
โ”‚โ”€โ”€โ”€โ”€crop_prediction_based_on_numeric_value.ipynb
โ”‚
โ”‚
โ”‚โ”€โ”€โ”€โ”€notebooks/
โ”‚        
โ”‚โ”€โ”€โ”€โ”€ instance/         
โ”‚        โ”‚โ”€โ”€โ”€โ”€ farmers_database.db
โ”‚
โ”‚
โ”‚-----images/
โ”‚
โ”‚โ”€โ”€โ”€โ”€ data/
โ”‚          ...csv files
โ”‚
โ”‚โ”€โ”€โ”€โ”€ Data_Preprocessed/
          .....cleaned_data
 

๐Ÿงฑ System Arcitecture Design :

image

๐Ÿš€ Live Demos , Web and App:

๐Ÿ•ธ๏ธ๐Ÿ“ฒWeb App:

Screen.Recording.2024-08-23.014535.mp4

Explanation youtube Video :- Experience ArogyaKrishi in action Watch the Demo (Web APP Demo)

๐Ÿ“ฒ App Demo : (Under Developement Phase)

WhatsApp.Video.2024-11-14.at.17.33.53_69d24e35.mp4

๐Ÿ‘“ Presentation :

see PPT Presentation Here by TEAM ANANT

๐Ÿ“š๐Ÿ“š Research And References: (Some Proven Theories' which validates this POC)

  1. Development of Machine Learning Methods for Accurate Prediction of Plant Disease Resistance (2024): https://www.sciencedirect.com/science/article/pii/S2095809924002431

  2. Chinese cabbage leaf disease prediction and classification using Naive Bayes VGG-19 convolution deep neural network (2024) : https://ieeexplore.ieee.org/document/10407076

  3. Image-based crop disease detection with federated learning (2023): https://www.nature.com/articles/s41598-023-46218-5

  4. Deep learning-based crop disease prediction with web application (2023) : https://www.sciencedirect.com/science/article/pii/S2666154323002715

  5. Seasonal Crops Disease Prediction and Classification Using Deep Convolutional Encoder Network (2019): https://link.springer.com/article/10.1007/s00034-019-01041-0 Cropin app link: https://www.cropin.com/farming-apps#:~:text=Cropin%20Grow%20is%20a%20robust, stakeholders%20in%20the%20agri%2Decosystem.

โœ…โ‡๏ธ Problem ArogyaKrishi Addresses and Solves :

Arogya Krishi is an agricultural application that addresses critical challenges faced by farmers, including crop disease detection, optimal crop recommendations, and soil health assessment. It provides tailored fertilizer suggestions and integrates real-time weather data to help farmers make informed decisions. With a user-friendly interface and community engagement features, Arogya Krishi empowers farmers to enhance productivity and sustainability in their agricultural practices.

Arogya Krishi: Problem Description and Solutions

Arogya Krishi is a comprehensive agricultural application designed to address various challenges faced by farmers and agricultural stakeholders. Below are the key problems it addresses and the solutions it provides:

1. Crop Disease Detection:

Problem: Farmers often struggle to identify diseases affecting their crops, leading to reduced yields and economic losses. Early detection is crucial for effective management and treatment.

Solution: Arogya Krishi utilizes advanced image classification techniques powered by machine learning to analyze images of crops. The application can accurately identify diseases and provide detailed information about the disease, enabling farmers to take timely action.

2. Crop Recommendation:

Problem: Farmers may lack knowledge about which crops are best suited for their specific soil types and climatic conditions, leading to poor crop choices and low productivity.

Solution: The application offers crop recommendation features based on soil analysis and environmental factors. By analyzing soil characteristics and local climate data, Arogya Krishi suggests optimal crops that can thrive in the given conditions, enhancing productivity and profitability.

3.) Fertilizer Recommendations:

Problem: Farmers often face challenges in determining the right type and amount of fertilizers to use, which can lead to overuse or underuse, affecting crop health and the environment.

Solution: The application generates tailored fertilizer recommendations based on the specific crop being cultivated, soil health, and environmental conditions. This helps farmers optimize their fertilizer usage, improving crop yields while minimizing environmental impact.

4. Weather Data Integration:

Problem: Farmers need access to real-time weather data to make informed decisions about planting, irrigation, and harvesting. Lack of timely weather information can lead to crop losses.

Solution: Arogya Krishi integrates weather data from reliable sources, providing farmers with current weather conditions, forecasts, and alerts. This information helps farmers plan their activities more effectively, reducing risks associated with adverse weather.

6. User-Friendly Interface:

Problem: Many agricultural technologies are complex and difficult for farmers to use, especially those with limited technical knowledge.

Solution: Arogya Krishi is designed with a user-friendly interface that simplifies navigation and usage. It provides clear instructions and visual aids, making it accessible to farmers of all backgrounds.

7. Community and Knowledge Sharing:

Problem: Farmers often work in isolation and may lack access to shared knowledge and experiences from their peers.

Solution: The application can facilitate community engagement by allowing users to share their experiences, tips, and best practices. This fosters a sense of community and encourages collaborative learning among farmers.

๐Ÿง Features (ArogyaKrishi Comes with) :

Here're some of the project's best features:

  • Multi Crop Disease Prediction .
  • prediction with Fertilizer Recommendation.
  • Realtime Crop Disease Analysis Dashboard
  • Soil Type Classification
  • Farmer Data Tracking
  • Weather Analysis's and Report
  • Multilingual Support
  • Google IO translate in your language
  • Chat bot support assistance multilingual's
  • Farmer Management
  • Fertilizer Recommendations Based On Soil

๐Ÿ’ป Tech Stack Used :

Technologies used in the project:

  • Flask
  • Model development Pipeline
  • Machine Learning
  • Python
  • transformers
  • deep learning
  • neural networks
  • pretrained Models
  • HTML
  • CSS
  • Javascript
  • SCSS
  • SQL-alchemy

๐Ÿ› ๏ธ Installation Steps , To run with git (Manuall Process):

1. Clone the Project

git clone https://github.com/Blacksujit/ArogyaKrishi.git

2. Install Required Dependencies:

pip install requirements.txt

3. Train The Models

run crop_prediction_based_on_numerical_value.ipynb

4. save the Pretrained Models

model/
  resnet_mode_90.pkl
  ......pkl
   etc

5. create the dotenv File at root of Project

.env

6. Add Your API Key

OPEN_WEATHER_APIKEY=YOUR_WEATHER_API_KEY
HUGGINGFACE_LOGIN_TOKEN=YOUR_HUGGING_FACE_TOKEN

7. Run the Project

python app.py 

โœจ๐Ÿ”ฎ To Run Locally Using Docker (preferred way) :

Prerequisites

Before you begin, ensure you have the following installed on your machine:

Setup Instructions:

Step 1: Clone the Repository

Clone the project repository to your local machine:

git clone https://github.com/Blacksujit/ArogyaKrishi.git

Step 2: Create a .env File

Create a `.env` file in the root directory of the project and add your API keys:

OPEN_WEATHER_APIKEY=YOUR_WEATHER_API_KEY
HUGGINGFACE_LOGIN_TOKEN=YOUR_HUGGING_FACE_TOKEN

Step 3: Build and Run the Docker Containers

Use Docker Compose to build and run the application:

docker-compose up --build

๐Ÿช„ This command will:

- Build the Docker image defined in the Dockerfile. - Start the web application and the database service defined in docker-compose.yml.

Step 4: Access the Application

Once the containers are running, you can access the application in your web browser at:

http://localhost:5000

Step 5: Stopping the Application

To stop the application, press CTRL + C in the terminal where the Docker containers are running. You can also run:

docker-compose down

โญ•โญ• Notes:(IMP instructions)

YOUR_WEATHER_API_KEY and YOUR_HUGGING_FACE_TOKEN with your actual API keys in the .env file.

Ensure that the requirements.txt file is present in your project directory with all necessary dependencies listed.

๐Ÿ“ˆ Feasibility Analysis:

โ€ข High Feasibility: Advanced ML models and cloud deployment enable real-time disease prediction.

โ€ข Scalability: Supports multilingual features

โ€ข Personalized Alerts: Farmers get alerts based on crop type, region, and disease severity.

โš“ Potential Challenges & Risks:

โ€ข Data Quality: Poor data leads to inaccurate predictions

โ€ข Accuracy of AI Models: Risk of false positives and false negatives cases.

โ€ข Environmental Variability: Presence of Diverse conditions. Viability Analysis:

โ€ข Early Detection: Detects diseases early, lowering treatment costs and preventing spread.

๐Ÿช„๐Ÿ”ฎ Impact And Benifities:

โ€ข Economic Benefits: Lowers disease management costs, increasing productivity.

โ€ข Environmental Impact: Optimizes pesticide/fertilizer use, promoting sustainability.

โ€ข Data-Driven Decisions: Provides real-time insights for efficient farm management.

โ€ข Resilience: Enhances farming practices and reduces risks of disease outbreaks.

โ€ข Uniqueness:

  1. Identify crop diseases

  2. Predict disease outbreaks

  3. Recommend preventive measure

  4. Optimize resource allocation

  5. Enhance agricultural productivity

  6. Real-time performance

  7. Userfriendliness

  8. Scalability

๐Ÿฐ Contribution Guidelines:

We welcome contributions! please create an seperate branch and make your chnages and raise and PR if it matches the Project requirements and follow all the guidelines we will happy to merge it .

  1. Fork the repository.

  2. Create your feature branch:

    git checkout -b feature/YourFeature
  3. Commit your changes:

    git commit -m 'Add some feature'
  4. Push changes to the local branch:

    git push origin feature/YourFeature
  5. Open a pull request.

โœจ Contributors: (TEAM ANANT)

1.) Abhishek Kute

2.) Sanskar Awati

3.) Manas Kotian

4.) Minal

5.) Tanushri

๐Ÿ›ก๏ธ License:

This project is licensed under the MIT.

About

ArogyaKrishi MVP is an innovative web application crafted to empower farmers with cutting-edge tools for crop disease detection, soil type prediction, and tailored fertilizer recommendations. By harnessing the latest technology, it delivers actionable insights that revolutionize agricultural practices, promoting healthier crops and sustainablity.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published