AI powered plant disease detection and assistance platform currently available as an App and API.

Overview

SUSya - Plant 🌱 Disease 🐛 Detector 🔎

ML Powered App to assist farmers in crop disease detection and alerts.

Product Walkthrough

SUSya.Demo.mp4

Download Product Apk here

Machine Learning Python Notebook

Solutions

System to detect the problem when it arises and warn the farmers.

Disease Detection using Machine Learning Model enabled through Android app which uses Flask API.

Solution to overcome the problem once it arises.

Remedy is suggested for the disease detected by the app using ML model.

Solution that will ensure that the problem will never occur in the future again

PDF report is generated on the disease predicted along with User Information. PDF can be used as a document to be submitted in nearby Krishibhavan thereby seeking help easily.

Method that will reduce the impact of the dilemma to a significant level

Disease detected news can be sent to other users as a notification which contatins User,plant and disease. This will help other farmers take up precautions thereby reducing the impact of the dilemma to a significant level considering a region.

Machine Learning Model

Multi-Class Image classifier Built on PyTorch framework using CNN architecture. Currently Project Detects 17 States of disease in 4 plants ( Aiming Kerala State ) namely Cherry, Pepper, Potato and tomato.

  • Framework : PyTorch
  • Architecture : Convolutional Neural Networks
  • Validation Accuracy : 77.7%

How to train

Upload the Python notebook to Google Colab and run each cell for training the model. I have included a demo dataset to configure quickly. You can use this Kaggle Dataset which is the original one with huge amount of pictures.

How It Works

The input image dataset is converted to tensor and is passed through a CNN model, returning an output value corresponding to the plant disease. Input image tensor is passed through four convolutional layers and then flattened and inputted to fully connected layers.

API

API is built using Flask framework and hosted in Heroku. The API provides two functionalities, they are

  • Plant Disease Detection

    Accepts a POST request with an image in the form of base64 string and returns plant, disease and remedy.

  • Notification

    Accepts a POST request with plant, user and disease , which is then pushed as a notification to other users to warn them regarding a probable outbreak of disease.

How to use

API has been built on this classifier. URL = "https://plant-disease-detector-pytorch.herokuapp.com/"

User has to send a POST request to the given api with Base64 string of the Image to be input.

import requests
url = "https://plant-disease-detector-pytorch.herokuapp.com/"
#imgdata = base64 string of image
r = requests.post(url,json = {"image":imgdata})
print(r.text.strip())

Output

'{"disease":"Septoria leaf spot","plant":"Tomato","remedy":"Remove infected leaves immediately,......Fungonil and Daconil)."}'

App

Download Product Apk here

To Run App

$ cd app
$ flutter run

To Build App

$ cd app 
$ flutter build apk

Features

  • Authentication using Google OAuth
  • User Profile page
  • Uses camera or device media to get an image of the crop
  • Preview the image and sends it to API, for disease detection
  • Result page showing detected disease and remedy
  • Generates a PDF report to save/share predicted disease details
  • Option to send the generated result as a notification warning to other users

Tech Stack Used

  • Python
  • PyTorch
  • Flask
  • Flutter
  • Firebase

Contributors


Nanda Kishor M Pai
ML Model, API


Ajay Krishna K V
Flutter Dev, API


Hari Krishnan U
ML model, Data collection


Antony S John
Flutter Dev

You might also like...

A flutter app face detection and emotion, can detect if you're smiling, big smiley, sad or if there is not face on the screen.

My Emotion A flutter app face detection and emotion, can detect if you're smiling, big smiley, sad or if there is not face on the screen. News feactur

Dec 31, 2022

Pneumonia and COVID-19 detection Mobile App from Chest X-rays using CNN based deep learning classifiers.

image_classification A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you sta

Dec 7, 2021

Easily scan your documents on the go with Paper. Scan those documents at ease with real-time document detection, multi paged pdfs, optimized and cleaner clicks from an easy to navigate UX

Easily scan your documents on the go with Paper. Scan those documents at ease with real-time document detection, multi paged pdfs, optimized and cleaner clicks  from an easy to navigate UX

Easily scan your documents on the go with Paper. Scan those documents at ease with real-time document detection, multi paged pdfs, optimized and cleaner clicks from an easy to navigate UX

Dec 16, 2022

Flutter Chat App with localization - powered by Stream

flutter_chat_app A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Dec 23, 2022

This is a Flutter project inspired by sustainability and powered by the community

This is a Flutter project inspired by sustainability and powered by the community

This is a Flutter project inspired by sustainability and powered by the community. TrashTrack is a demo of a social platform with geolocation features that brings people a new way of collaboration.

Oct 31, 2021

A simple, modern AppImageHub Client, powered by flutter.

A simple, modern AppImageHub Client, powered by flutter.

AppImagePool Simple AppImageHub Client Main Features FLOSS and non profit app Simple categories Download from github directly, no extra-server involve

Jan 1, 2023

Chatify Flutter & Firebase Powered Chat Application

 Chatify Flutter & Firebase Powered Chat Application

Chatify Flutter Application Chatify Flutter & Firebase Powered Chat Application Flutter Flutter allows you to build beautiful native apps on iOS and A

Oct 18, 2022

A flutter app for a wordpress websites with clean and elegant design. This app is available in free and pro version. You can choose to use the one you need.

A flutter app for a wordpress websites with clean and elegant design. This app is available in free and pro version. You can choose to use the one you need.

📌 Get Flutter for Wordpress Flutter for wordpress is currently available in free and pro version: Flutter for Wordpress Flutter for Wordpress Pro Bea

Dec 13, 2022
Comments
  • Application API Demo Error on Heroku

    Application API Demo Error on Heroku

    import requests
    url = "https://plant-disease-detector-pytorch.herokuapp.com/"
    #imgdata = base64 string of image
    r = requests.post(url,json = {"image":imgdata})
    print(r.text.strip())
    

    '\n\t\n\t \n\t\t\n\t\t\n\t\tApplication Error\n\t\t\n\t \n\t \n\t\t\n\t \n\t'

    With 503 Error

    opened by gaetan1903 1
  • [ImgBot] Optimize images

    [ImgBot] Optimize images

    Beep boop. Your images are optimized!

    Your image file size has been reduced by 22% 🎉

    Details

    | File | Before | After | Percent reduction | |:--|:--|:--|:--| | /app/android/app/src/main/ic_launcher-playstore.png | 101.57kb | 68.05kb | 33.00% | | /app/web/favicon.png | 0.90kb | 0.64kb | 29.01% | | /app/assets/logo.png | 54.68kb | 42.66kb | 21.97% | | /app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png | 38.12kb | 29.83kb | 21.76% | | /app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png | 23.90kb | 18.82kb | 21.26% | | /app/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png | 3.71kb | 3.19kb | 14.08% | | /app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png | 13.18kb | 11.44kb | 13.26% | | /app/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png | 7.87kb | 7.07kb | 10.10% | | /app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png | 17.21kb | 16.82kb | 2.25% | | /app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png | 24.65kb | 24.51kb | 0.54% | | | | | | | Total : | 285.78kb | 223.02kb | 21.96% |


    Black Lives Matter | 💰 donate | 🎓 learn | ✍🏾 sign

    📝 docs | :octocat: repo | 🙋🏾 issues | 🏅 swag | 🏪 marketplace

    opened by imgbot[bot] 0
Owner
Nanda Kishor M Pai
ML Intern Frugal Labs || Former NLP Intern Jiffy.ai || Computer Science & Engineering, College of Engineering Trivandrum 2019-2023
Nanda Kishor M Pai
Plant-Disease-Detector - A Flutter app that detects a plant's disease given a photo of an affected part of the plant

Plant Disease Detector A Flutter app that detects a plant's disease given a phot

suis458 5 Dec 14, 2022
Plant-monitor - Plant monitoring system using IoT, MongoDB, and Flutter

Plant Monitor IoT based plant monitoring system which is connected to MongoDB. T

Souvik Biswas 15 Dec 1, 2022
This is a smart farming app which helps farmers to remotely monitor their crop and take necessary actions. It also has a feature called disease detection.

Smart-Farming-App This is a smart farming app which helps farmers to remotely monitor their crop and take necessary actions. It has features called di

Nihar Shah 2 Jul 9, 2022
With ML Kit's face detection API, you can detect faces in an camera or image, Note that the API detects faces, it does not recognize people

Face Detection This project is a starting point for a Flutter application. Getting Started For help getting started with Flutter, view our online docu

Nashwan Abdullah 21 Dec 29, 2022
To cure symptoms of various disease using medicines at home this app will act as guideline. Few animations are used and Firebase is used as database.

Medkit It's a Pharmacy application that help you in curing basic symptoms and diseases with medicines available in your home. How to Run Code Clone or

Muhammad Hamza 109 Dec 22, 2022
A chat-like app that allows students to exchange chargers given port type and the room it is currently located in.

charger_connect A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Lani 2 Dec 22, 2021
This App Currently is a Simple Budget Manager Show Analytics Based on Your Past Transactions

Budgex [In Progress] This App Currently is a Simple Budget Manager Show Analytics Based on Your Past Transactions Features Localization Persistant Sto

Mohammad Javad Hossieni 8 Nov 14, 2022
A Plant shop app with flutter

plant_shop A new Flutter project. Images

Joel Dsouza 0 Dec 27, 2021
Plant Manager is an application that was developed on Rocketseat NLW5 with React Native but was rebuilt using Flutter.

Technologies | Project | Layout | License ?? Technologies This project was developed with the following technologies: Flutter ?? Project Plant Manager

Mayderson 7 Aug 11, 2021
Plant monitoring using Node MCU (with various sensors), Flutter & Firebase

IoT based plant monitoring system which is connected to Firebase. A Flutter app is used to display the live data from the sensors attached to the plan

Souvik Biswas 18 Jan 7, 2023