Prediction of Crops Based On Soil Type Using Machine Learning
Prediction of Crops Based On Soil Type Using Machine Learning
BELAGAVI-590018
Project Report on
(18CSP82)
Bachelor of Engineering
In
Information Science & Engineering
Submitted by
2021-2022
NAGARJUNACOLLEGEOFENGINEERINGANDTECHNOLOGY
(AnAutonomousInstitutionunderVTU,AccreditedbyNAACwith“A+”Grade)
Bengaluru-562164,Karnataka,India
DEPARTMENTOFINFORMATIONSCIENCE&ENGINEERING
CERTIFICATE
Certifiedthattheprojectworkentitled“Prediction Of Crops Based on Soil Type Using Deep
Learning”carried outby Ms. Aishwarya Das Prakash (INC18IS002), Ms. Ankitha H R
(1NC18IS006), Ms. Prathiksha S V (INC18IS036)andMs.Madhusudhan
Reddy(1NC17IS011)bonafide students of Nagarjuna College of Engineering and Technology, an
autonomous institutionunder VisvesvarayaTechnological University, Belagavi in partial fulfillment for
the awardof Bachelor in Engineering in Information Science & Engineering during the academic
year2021-2022. It is certified that all corrections/suggestions indicated for internal assessmenthave been
incorporated in the report deposited in the departmental library. The project workhasbeen approved, as
it satisfies the academic requirement in respect of project workprescribedforthe saiddegree.
ExternalViva-Voce
NameoftheExaminer Signaturewithdate
1.......................................... .............................................
2. ......................................... .............................................
ACKNOWLDGEMENT
Every project begins with an idea and materializes with concrete efforts. In the beginning, we would like
to thank the almighty God and our parents who gave us the strength and capability to work on this
project and complete it successfully.
We are extremely grateful to our project guide Ms. Shruti Jalapur Assistant Professor, Department of
Information Science & Engineering for the guidance and encouragement.
It is indeed gratifying to have the privilege to express our sense of gratitude to our project coordinators
Ms. Shruti Jalapur Assistant Professor Department of Information Science and Engineering, NCET
for his scholarly guidance during the course of investigation.
We extend our sincere gratitude to Dr. Anil Kannur Professor &Head of the Department, Information
Science & Engineering, NCET, for his consistent assistance and guidance during the course of the
projectwork.
We also express our gratitude to Dr. B V Ravishankar, Principal, Nagarjuna College of Engineering
and Technology for his help andsupport.
Finally, we express our immense pleasure and thanks to all Teaching staff and non-teaching staff of
the Department of Information Science & Engineering, NCET for their co-operation andsupport.
Ankitha H R (1NC18IS006)
Prathiksha SV (1NC18IS036)
I
TABLE OF CONTENTS
1. ACKNOWLEDGEMENT Ⅰ
2. TABLEOFCONTENTS Ⅱ-III
3. LISTOFFIGURES IV
4. LISTOFTABLES V
5. ABSTRACT V
II
CHAPTER NO. CHAPTER TITLE PAGE NO.
CHAPTER 1 INTRODUCTION 6
REFERENCES 35
III
LIST OF FIGURES
IV
LIST OF TABLES
V
ABSTRACT
The main goal of our project is to create a one stop solution to various problems in the
domain of agriculture. Now a day’s Machine Learning is getting more popular as it is the
technique of teaching machines to make decisions by the provided data. This stream of
computer Science helps lot in achieving our goal i.e. predicting the Suitable Crop based on
the condition of the cultivation land, estimating of the quantity of fertilizers to be used based
on the weather condition and various practices taken. This Project eliminates the manual and
inaccurate approach practiced by the farmers and helps them to make right decisions for a
better yield. In this application the crops are paired with their suitable soil based soil type by
considering soil’s fertility, NPK contents, ph values, other necessary nutrients content.
VI
Prediction of crops based on soil type
CHAPTER 1
INTRODUCTION
In India, farming is done by traditional method, farmer’s plant crops traditionally without
knowing the content of soil and quality of that soil. As a result, farmers will not gain sufficient
profit from there farming. The existing method of soil testing is manual method which starts by
taking soil samples and then sends to laboratories for testing. This manual process is time
consuming and not so feasible. Due to human intervention there are chances of human errors so
farmers may receive incorrect report. So, there is need of automated process for soil testingand
cropprediction.Testingofsoilisimportantbecausesoiltestinghelpstodeterminefertilityofsoil and
thus crop prediction can be done. So, we proposed a system which will have a handheld
devicewhichgivespHvalueandwewillestimateNitrogen(N),Phosphorus(P)andPotassium
(K) from the pH, temperature, moisture and electrical conductivity of thatsoil.
India is one of the agriculture-based country in which 50% workforce is involved in agricultural
activities. India accounts for 7.68% of total global agricultural output. Contribution of
agriculture sector in Indian economy is much higher than world average (6.1%). But, traditional
farms in India still have some of the lowest per capita productivity and farmer incomes. This
sector also requires a lot of human efforts to do different kind of tasks like watering crop,
cultivating crop and spreading pesticides etc. Soil analysis is important methodology as it gives
nutrientspresentinsoilsuchasNPK,temperature,moistureandelectricalconductivityvalues.In
automated soil testing human efforts will be reduced by monitoring the quality of soil using
sensors.
CHAPTER 2
LITERATURE SURVEY
Paper 1: “Crop selection method to maximize crop yield rate using machine learning
technique”
The paper presents a vivid representation of a Crop Selection Method which aims to solve the
crop selection issue and enhances the net yield of the harvest. The authors have proposed a
strategy that proposes a scope of crops to be chosen over a season by keeping into thought the
essential elements like the climate, water density, crop category. The estimated value of the
factors that are highly influential determine the precision of Crop Selection Method. The
technique taken into account in the paper is the method of crop sequencing. A categorization of
the crops is done in four divisions namely seasonal, whole year, short-time plantation, and long-
time. The grouping of the crops from each category is selected in a sequence for the crop
cultivation. Hence there is a necessity for a prediction technique with upgraded precision and
performance.
In this paper a crop recommendation system has been designed that takes into consideration the
soil dataset with respect to the four crops Rice, Cotton, Sugarcane, Wheat. The soil dataset is first
pre-processed and then the ensembling technique performs a critical function in the classification
of the four crops. The individual base learners used in the ensemble model are Random Forest,
Naive Bayes, and Linear SVM. Majority Voting Technique has been used as the combination
method to provide the best accuracy. Hence, the proposed work provides a helping hand to the
farmer in the accurate selection of the crop for cultivation.
In this paper, they have successfully proposed and implemented an intelligent crop
recommendation system, which can be easily used by farmers all over India. This system
would assist the farmers in making an informed decision about which crop to grow depending on
a variety of environmental and geographical factors. They have also implemented a secondary
system, calledRainfall
Predictor, which predicts the rainfall of the next 12 months. The high accuracies provided byboth
these models make them very efficient for all practical and real-time purposes. Furthemore, crop
demand and supply as well as other economic indicators like farm harvest prices and retail prices
can also be considered as parameters to the Crop Suitability Predictor model. This would
providea holistic prediction not only on the basis of environmental and geographical factors, but
also depending on the economicaspects.
Paper 4: “Soil Classification using Machine Learning Methods and Crop Suggestion Based on
Soil Series”
A model is proposed for predicting soil series and providing suitable crop yield suggestion
for that specific soil. The research has been done on soil datasets of six upazillas of Khulna
region. The model has been tested by applying different kinds of machine learning algorithm.
Bagged tree and K-NN shows good accuracy but among all the classifiers, SVM has given the
highest accuracy in soil classification. The proposed model is justified by a properly made dataset
and machine learning algorithms. The soil classification accuracy and also the recommendation
of crops for specific soil are more appropriate than many existing methods. In future, providing
fertilizer recommendation is our concern, also data of other districts will be added to make this
model more reliable andaccurate.
The paper talks about the detection of sodium, potassium and phosphorous contents respectively
by photon absorption technique. Photon absorption technique is a simple and non-destructive
analytical method that can be used to quantify several soil properties simultaneously.
Paper 6:” Machine learning and statistical approaches used in estimating parameters that affect
soil fertility status: a survey”
In this paper, a study is made on different parameters used in the literature for defining the
characteristics of the soil and how they are used as input for machine learning algorithms/analysis
for predicting the soil fertility. Based on this study, it could be observed that prediction
techniquescould be efficiently applied over optimized soil parameters for soil fertility prediction
with more accuracy and less human intervention. The parameters that affect the fertility are
many, which are estimated in laboratories using conventional methods, and its need of the hour to
revolutionize these estimation procedures of soil fertility using automated methods. This survey
takes an account of the research work that has recently performed, on predicting soil fertility
parameters using machine learning approaches. The papers included in the survey aims at
mapping factors that directly or indirectly affect the soil fertility viz. pH, Phosphorous content,
etc. Soil fertility is measured in terms of presence/ absence of 8 macro nutrients and 9 micro
nutrients present in the soil. Apart from these, the physical properties such as texture, porosity
etc. and chemical properties such as pH, Cation Exchange Capacity, Soil water Retention
Capacity (SWRC). They used four types of machine learning models ANN(Artificial Neural
Network), Support Vector Regression, subtractive clustering Fuzzy inference systems (SC-
FIS),Wang and Mendels Fuzzy Inference Systems (WM-FIS). The crust of the paper is that it
uses FIS which is a novel approach in microbial prediction and appears to be the best compared
to other approaches which have tried to model thesame.
Paper 7: Potassium, an important element to improve water use efficiency and growth parameter
in quinoa under saline condition.
In this paper they have analysed the stress level in plants associated with salinity and K
deficiencyand used machine learning algorithms like KNN and Random forest. By considering
mineral nutrition as an important key for salt tolerance they have optimize crop productivity
under saline conditions
K+ is important to reduce possible damage caused by salinity and at the same time increase
cropproductivity
Paper 8: Heat, wheat and CO2: The relevance of timing and the mode of temperature stress
onbiomass and yield.
In this paper author has predicted temperature and moisture IOT model is applied with sensor
techniques.Elevated temperature exerts different effects on wheat performance depending on
themode and the timing of temperature stress
Climate chamber approach to investigate the interactive effects of CO2 enrichment and
differenttemperature regimes, applied during different growth stages, on bio‐ mass and yield of
wheat.
Paper 9: Thresholds, sensitive stages and genetic variability of finger millet to high
temperaturestress
To record the yield and its components, crop selection method using SVM(support vector
machine) one of the assembling technique. Development of finger millet genotypes with
improved tolerance to HT stress can provide greater yield stability and resilience in current
andfuture climate. Under field conditions, HT stress will be different due to day to day
variation intiming, intensity and duration of stress events
Based on the stress response and grain yield, tolerant or susceptible genotypes were identified.
The paper uses association rule mining to predict the yield of the crop. The algorithms used are k-
Means Algorithm, clustering method and A priori association rule mining. The major
disadvantage is that the paper uses association rule mining for prediction of crop yield. The
problem with association rule mining is that it generates too many rules in some cases and the
accuracy of the prediction reduces. Also the rules tend to vary as per dataset and the results also
very greatly. The proposed system mainly focuses on the issue of yield prediction of crop which
plays very important role in crop selection as farmer can select crop with maximum yield.
The systems uses association rule mining to find rules and crops with maximum yield. This
system focuses on creation of a prediction model which may be used to future prediction of crop
yield.
CHAPTER 3
IMPLEMENTATION
System architecture is a conceptual model that defines the structure, behavior and more views
of a system. A system architecture can comprise system components, the expand system
developed, that will work together the overall system.
Inthisphasewecomeacrossdifferent sensorswhichincludeNPK,pH,temperature,moisture,
electric conductivity sensors which helps in reading the live data from the soil which is to
include IoT device built using an Arduino. IoT is a system of interrelated computing devices,
mechanical and digital machines provided with unique identifiers and the ability to transfer
data over a network without requiring human-to-human or human- to-computer interaction.
Hence the values captured by the sensors placed in the soil are directly sent to the softwarefor
analysis.
❖ PredictionModel
In this phase we use three different machine learning algorithms to predict which crop is
suitable to grow in the soil being tested, the algorithms used are Naive Bayes Classifier
algorithm, k-Nearest-Neighbor algorithm and Random Forest. These algorithms are known to
result in a set of high probability matches or crop varieties, hence the crops which occur a
higher number of times is selected as most suitable.
❖ Data Analytics
Reducing the resultant crop varieties to a single ideal variety that assures profitable yield, this
phase work on our datasets and by taking the results of each algorithm we predict a final
answer. Additional constraints are also applied at this at this stage to further narrow down
possibilities.
Fig.2.1laysoutthesystemarchitecturefortheproject.TheIoTmodelconsistofTemperature sensor,
moisture sensor, and electric conductivity sensors and NPK and Ph values. The three
algorithmsusedforpredictionmodelis K-NN,RandomForestandSVM.Byusingthiswecan predict
with training dataset, and data analytical is nothing but a live review and data visualization
from Arduino from IoTmodel.
Flowchart Diagram
A flowchart is one of the basic quality tools used in project management and it displays the
actions that are necessary to meet the goals of a particular task in the most practical sequence.
Also called as process maps, this type of tool displays a series of steps with branching
possibilities that depict one or more inputs and transforms them to outputs.
In this project, data is collected from the IoT model and that data is preprocessed using the
dataset. The crop model creation is done by applying three machine learning algorithms based
on their accuracy is classification and regression. A model is created and analysis of retrieved
Sequence Diagram
A sequence diagram simply depicts interaction between objects in a sequential order i.e. the
orderinwhichtheseinteractionstakeplace. Wecanalsousethetermseventdiagramsorevent
scenarios to refer to a sequence diagram. In this project User produces the soil sample to be
tested as input to the sensor. The sensors used are able to measure values such as temperature,
moisture, electrical conductivity. Additionally, the NPK and pH value is manually added and
together all attributes and their respective values are passed to the IoT model. The Model is a
collection of data sets required to aid in the prediction of crop variety and fertilizer amount.It
Dataflow Diagram
A data flow diagram (DFD) is graphic representation of the "flow" of data through an
information system. A data flow diagram can also be used for the visualization of data
processing (structured design). It is common practice for a designer to draw a context level
DFD first which shows the interaction between the system and outside entities. DFD’s show
the flow of data from external entities into the system, how the data moves from one process
to another, as well as its logical storage. There are only foursymbols:
In level 1 DFD, the context diagram is decomposed into multiple processes that highlight the
main functions of the system and breakdown the high-level process of level 0 DFD into
subprocesses.Fig. 3.2showsthelevel1DFDfortheproject.Theuserprovidesthesoilsample as input
and the IoT model which is the collection of data sets, preprocesses the data and split the data
set to create the model by using the three algorithms namely Naive Bayes, KNN and Random
forest based on their accuracy and prediction of crop is done. The same procedure is followed
for fertilizer prediction by using the three algorithms based on the accuracy and the
attributeusedforthemodelcreationareNPK,pH,moisture,temperature,electricconductivity
andcrop.
CHAPTER 4
ALGORITHMS USED
The three algorithms used to accurately make a decision on the type of crop to cultivate are
mentioned below:
For example, suppose we have an image of a creature that looks similar to cat and dog, but we
want to know either it is a cat or dog. So, for this identification, we can use the KNN algorithm,as
it works on a similarity measure. Our KNN model will find the similar features of the new data
set to the cats and dog’s images and based on the most similar features it will put it in eithercat or
dog category. Suppose there are two categories, i.e., Category A and Category B, and we have a
new data point x1, so this data point will lie in which of these categories. To solve this type of
problem, we need a K-NN algorithm. With the help of K-NN, we can easily identify thecategory
or class of a particular dataset.
The K-NN working can be explained on the basis of the below algorithm:
Suppose we have a new data point and we need to put it in the required category. Consider the
below image:
o Firstly,wewillchoosethenumber ofneighbors,sowewillchoosethek=5.
o Next,wewillcalculatetheEuclideandistancebetweenthedatapoints.
The Euclidean distance is the distance between two points, which we have already studied in
geometry. It can be calculated as:
o BycalculatingtheEuclideandistance,wegotthenearestneighbors,asthreenearest
neighbors in category A and two nearest neighbors in categoryB.
Random Forest
Randomforestsorrandomdecisionforestsareanensemblelearning methodforclassification,
regressionandothertasksthatoperatesbyconstructingamultitudeofdecisiontreesattraining
timeandoutputtingtheclassthatisthemodeoftheclassesormeanpredictionoftheindividual trees.
Randomforest,likeitsnameimplies,consistsofalargenumberofindividualdecisiontreesthat
operate as an ensemble. Each individual tree in the random forest spits out a class prediction
andtheclasswiththemostvotesbecomesourmodel’sprediction(seefigurebelow)
1. Thereneedstobesomeactualsignalinourfeaturessothatmodelsbuiltusingthosefeatures do
better than randomguessing.
2. The predictions (and therefore the errors) made by the individual trees need to have low
correlations with eachother.
To separate the two classes of data points, there are many possible hyperplanes that could be
chosen.Ourobjectiveistofindaplanethathasthemaximummargin,i.e.themaximumdistance
between data points of both classes. Maximizing the margin distance provides some
reinforcement so that future data points can be classified with more confidence. A sample of
data is provided to the model. These inputs should be structured appropriately in order to be
read. The next step is to define the initial SVM parameters and the kernel function that will be
used from the SVM algorithm. The error cost term C and the maximal margin ε should be
selected randomly. Then, the training process begins. The sample is divided into v parts. One
subset is used as a validation part and the remaining are used to train the model. This process
prevents the over fitting problem and making the trained model to have good generalization
performance. Once the trained model is created, a new unknown data set is provided to the
model. SVM produces a forecast output for this unknown sample based on the trainedmodel.
CHAPTER 5
MODEL OF THE PROJECT
❖ IoT Model
• Temperature
• Moisture
• Electric conductivity
Testing of the soil sample is to be done by the sensors and the measured values are sent to
an IoT device to be processed. The NPK and Ph values of the soil sample are extracted
manually.
❖ Data preprocessing
Data Preprocessing is a technique that is used to convert the raw data into a clean data set. In
other words, whenever the data is gathered from different sources it is collected in raw format
which is not feasible for the analysis. Therefore, certain steps are executed to convert the data
into a small clean data set. This technique is performed before the execution of Iterative
Analysis. The set required to be carried out in this technique is known as data preprocessing.
It includes:
• DataCleaning
irrelevant parts of the data and the replacement, modification, or deletion of the
• DataIntegration
Data integration is the method of combining data residing in different sources and
• DataTransformation
Data transformation is process of converting data from one format or structure into another
format or structure
• Data Reduction
❖ Crop modelcreation
After the implementation of three algorithms namely Random forest,KNN, and Naïve Bayes,
we select the algorithm with the highest accuracy to train and create the model. Model
construction once complete, is followed by model training. We were able to build models
which take our data. Split the dataset into train and test dataset. Finally, we will build and
train the model using training dataset. and the attribute used for the model creation are NPK,
pH, moisture, temperature, and electric conductivity. By using this we predict the crop most
suitable forcultivation.
❖ Modelanalysis
Algorithm used in this project are Naive Bayes, Random Forest and KNN in which It has the
model accuracy, and visualization part
CHAPTER 6
SYSTEM TESTING
In this chapter, an overview of testing is provided to verify the correctness and the
functionality of the system. Software testing is the process of analyzing a software item to
detect the differences between the existing and required conditions and to evaluate the
features of software item. It is a task intended to detect defects in software by contrasting a
computerprogram’sexpectedresultswithitsactualresultsforgivensetofinputsandshould be
done throughout the developmentprocess.
The aim of testing phase is to discover defects or errors by testing individual program
components. During a system testing, these components are integrated to form a complete
system. At this stage, testing was focused on establishing that the system met its functional
requirements, and does not behave in an unexpected way. Test data were inputs which had
been devised to test the system and the outputs were predicted from these inputs if the
systemoperatesaccordingto itsspecification.Testingwasdonetoexaminethebehaviorin a
cohesive system. The test cases were selected to ensure that the system behavior can be
examined in all possible combination ofconditions.
Accordingly,theexpectedbehaviorofthesystemunderdifferentcombinationsweregiven.
Therefore,testcaseswereselectedwhichhadinputsandtheoutputswereonexpectedlines. Inputs
that were not valid and for which suitable messages had to be given and the inputs that did
not occur frequently were regarded as specialcases.
Test Environment
A testing environment is a setup of software and hardware on which the testing team is
going to perform the testing of the newly built software product. This setup consists of the
physical setup which includes hardware, and logical setup that includes Server Operating
system, client operating system, database server, front end running environment, browser
(ifwebapplication),oranyothersoftwarecomponentsrequiredtorunthissoftwareproduct. This
testing setup is to be built on both theends.
• Visual Studio code for editing. Any code editing software can be used to
write theprograms
• XAMPP server used to run the web server and the databaseserver
❖ Hardware
• Internetconnection
Test Case
Setoftestinputs,executionconditions,andexpectedresultsweredevelopedforaparticular
objective, such as to exercise a particular program path or to verify compliance with a
specific requirement. It included thefollowing:
❖ Features to betested
• Sign up and signin
• Crop prediction model
• Fertilizer predictionmodel
❖ Items to betested
• Accuracy predictorscales
• Forminputs
• Submit button and other main menubuttons
❖ Purpose oftesting
• To identify inaccuratepredictions
• To make sure exception handling isdone
• Incorrect inputs-in terms of values range or format of input-areidentified
❖ Pass/Failcriteria
• If same inputs produce varying results,fail
Hence as mentioned above the traditional unit/integration testing would not work on
machine learning models hence it is tested based on its accuracy and prediction.
Forbinaryclassification,accuracycanalsobecalculated intermsofpositivesandnegatives
asfollows:
TP + TN
Accuracy =
TP + TN + FP + FN
Precision and Recall is also used as a metric for evaluating classification models. Precision
(also called positive predictive value) is the fraction of relevant instances among the
retrievedinstances,whilerecall(alsoknownassensitivity)isthefractionofthetotalamount of
relevant instances that were actuallyretrieved.
TP
Precision =
TP + FP
When it comes to forecasting, the models are evaluated based on the expected results they
predict.Inthecaseofcropselectionforecasting,wehavedividedthedataintotrainingset and testing
set. Again, it is split into training dataset and validation dataset in the training set. We train our
model using the training dataset and validation dataset is used to test the traineddata.
Avalidationdatasetisa sampleofdataheldbackfromtraining yourmodelthatisusedto give an
estimate of model skill while tuning model'shyperparameters.
A test dataset is a dataset that is independent of the training dataset, but that follows the
sameprobabilitydistributionasthetrainingdataset.Ifamodelfit tothetrainingdataset also fits
the test dataset well. Hence by observing the predicted vs observed value we can tell how
well our modelworks.
System testing is the testing conducted on a complete, integrated system to evaluate the
systemcompliancewithitsspecifiedrequirements.Systemtestinginvolvesputtingthenew
program in many different environments to ensure that the program works in typical
customer environments with various versions and types of operating systems and/or
applications.
System testing is actually a series of different tests whose primary purpose is to fully
exercise the computer-based system. Although each test has a different purpose, the main
purpose is to verify that all the system elements have been properly integrated and perform
the allocated functions.
Unit Texting
Unit testing is the mechanism where individual model of the projected is tested. It can also be
called as differentiation testing, as the project is tested based on individual model. Using the
modulesleveldesignsdepictionasamonitorsignificantdevicerouteistestedtodiscoverfaults
around the boundary of eachmodule.
Thebelowtable6.1showsthesuccessfulloadingofthehazyimagethat isselectedbytheuser to do
the processing. Haze images are suspended particles in atmosphere such as fog, murk, mist,
dust which causes poor visibility image and distorts the colors of the scene. Haze image
regards as a major challenge problem in many applications in the fields of image processing
and computervision.
Hazyimagecanbemodeledasacombinationofsceneradiance,airlightandtransmission.The
mainchallengeinde-hazingprocessisduetodifferentdensityofhazefromoneregiontoother
inthehazeimage,alsotheweatherconditionatthetimeofimagecapturing,thehazingimages lose the
color fidelity and contrast. Also, the position of camera and how far from the scene may be
cause for imagedegradation.
Result Successful
❖ User if not registered: User need to insert the user name and password if username is
not registered will get a message not registered. The output expected is not registered
and out obtained is the same in this case. final result issuccessful.
Test Feature If user name is not registered will get a message of not
registered.
Result Successful
❖ Registration: User need to insert the details for registration. will get a message of
registration successful. The output expected is registration successful and out obtained
is the same in this case. final result issuccessful.
Result Successful
❖ Data pre-processing: The process removes the null values and converts the string
value to int or float and split the data. output expected is data splitting is successfuland
out obtained is the same the final result issuccessful.
Result Successful
❖ Model creation: Creates the model based on algorithm using dataset. output expected
is model created successful and out obtained is the same the final result issuccessful.
Result Successful
❖ DataVisualization:Usingmultiplealgorithms,wecancreatemodel.Ifoncethemodel is
created successfully the data visualization displays output expected is successfully
data will be visual and out obtained is the same the final result issuccessful.
Result Successful
Test Feature Check all the attribute and predict the crop
Result Successful
Test Feature Checks the attribute of the fertilizer and predicts the fertilizer
estimation
Result Successful
CHAPTER 7
RESULTS
The Resultant Screenshots of the project are as shown below:
LoginPage
Home Page
ResultPage
Figure 6.4 Output for the crop prediction on inputting the attribute values
Data Visualization
SVM
Crops N P K Accuracy
Cucumber 73 48 73 96.5
Corn paddy 51 51 73 97.9
Cotton sugarcane 49 76 76 98
SVM
120
100
80
60
40
20
0
cucumber corn paddy cotton sugarcane
N P K accuracy
KNN
Crops N P K Accuracy
Cucumber 72 75 76 97.83
Corn paddy 48 48 72 95.3
Cotton sugarcane 47 73 74 96.4
KNN
120
100
80
60
40
20
0
cucumber corn paddy cotton sugarcane
N P K Accurancy
Random Forest
Crops N P K Accuracy
Cucumber 75 49 73 98.2
Corn paddy 50 50 76 99
Cotton sugarcane 50 73 75 97.9
Random forest
120
100
80
60
40
20
0
cucumber Category 2 Category 3
N P K accuracy
CHAPTER 8
CONCLUSION AND SCOPE FOR FUTURE WORK
Thesystem“Analysisofsoilbehaviorofcroppredictionthroughsensordevices” isdeveloped and
tested successfully and satisfies all the requirement of the User. The goals that have been
achieved by the developed systemare:
• We can add IoT Sensor device to get values directly from soil testing sample/area of
land to server, we can add device called sensors like PH, NPK and soil other sensors
etc. As a part of parameter based on parameters crop can predicted which crop can be
grown by farmer that can be suggested by admin and he can guide manually to farmer
also.
• We can add Email module if any queries are there, the admin can directly interactwith
the administrator veryeasily.
Email module: In the proposed system, get the live data along with crop predicted
values using IoT devices and sensors and is intimated manually, so we can add Email
module as a future enhancement where Admin and Farmer can receive an Email
notification regarding the Id and password.
• Audio output can be added that convert the result produced in text to speech in various
dialects for better understanding byusers.
https://ijarsct.co.in/Paper1040.pdf
Authors: Zeel Doshi, Subhash Nadkarni, Rashi Agrawal, Neepa Shah,Vol 7,Issue
3,December 2019.
https://www.irjet.net/archives/V9/i4/IRJET-V9I4214.pdf
Authors: Yanxin Jayalakshmi, M. Savitha Devi “Relevance Vol 10,Issue 1,No 1,January 2020.
https://ijip.in/issue/?volumes=Volume-10-Issue-1
[4] Crop Selection Method toMaximize Crop Yield Rate using Machine Learning Technique.
https://www.semanticscholar.org/paper/Crop-Selection-Method-to-maximize-crop-yield-rate-
Kumar-Singh/dec1c760fdfdcf5b7ff1b633cc03849fa66ef1ba
https://www.academia.edu/45328575/Crop_Predication_and_Diseases_Detection_Usi
ng_Machine_Learning_