Skip to content

App for crop recommendation/prediction using neural networks and machine learning, deployed on oracle cloud.

Notifications You must be signed in to change notification settings

shan515/AI-Based_Crop-Predictor_App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lets_HackIT

This repo is maintained for the purpose of Gov-Techthon 2020 by Team : Lets_HackIT
The problem statement focuses on promoting crop recomendation/rotating to help farmers overcome the obtacles and difficulties encountered during farming .So we have tried to come up with the best possible solution from our side to overcome this problem statement by making use of modern technologies.

Workflow of the entire solution

The solution is divided into 5 major aspects

Front End

  • User Friendly
    • SELECT THE MONTH/SEASON
    • TYPE OF SOIL
    • AREA OF FARM
    • BILINGUAL SUPPORT IN ENGLISH AND HINDI.
  • Location
    • GPS TO GET LATITUDE AND LONGITUDE AUTOMATICALLY
  • IOT Sensor
    • N,P,K
    • Soil pH
  • Prediction
    • crop + Prediction
    • Yield
    • PDF containing the information of predicted crop
  • Connect
    • Agricultural agencies
    • Agricultural resources/links
  • History
    • List and information of previously grown crops

Data Analysis and Generation

  • The data required for this model was a combination of data from:
    • Kaggle : State Name, District Name, Season of cropping , Area, Production, Crop.
    • Synthetic Data : Teperature range, Sowing temperature, Harvesting Temperature, pH, Nitrogen-Phosphorous-Potassium, Soil type , Water resource.
    • Forecast Data : Weather/rainfall forecast data , Ground water and Irrigation.

AI/ML

NEURAL NETWORK PROVIDES A MORE ACCURATE WAY OF DEALING WITH DATASETS WHERE THERE ARE MANY INTERSECTIONS LIKE THE ONE ON WHICH WE ARE WORKING ON.

  • The Neural Network consists of

    • 12 input parameteres
    • 2 Hidden layers each having 64 units
    • Softmax function at the output
    • The model attained an accuracy of ariund 99.3% as shown below:

Deployement (Backend)

  • Python Flask Server

  • Exposes a route for Predictions (/predict)

  • External API calls for - Current/Forecasted Weather and Rainfall

  • Returns a JSON for predicted crop with probability.

Output

Postman Test

App Output

Additional Output (Auto-Genereated)

PDF File of Output

To Do

  • We have deployed the app on Oracle cloud. There are sme minor issues which have to be fixed.
  • Add disease recognition using computer vision
  • Find nearest crop mandal for farmer

Made with ❤️ by:

About

App for crop recommendation/prediction using neural networks and machine learning, deployed on oracle cloud.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published