Code Monkey home page Code Monkey logo

crop-recommendation's Introduction

Crop-Recommendation

Dataset is taken from Kaggle. Link : https://www.kaggle.com/atharvaingle/crop-recommendation-dataset

Variable Details:

Dataset consists of 8 variables where 7 variables are considered for predicting output variable. The details of Variable is given Below

  1. N (Nitrogen) : Nitrogen content in the soil. Nitrogen is really important for plant growth (structure), plant food processing (metabolism), and the creation of chlorophyll. Without enough nitrogen in the plant, the plant cannot grow taller, or produce enough food (usually yellow).
  2. P (Phosphorus) : Phosphorus content in the soil. Phosphorus primary role in a plant is to store and transfer energy produced by photosynthesis for use in growth and reproductive processes. Soil P cycles in a variety forms in the soil
  3. K (Potassium) : Potassium content in the soil. Potassium is an essential nutrient for plant growth.
  4. Temperature : Temperature in degree censius. High temperatures affect plant growth in numerous ways. The most obvious are the effects of heat on photosynthesis, in which plants use carbon dioxide to produce oxygen, and respiration, an opposite process in which plants use oxygen to produce carbon dioxide.
  5. Humidity : Relative humidity in %. When conditions are too humid, it may promote the growth of mold and bacteria that cause plants to die and crops to fail, as well as conditions like root or crown rot. Humid conditions also invite the presence of pests, such as fungus gnats, whose larva feed on plant roots and thrive in moist soil.
  6. PH : ph value of the soil. Plant nutrients leach from the soil much faster at pH values below 5.5 than from soils within the 5.5 to 7.0 range. In some mineral soils aluminum can be dissolved at pH levels below 5.0 becoming toxic to plant growth. Soil pH may also affect the availability of plant nutrients.
  7. Rain fall : Rainfall in mm. Plants use the moisture in the soil to replenish the water lost through transpiration. If there is no water in the soil, the leaves will wilt. As more water is lost, the plant will fail and eventually die. Rainwater builds up the moisture levels in the soil and assures a healthy plant. Finally,
  8. Label : This is the output variable which contains 22 unique values i.e., 22 different crops and they are ['Apple','Banana','blackgram','chickpea','coconut','coffee','cotton','grapes','jute','kidney beans','lentil','maize','mango','moth beans','mung bean','muskmelon','orange','papaya','pigeonpeas','pomegranate','Rice','Watermelon']
    Exploratory data analysis carried out to fetch insights from the data.

Algorithm :

Only three algorithms are used to predict the output. They are Logistic Regression, XGBoost and Random Forest.\

  1. Accuracy of the model using Logistic Regression is 95%.
  2. Accuracy of the model using Random Forest Classifier is 99%.
  3. Accuracy of the model using XGBoost Classifier is 99%.
    Random Forest Classifier is used for development of model.

Deployment :

I have used both flask and streamlit libraries to create the application.
The application is deployed in Heroku platform. App URL : https://crop-recommend.herokuapp.com/

crop-recommendation's People

Watchers

 avatar

Forkers

ollawone

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.