You are on page 1of 17

CROP RECOMMENDATION SYSTEM

USING MACHINE LEARNING


Guided by Dr.S.RamaKrishna
Batch :B5
K.Amrutha Y16ACS466
L.Anu Y16ACS486
N.Akhila Y16ACS502
M.Sai Krishna Y16ACS499
Abstract
Crop recommendation system intends to assist the Indian
farmers in making an informed decision about which crop
to grow depending on the sowing season, his farm’s
geographical location, soil characteristics as well as
environmental factors such as temperature and rainfall
using machine learning algorithm.
Introduction
 India is one of the leading countries worldwide in terms of farm output. Even after being a
leading producer of agricultural products, India still lacks farm productivity. Farmers have
very less income because of the lack of farm productivity. There needs to be an increase in
productivity, in order to get more income for the farmers. To increase productivity,
farmers should know which crop would suit the specific piece of land. If the right type of
crop is cultivated in that piece of land, then automatically, the yield of the crop will
increase. Hence, crop recommendation systems can be very beneficial for farmers.
Recommendation systems need to be very accurate and explicit. If not, it may result in
vast amount of loss on the monetary and materialistic front. Various machine learning
methods can be used to create recommendation systems. We use multiple machine
learning algorithms to build a powerful, accurate and an unambiguous recommendation
system.
Architecture
Precision and Recall
Precision and recall are the
measures used in the
information retrieval domain
to measure how well an
information retrieval system
retrieves the relevant
documents requested by a
user.

Precision = Total number of


documents retrieved that are
relevant/Total number of documents
that are retrieved.

 Recall = Total number of documents


retrieved that are relevant/Total
number of relevant documents in the
database.
Why we need to use Precision and Recall ?
To fully evaluate the effectiveness of a model, you must
examine both precision and recall. Unfortunately, precision and
recall are often in tension. That is, improving precision
typically reduces recall and vice versa.
In simple terms, high precision means that an algorithm
returned substantially more relevant results than irrelevant
ones, while high recall means that an algorithm returned
most of the relevant results.
Comparisons of precision and recall of various
algorithms on our dataset
1.2

0.8

0.6 Precision
Recall
0.4

0.2

0
Percep- MLP Random Decision KNN SVM
tron Forest Tree
ROC AND AUC CURVE
• AUC (Area Under The Curve) and ROC (Receiver Operating Characteristics)
curve for visualize
the performance of the multi – class
classification problem.
• ROC is a probability curve for different
classes.
• ROC is a plot of the false positive
rate versus the true positive rate
for a number of different candidate
threshold values between 0.0 and 1.0.
• ROC tells us how good the model is
for distinguishing the given classes,
in terms of the predicted probability.
• AUC represents degree or measure of separability.
• Higher the AUC, better the model is at predicting
0s as 0s and 1s as 1s.
• The ROC curve is plotted with TPR against the FPR
where TPR is on y-axis and FPR is on the x-axis.

KNN PT RF DTREE SVM MLP

92.78 54.18 94.16 96.57 76.37 87.57


DJANGO
 Django is a Web Application Framework which is used to develop web
applications.

 It is based on MVT (Model View Template) design pattern.

How to create a django project?

 To create a django project


django-admin startproject  projectname   

 To create a application
django-admin startproject djangpapp 

 To run the server of the project


$ python3 manage.py runserver  
 Our application predicts which crop is suitable for the given inputs.

 
Ensemble Learning
 Ensemble learning techniques attempt to make the performance of
the predictive models better by improving their accuracy. Ensemble
Learning is a process using which multiple machine learning
models (such as classifiers) are strategically constructed to solve a
particular problem.
 Basic Ensemble Techniques
Max Voting
Averaging
Weighted Average
Further Work
 Implementing Ensemble Technique.
 Improving the interface by adding more graphs and
information.

You might also like