Agrobot in Field of Machine Learning
Agrobot in Field of Machine Learning
Putul Siddharth et al., International Journal of Advanced Trends in Computer Science and Engineering, 10(3), May - June 2021, 1844 – 1850
Volume 10, No.3, May - June 2021
International Journal of Advanced Trends in Computer Science and Engineering
Available Online at http://www.warse.org/IJATCSE/static/pdf/file/ijatcse501032021.pdf
https://doi.org/10.30534/ijatcse/2021/501032021
1844
Putul Siddharth et al., International Journal of Advanced Trends in Computer Science and Engineering, 10(3), May - June 2021, 1844 – 1850
Questions on different attributes of soil and weather It has the following attributes:
parameters along with rice production. This questionnaire was Nitrogen (N): Part of the "Enormous 3(NPK)"
asked from the maximum qualified people of the district in supplements needed by plants for their food. Any
their native language. The system asks for location, crop plant ingests Nitrogen the most of all nutrients.
preferences, and season as input. Now the system mapped this Nitrogen is fundamental in the development of
set of input to the dataset to check the yield of the proteins which are urgent for the development of any
corresponding crop. The system used three input two output plant. Soil Nitrogen esteem is accordingly
Mamdani Fuzzy inference models for prediction. The study fundamental in deciding the kind of harvests that
was limited only to rice production and has not taken many could develop there as various yields require a
weather attributes into account. shifting level of nitrogen.
The paper[4] is about a crop monitoring framework that uses Phosphorus (P): Second of the “Big 3(NPK)”
machine learning and the Internet of Things. The soil nutrients required by plants for their sustenance.
parameters are collected with the help of sensors then these Phosphorus is used by plants to store energy and also
collected data are uploaded into NodeMcu which has a to do photosynthesis. It also aids in plant growth and
built-in Wi-Fi module. Now, these uploaded data are sent to development so it becomes crucial for any crop. As
the ThingSpeak cloud for generating responses to the android mentioned for N, soil P values also differ from crop
application. Finally, the responses generated from the cloud to crop.
are sent to the ML model for triggering appropriate crop Potassium (K): Third of the “Big 3(NPK)” nutrients
recommendations. The system also has a price prediction required by plants for their sustenance. Potassium is
section that estimates the price of the yield using the linear responsible for plant immunity and increasing yield.
regression model. K helps strengthen root systems in dry/cold
conditions. As stated for N & P, every crop needs a
3. METHODOLOGY different amount of Potassium to thrive.
pH: pH can be considered an important factor as it
3.1 Dataset Collection affects many other soil attributes and processes that
For purpose of this paper, we searched for datasets that would influence plant growth. The behavior of
allow us to make a crop recommender with multiple microorganisms, as well as the solubility and
attributes. We ideally wanted a single dataset that would have availability of nutrients, are all pH-dependent
soil chemistry data and location data respective to different processes so when the pH of the soil is about seven,
crops. After searching the web extensively for datasets most crops thrive.
matching our requirements and after analyzing different Temperature: Temperature is perhaps the main
datasets, we have settled on three different datasets which will variables in cultivating as irregular characteristics in
be discussed below. it can prompt demise of harvests, failure of manures
among different issues. Right temperature is
3.1.1Soil chemistry based dataset additionally crucial for give better yield
The soil chemistry dataset, a part of which is displayed in quantitatively and subjectively.
Table 1. is the main dataset for the project. The dataset has Humidity: A feature that is indirectly dependent on
2200 rows and 8 columns. air temperature thus making it very important for
crop production. More humidity tends to cause foliar
Table 1: Soil chemistry based dataset or root diseases in plants thus increasing pesticide
costs and decreasing yield. On the other hand, low
humidity leads to slow growth and more leaf drops.
Rainfall: Another very important environmental
feature for crop production. Less of it can starve
crops or increase production costs as artificial
watering would have to be ramped up. More of it
would mean the inundation of crops or dilution of
pests and fertilizers making crops vulnerable to
diseases.
Crop: The dataset maps specific crops like rice with
the above 7 attributes. Since most crops have a
tolerance range in each of the 7 attributes that is why
there are multiple entries per crop.
1845
Putul Siddharth et al., International Journal of Advanced Trends in Computer Science and Engineering, 10(3), May - June 2021, 1844 – 1850
pH, Nitrogen (N), Phosphorus (P), and Potassium (K) are the
seed parameters that are used to classify the crop. Crop
parameters are used to characterize a diverse range of crops
grown in India's fertile lands. The soil dataset includes data
samples collected from various locations in Chennai and other Figure 2: Algorithm vs. Accuracy Comparison
Tamil Nadu districts. pH, Nitrogen (N), Phosphorus (P), and
Potassium (K) is the soil parameters that are used to classify Now we considered Random Forest as our classification
the soil. The data samples were collected from the algorithm for further prediction and use the pickle module to
Tamilnadu-Kancheepuram district's approved horticulture save our model. So whenever the user enters the required
department. To collect feedback from users, the device input through an interface, this model is used to predict the
employs an interface. Depending on the module they choose, crop and display it to the user.
the input form can vary.
1846
Putul Siddharth et al., International Journal of Advanced Trends in Computer Science and Engineering, 10(3), May - June 2021, 1844 – 1850
3.3 Crop Recommendation provide blog-style content that any reader could understand
Along with crop prediction, our project also encourages the and that would allow them to follow or at the very least be
recommendation of a set of different crops to the farmers aware of modern agricultural methods. In addition, the system
based on two methods either via their city location or via their provides the consumer with information on crops, agricultural
soil nutrients value. Similar work is done for prediction, loans, and available vacant land for cultivation.
which involves dataset import, cleaning, and normalizing the This was done by creating HTML pages for each page that can
dataset, but for crop recommendations, we used k-nearest be displayed to the user. The pages were stylized using CSS
neighbors. Bootstrap. The contact information entered by the user, blog
posts, and vacant land information is stored in PHPMyAdmin
Databases.
3.5Architectural Diagram
In the first part, when the user inputs his city location through
the interface, the given input will be mapped to the Figure 5: Flowchart of how user uses the system
location-based dataset to gather the soil parameters of the
corresponding city. Then this list of parameters will be
The user first needs to have an account to access the
mapped to that crop dataset and with the help of the KNN
application. For that, they need to sign up by filling in some of
classification algorithm, this list of the parameter will find
the personal details and set up strong login credentials. Then
themselves a suitable class of crop and thus the result is
they can log in by entering correct credentials to utilize
displayed to the user through an interface.
different functionalities accessible. At the homepage, the user
enjoys the different blog posts related to topics like
agro-education, agro-news, etc. Then the user has crop
prediction functionality available in which they can get a
single predicted crop after entering the required details in the
portal. Also, the system provides a crop recommendation
facility in which users can get ten different options of the crop
suitable for their soil and location.
Now out of the recommended crops if the user is interested in
a particular crop but is unaware of its process of cultivation
then he can get that knowledge from the information sector of
our application. There he can know about health benefits,
climate required, soil requirement, land preparation, planting
Figure 4: System architecture diagram and spacing, irrigation, manures and fertilizers, harvest, yield,
and demand of that crop in the market.
In the subsequent part, the user needs to include soil Even if a farmer needs some loan to fund his seasonal
supplements for crop suggestions. The provided input will be agricultural operation and other activities but is unaware of
saved in a variable, and the crop dataset will be used to map it. the process of getting an agricultural loan, he can get
With the help of the K-Nearest Neighbor classification information from the Agricultural Loan sector available in the
algorithm, the input locates itself into a crop class and the information menu. There he can know about different types of
same will be displayed to the user using an interface. agricultural loans, agricultural loan interest for different banks
Subsequently, the user will get a list of crops suggested by the in India, the process to apply for an agricultural loan,
system. documents required, and eligibility criteria to borrow an
agricultural loan.
3.4 Agricultural Infotainment The system also proved beneficial for peasants as peasants
In contrast to other sectors, there is a lack of well-presented don’t own agricultural land and has to search for that vacant
agricultural infotainment. As a result, the project aimed to land here and there. So, the system will provide a feature for
1847
Putul Siddharth et al., International Journal of Advanced Trends in Computer Science and Engineering, 10(3), May - June 2021, 1844 – 1850
the user who wants to lend his land for cultivation on a profit extensive as was expected however they were unbiased
basis. The user needs to fill in some details like owner name, towards any specific crop because each of the 22 crops had
description about land, location, and type of peasants which 100 data instances each. After analyzing different ML
he needs, contact details, etc. Now the system will broadcast algorithms, Random forest was chosen as it gave 98.93
this information to all the users including the peasants. So the percent accuracy.
one who needs this can contact the owner and help For the recommendation system, 10 different suggestions
themselves. were generated for each entry using the KNN classification
Finally, after using the application if the user has some query algorithm. “predict_proba” function of MultiOutputClassifier
or complaint, he can get in touch with the admin by just filling was used for this.
in a contact form.
Figure 7: Snapshot of Crop Prediction Figure 9: Snapshot of recommended crops based on location
Using Random forest as our classification algorithm, a The most relevant crops are listed above based on the location
prediction system was built. The datasets used were not as entered by user in the portal.
1848
Putul Siddharth et al., International Journal of Advanced Trends in Computer Science and Engineering, 10(3), May - June 2021, 1844 – 1850
Crops grown before on soil will make the dataset more robust.
For now, the ml model works with acceptable accuracy.Due
to Covid-19, the lockdown has been imposed all over the
country and people are not in a state to move outside their
house. So this recommendation system will be able to help
farmers to choose the crops to grow with more precision
instead of going to any agricultural center to gain information
so that they can avoid losses and maximize profits. By the
creation of the E-commerce site, I hope casual readers will
become interested in agriculture and will thus help in making
farming scientific and efficient.
REFERENCES
1849
Putul Siddharth et al., International Journal of Advanced Trends in Computer Science and Engineering, 10(3), May - June 2021, 1844 – 1850
1850