Skip to content

An AI-driven platform offering crop recommendations, fertilizer suggestions, and disease detection for optimal farming

License

Notifications You must be signed in to change notification settings

AnMol12499/CropcareAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CropCareAI

An AI-driven platform offering crop recommendations, fertilizer suggestions, and disease detection for optimal farming.

MOTIVATION

  • Farming is one of the major sectors that influences a country’s economic growth.

  • In country like India, majority of the population is dependent on agriculture for their livelihood. Many new technologies, such as Machine Learning and Deep Learning, are being implemented into agriculture so that it is easier for farmers to grow and maximize their yield.

  • In this project, I present a website in which the following applications are implemented; Crop recommendation, Fertilizer recommendation and Plant disease prediction, respectively.

    • In the crop recommendation application, the user can provide the soil data from their side and the application will predict which crop should the user grow.

    • For the fertilizer recommendation application, the user can input the soil data and the type of crop they are growing, and the application will predict what the soil lacks or has excess of and will recommend improvements.

    • For the last application, that is the plant disease prediction application, the user can input an image of a diseased plant leaf, and the application will predict what disease it is and will also give a little background about the disease and suggestions to cure it.

DATA SOURCE 📊

Notebooks 📓

Built with 🛠️

DEPLOYMENT 🚀

  • Heruko was used for deployment.

How to use 💻

  • Crop Recommendation system ==> enter the corresponding nutrient values of your soil, state and city. Note that, the N-P-K (Nitrogen-Phosphorous-Pottasium) values to be entered should be the ratio between them. Refer this website for more information. Note: When you enter the city name, make sure to enter mostly common city names. Remote cities/towns may not be available in the Weather API from where humidity, temperature data is fetched.

  • Fertilizer suggestion system ==> Enter the nutrient contents of your soil and the crop you want to grow. The algorithm will tell which nutrient the soil has excess of or lacks. Accordingly, it will give suggestions for buying fertilizers.

  • Disease Detection System ==> Upload an image of leaf of your plant. The algorithm will tell the crop type and whether it is diseased or healthy. If it is diseased, it will tell you the cause of the disease and suggest you how to prevent/cure the disease accordingly. Note that, for now it only supports following crops

Supported crops
  • Apple
  • Blueberry
  • Cherry
  • Corn
  • Grape
  • Pepper
  • Orange
  • Peach
  • Potato
  • Soybean
  • Strawberry
  • Tomato
  • Squash
  • Raspberry

How to run locally 🛠️

  • Before the following steps make sure you have git, Anaconda or miniconda installed on your system
    ❯ git clone -b deploy https://github.com/AnMol12499/CropcareAI.git
    
  • deploy branch has only the code required for deploying the app (rest of the code that was used for training the models, data preparation can be accessed on master branch)
  • It is highly recommended to clone the deploy branch for running the project locally (the further steps apply only if you have the deploy branch cloned)
  • Once the project is cloned, open anaconda prompt in the directory where the project was cloned and paste the following block
    conda create -n CropcareAI python=3.6.12
    conda activate CropcareAI
    pip install -r requirements.txt
    
  • And finally run the project with
    python app.py
    
  • Open the localhost url provided after running app.py and now you can use the project locally in your web browser.

DEMO

  • Crop recommendation system

demo

  • Fertilizer suggestion system

demo

  • Disease Detection system

demo

Usage ⚙️

You can use this project for further developing it and adding your work in it. If you use this project, kindly mention the original source of the project and mention the link of this repo in your report.

Further Improvements 📈

This was my first big project so there are lot of things to improve upon

  • CSS code is totally messed up 😔 (some code in file and some inline)
  • Frontend can be made more nicer (PS: I suck at frontend development) 😢
  • More data can be collected manually via web scrapping to make the system more accurate 🧐
  • Additional plant images can be collected to make the disease detection part more robust and generalized 🤕
  • Modularized code can be written instead of writing in Jupyter Notebooks (will follow this in upcoming projects)

License 📝

This project is licensed under GNU (GENERAL PUBLIC LICENSE)

About

An AI-driven platform offering crop recommendations, fertilizer suggestions, and disease detection for optimal farming

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published