Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 11

Prediction of soil quality parameter and smart

irrigation using ML Algorithm


line 1: 1st Name
line 1: 1st Name line 1: 1st Name
line 2: Deparmtent
line 2: Deparmtent line 2: Deparmtent
(of Affiliation)
(of Affiliation) (of Affiliation)
line 3: College Name
line 3: College Name line 3: College Name
(of Affiliation)
(of Affiliation) (of Affiliation)
line 4: Bangalore
line 4: Bangalore line 4: Bangalore
line 5: email address
line 5: email address line 5: email address

XXX-X-XXXX-XXXX-X/XX/$XX.00 ©20XX IEEE


Abstract— Crops are ever in demand in countries, not gives answers for various issues and permits things to be
only for the people lives, but also for growth of economic, detected or controlled from a distance. The significant part
and so growing crops is of most importance. Using standard of IoT is that it saves money and guarantees security. Smart
technology increases efficiency and minimize the workload irrigation uses soil moisture sensors and soil pH sensors,
of farmers. Therefore, to increase productivity, it is must to which require some real-time information about soil
know about moisture in soil and crop types. Each crop moisture in the field.
variety and associated soil needs a particular amount of The approach of building an automated irrigation
water, thereby the project need to make the most of what is system is to ensure proper water supply to the plants based
available. To achieve this, it should utilize modern tools on various requirements needed by the plants in agricultural
and technologies. This paper focuses on an automated land, and also to help farmers to know the soil parameters in
irrigation system, in which irrigating fields only when they order to provide proper irrigation as the system is designed
need to be fed, through utilization of machine learning to be accessed remotely. A sensor senses the information in
algorithms. Real-time soil moisture, fertility, and pH the soil, and an Arduino transmits the data to the computer,
readings are sensed using sensors and made available on which displays the pH value, temperature, and moisture in
the system. This irrigation method helps to conserve water the soil. Using this information, we can determine the
and the system could provide low-cost model that gives amount of water required by the soil and which crop to
optimal as well as accurate results. cultivate in that specific soil.

The top soil quality metrics and the programmed


Keywords—Crop Yield, Machine Learning, Python irrigation system are the emphasis of our project.
I. INTRODUCTION Soil quality parameters:
Agriculture is the pillar of any industrialized
• Soil quality factors label the state of soil ecosystem
country's economy consumes 85% of the available fresh.
properties such as buffering, production, filtering, and other
Water utilization can be optimized by observing soil
soil processes.
humidity, which is useful for crop production. These days,
automation manages the world. It is a method of observing The following are the soil quality parameters:
and controlling basic tasks of everyday life. stability, such as the penetration of the soil or the granularity
of the soil, generally stable (salt content, biological mass
Automation decreases human effort and makes
content in soil, hefty metal contamination), fairly dynamic
everyday action easier and more efficient. The irrigation
(pH, nutrient content), and active (pH, nutrient content) (top
system, or automated irrigation system, must be able to
soil moistness and heat).
understand the unique requirements of each crop in the
agricultural field. • Soil moisture sensor: Sensors that measure the
volumetric content of water are ordinarily referred to as soil
This data can be leads to the irrigation system
moisture sensors. It contains 2 components a probe with two
framework using machine learning (ML) technique of data
exposed conductors that inserts into the soil and a module
analysis which allows data to learn on its own and then
that connects the probe to the Arduino.
applies that learning without the requirement for human
interference. • Soil pH sensor: Soil pH meters are devices that
measures a soil's acidity or alkalinity. They can estimate
One of the most captivating parts of automation is the
hydrogen potential or pH by measuring hydrogen ion
Internet of Things. IoT makes use of several sensors that
activity. The pH ruler ranges from O to 14, with O
connect with one another and provide data accuracy. IoT
signifying extreme acidity, 7 signifying neutrality, and 14 Python is the recommended language for machine
signifying alkalinity. learning because of its extensive library support. The key
reason why people use Python for machine learning is that it
• Soil temperature sensor: A soil temperature sensor
has access to a large number of libraries. A library is a
is a expedient that detects and records the heat in the soil.
collection of procedures and functions that can be used by a
Different types of soil temperature sensors, including
computer language.
thermocouples, thermistors, thermocouple wires, and
averaging thermocouples, are obtainable in a range of
Developers can execute complex tasks without
designs. We can convert the electrical impulses sent from
having to rewrite a huge number of lines of code if they
soil sensors to data loggers to multiple units of
have access to a range of libraries. Machine learning is
measurement, such as degrees Celsius, degrees Fahrenheit,
strongly reliant on statistics, mathematical optimization, and
and degrees Kelvin.
probability, as well as Python tools that assist data scientists
Automated irrigation system: in efficiently conducting various studies.

The automatic irrigation procedure entails the


Machine learning is a sort of data analysis that
employment of a gadget to control irrigation structures,
mechanically builds models. Artificial intelligence is
allowing water to flow from bays without the need for an
perceived as a subset of it. Machine learning algorithms
irrigator. There are a variety of ways to use it, such as to
form a model from trial data, sometimes acknowledged as
start and stop irrigation.
"training data." from which the model can make predictions
or judgments without having to be clearly programmed to
do so. Algorithms for machine learning are utilized in a
The Arduino transports the signal to the computer
diverse range of applications.
after sensing the data from the sensors. As a result, the water
pump is turned on and off in response to the soil's needs. If
Image identification computer vision, speech
the soil needs water, then the pump is turned on and only
recognition, and traffic prediction are examples of tasks
required amount of water is sprinkled an automatically
where traditional algorithms fall short. The project trains the
turned on.
system using Kaggle open-source datasets to determine the
quantity of irrigation required based on crop type and
fertilizer type as part of our project.

II. LITERATURE SURVEY

1. Rice yield estimation at pixel scale using relative


vegetation indices from unmanned aerial systems.

Convenient and exact expectation of rice abdicate


data is closely related to the people's vocation, which has
been connected incredible significance by all levels of
government. adj. farther detecting gives the plausibility for
large-scale trim surrender estimation, but they are ordinarily
constrained by spatial and ghostly determination.
Unmanned Ethereal Vehicles (UAV) inaccessible ideal development organize combinations for rice abdicate
detecting with hyper unearthly sensors can get tall spatial estimation were decided.
worldly determination and hyper unearthly pictures on
This ponder investigates the plausibility of surrender
request. By and large, time-series Vegetation Files (VIs) are
estimation at pixel scale utilizing hyper ghostly pictures from
utilized for assessing grain surrender.
UAV stage, which will advance make strides the strategy
But multi-day vegetation records may be influenced framework for inaccessible detecting of surrender estimation.
by diverse foundation and brightening condition, so the
2. Use of Deep Neural Networks for Crop Yield
contrasts between vegetation files may incorporate the
Prediction: A Case Study of Soybean Yield in Lauderdale
impacts actuated from outside condition, which will posture
County, Alabama, USA.
a negative impact on the precision of trim abdicate
World populace is always expanding, and it is vital
estimation. In this manner, in this think about, the relative
to have adequate trim generation. Checking trim
vegetation file and relative surrender were proposed and
development and surrender estimation are exceptionally vital
utilized to gauge rice abdicate at pixel scale.
for the financial improvement of a country. The forecast of
And the ideal development stages for edit surrender
trim abdicate has coordinate affect on national and
estimation would too be decided. Hyperspectral pictures of
worldwide economies and play vital part in the nourishment
basic rice development stages at tillering arrange, jointing
administration and nourishment security.
organize, booting organize, heading organize, filling
Profound learning picks up significance on trim
organize, maturing arrange were gotten from July 28 to
checking, trim sort classification and trim abdicate
November 24 in 2017.
estimation applications with the later propels in picture
Firstly, all conceivable two-band combinations of
classification utilizing profound Convolutional Neural
discrete channels from 500 nm to 900 nm was utilized to
Systems. Conventional trim abdicate expectation approaches
make Relative Normalized Distinction Vegetation Record
based on farther detecting comprise of classical Machine
(RNDVI). At that point the best RNDVI at distinctive
Learning strategies such as Bolster Vector Machines and
development stages were decided for rice abdicate
Choice Trees.
estimation.
Convolutional Neural Network (CNN] and Long-
Finally, diverse combinations of development
Short Term Memory Organize (LSTM] are profound neural
stages were tried to get the ideal combinations for abdicate
arrange models that are proposed for edit abdicate
estimation. These models were approved at pixel scale
expectation as of late. This think about centered on soybean
utilizing the measured yields. The result appears that four-
abdicate forecast of Lauderdale District, Alabama, USA
growth-stage show with RNDVI[635, 784] at tillering
utilizing 3D CNN demonstrate that leverages the
arrange, RNDVI[744, 807] at jointing arrange, RNDVI
patiotemporal highlights.
[712,784] a booting organize, RNDVI[736, 816] at heading
arrange with the numerous straight relapse work pick up a
higher R2(0.74) and lower RMSE (248.97kg/ha).

The cruel supreme rate mistake of assessed rice


abdicate of 4.31%. Comes about appears that the abdicate
estimations at pixel scale with relative vegetation records
were satisfactory. In the ponder, a abdicate estimation
strategy with relative vegetation lists is proposed and the
The abdicate is given from USDA NASS Fast Stat Nourishment and Rural Organization (FAO) researchers,
device for a long time 2003-2016.The obsequious between 2010 and 2050 the world populace will increment
information utilized is collected from NASA’s MODIS by one third. The request for edit generation will increment
arrive items surface reflectance, arrive surface temperature by 60% higher than the current generation. Consequently
and arrive surface temperature by means of Google Soil expectation plays a major part to discover out the request of
Motor. The root cruel squared blunder (RMSE] is utilized as trim generation for maximizing the surrender.
the assessment metric in arrange to be able to compare the
For that in this paper we propose a expectation
comes about with other strategies that for the most part,
strategy for the major crops of the state utilizing K-means
employments RMSE as the assessment metric.
and Altered KNearest Neighbor (KNN). MATLAB and
3. Crop Yield Prediction and Efficient use of Fertilizers. WEKA are utilized as the apparatus for clustering and
classification individually. The number result appears that
India being an agribusiness nation, its economy
our strategy is superior than conventional information
overwhelmingly depends on farming abdicate development
mining approach.
and agro industry items. Information Mining is an
developing inquire about field in trim surrender examination. 5. Rice edit surrender expectation in India utilizing support
Surrender forecast is a exceptionally imperative issue in vector machines
rural. Any rancher is interested in knowing how much
Food generation in India is to a great extent
abdicate he is approximately to anticipate.
subordinate on cereal crops counting rice, wheat and
Analyze the different related qualities like area, pH different beats. The maintainability and efficiency of rice
esteem from which alkalinity of the soil is decided. Along developing zones is subordinate on reasonable climatic
with it, rate of supplements like Nitrogen (N), Phosphorous conditions. Inconstancy in regular climate conditions can
(P), and Potassium (K) Area is used along with the use of have hindering impact, with episodes of dry season
third-party applications like APIs for weather and decreasing generation.
temperature, type of soil, supplement esteem of the soil in
Developing superior procedures to foresee edit
that locale, sum of precipitation in the locale, soil
efficiency in diverse climatic conditions can help
composition can be decided.
agriculturist and other partners in way better choice making
All these properties of information will be analyzed, in terms of agronomy and edit choice. Machine learning
prepare the information with different reasonable machine methods can be utilized to progress expectation of trim
learning calculations for making a show. The framework abdicate beneath diverse climatic scenarios.
comes with a demonstrate to be exact and exact in
This paper presents the audit on utilize of such
anticipating trim abdicate and provide the conclusion client
machine learning method for Indian rice trimming zones.
with appropriate suggestions almost required fertilizer
This paper examines the exploratory comes about gotten by
proportion based on climatic and soil parameters of the arrive
applying SMO classifier utilizing the WEKA apparatus on
which improve to increment the edit surrender and increment
the dataset of 27 locale of Maharashtra state, India. The
rancher revenue.
dataset considered for the rice trim abdicate expectation was
sourced from freely accessible Indian Government records.

4. Prediction of major trim yields of state utilizing K-means The parameters considered for the consider were
and Altered KNN precipitation, least temperature, normal temperature, most
extreme temperature and reference trim evapotranspiration,
Agriculture is the foremost source of job for more
zone, generation and surrender for the Kharif season (June to
than 40 percent of the populace of this state. Agreeing to
November) for the years1998to2002.For the display ponder
the cruel supreme error(MAE), root cruel squared blunder
(RMSE), relative outright blunder (RAE) and root relative
squared blunder (RRSE) were calculated. The test comes
about appeared that the execution of other strategies on the
same dataset was much way better compared to SMO.
6. Regional Winter Wheat Maturity Date Prediction Using Besides that, the dissemination outline of development
Remote Sensing-Crop Model Data Assimilation and forecast appeared self-evident spatial inconstancy. This
Numerical Weather Prediction strategy can cure the deficiencies of destitute consistency and
missing territorial contrasts in most past strategies, and it
Optimizing gathering plans requires a strategy for
gives a reference for the future think about of edit
development date expectation, to maintain a strategic
development expectation at a territorial scale with longer
distance from the impact of unfavorable climate and avoid
figure period.
the decay of edit surrender or quality due to in suitable
collect schedule. 7. Multiple Crop Yield prediction using dual-polarimetric
TerraSAR-X strip map imagery
However, most forecast models are statistical-based
hence are not reasonable for territorial application, and This paper presents the comes about of an explore
inaccessible sensing-based models needed consistency. We carried out to relate the abdicate from different crops to
displayed a system that absorbed leaf range list (LAI) TerraSAR-X double polari-metric symbolism. X-band
inferred from Direct Determination Imaging Spectro wavelength has higher affectability to littler edit structures,
radiometer (MODIS) into World Nourishment Considers particularly stem and head thickness making it reasonable for
(WOFOST) edit development demonstrate, and figure relating surrender to backscatter. The coherent dual-polari-
meteorological information from THORPEX Intuitively metric mode of TerraSAR-X was moreover utilized to
Terrific Worldwide Outfit (TIGGE) was utilized as climate emphasize the volume scrambling through dual-polarimetric
information input for the future periods. entropy/alpha decay. Great relationships to surrender
information as assembled by collector telemetry were
We chosen the winter wheat planting range in
obtained.
Henan Area as think about range and recalibrated WOFOST
show based on perception information from agro- 8. Remote detecting pointers for trim development observing
meteorological destinations. A taken a toll work based on at diverse scales
normalization was built to evaluate the contrast between
Crop development observing is basic in surrender
reenacted LAI and MODIS LAI products.
estimation and expectation. In this paper, the creators
First the MODISLAI profile was smoothed by explored a few markers for edit development observing by
Savitzky-Golay (S-G) channel, and at that point the set LAI inaccessible detecting at diverse scales. The tests were
profiles were normalized to keep their drift data. At that conducted in a consider region in Hebei area in North China
point we chosen parameters in WOFOST show that are Plain. The target trim in this investigate is winter wheat,
touchy to development date as optimization parameters, such which is one of the imperative grain crops in China.
as development date (IDEM), viable temperature whole from
The ponder at canopy scale is based on field explore
development to anthesis (TSUM1) and viable temperature
with diverse fertilizer supply medicines to winter wheat to
entirety from anthesis to development (TSUM2).
get distinctive trim development slopes. The result appears
These parameters have noteworthy contrasts that the vegetation lists which have a work to diminish soil-
between a long time and no self-evident spatial and worldly effect are appropriate for the locale in distinctive trim cover
designs. By implies of Rearranged Complex Advancement age in early prolongation stage.
strategy created at the College of Arizona (SCE-UA)
calculation, we recreated in each pixel in the ponder zone
and recovered the ideal parameters set of this pixel.
9. Assessing pertinent climate information for rural III. PROPOSED METHODOLOGY
applications

Climate alter is anticipated to considerably diminish PROBLEMSTATEMENT


rural yields, as detailed in the by the Interval Board on
Farmers should concentrate on the rate of output in the
Climate Alter (IPCC). In Sub-Saharan Africa and (to a lesser
current circumstances due to considerable changes in
degree) in South Asia, constrained information accessibility
weather/population expansion. Water is wasted a lot in
and regulation organizing compel agrarian inquire about and
traditional irrigation systems since water is irrigated directly
improvement.
without analyzing soil moisture.
Here we performed a audit of pertinent viewpoints
In order to anticipate the production rate, it is also must
in connection to coupling agriculture–climate expectations,
to examine soil type. As a result, this project physiqued a
and a three-step examination of the significance of climate
smart irrigation system which monitors soil moisture and
information for agrarian affect evaluation.
fertility to lessen water waste as well as boost agricultural
To begin with, utilizing meta-data from the logical production. Using real-time data received from the sensors,
writing we inspected patterns in the utilize of climate and the research forecasts crop type, soil type and fertilizer type.
climate information in rural investigate, and we found that in
DATA PREPROCESSING
spite of rural researchers’ inclination for field-scale climate
information (50.4% of cases in the collected writing), large-
scale datasets coupled with climate generators can be
valuable in the rural context.

Using well-known insertion methods, we at that


point evaluated the sensitivities of the climate station
FIG 3.1 DATA PRE-PROCESSING
organize to the need of information and found tall
sensitivities to information misfortune as it were over hilly In this module, datasets are collected from various
regions in Nepal and Ethiopia (arbitrary expulsion of sources like DES, GKVK, agmarknet.gov.in and
information affected precipitation gauges by ±1300 mm/year krishimaratavahini. The datasets contains information like
and temperature gauges by ±3 ◦C). temperature, rainfall, price, area, production and yield of the
previous 5 years (2013-2018).
Finally, we numerically compared IPCC Fourth
Evaluation Report (4AR) climate models’ representation of
ArduinoUno:
cruel climates and inter-annual inconstancy with distinctive
observational datasets. Climate models were found lacking
Arduino, which is an open source computer
for field-scale rural thinks about in West Africa and South
Asia, as their capacity to speak to cruel climates and climate hardware / software is designed to operate on single-
changeability was restricted: more than 50% of the country- board microcontrollers / microcontroller kits to build
model combinations appeared. digital devices as well as interactive objects that sense
and control objects in physical as well as digital world.
The project's products are distributed as open-source
hardware / software, which are licensed under GNU
Lesser General Public License (LGPL). Arduino
boards are readily available commercially in
preassembled form or by designing kits with respect to
External Interrupts 2, 3
various applications. Figure 3.2 and 3.3 shows the
Arduino Uno board, pin diagram respectively. PWM 3, 5, 6, 9, 11

The various types of Arduino Uno are Arduino


10 (SS), 11 (MOSI), 12 (MISO)
Nano, Arduino Pro Mini, Arduino Mega, Arduino Due SPI
and 13 (SCK)
and Arduino Leonardo.
10 (SS), 11 (MOSI), 12 (MISO)
SPI
and 13 (SCK)

Inbuilt LED 13

TWI A4 (SDA), A5 (SCA)

AREF AREF

FIG 3.2: ARDUINO UNO BOARD ATmega328P – 8 bit AVR


Microcontroller
family microcontroller

Operating Voltage 5V

Recommended Input
7-12V
Voltage

Input Voltage Limits 6-20V

Analog Input Pins 6 (A0 – A5)

14 (Out of which 6 provide


Digital I/O Pins
FIG 3.3: ARDUINO UNO BOARD PIN PWM output)

DIAGRAM DC Current on I/O Pins 40 mA

DC Current on 3.3V Pin 50 mA


Pin Category Pin Name
32 KB (0.5 KB is used for
Flash Memory
Power Vin, 3.3V, 5V, GND Bootloader)

Reset Reset SRAM 2 KB

EEPROM 1 KB
Analog Pins A0 – A5
Frequency (Clock Speed) 16 MHz

Input/output Pins Digital Pins 0 - 13

Serial 0(Rx), 1(Tx)


OVERVIEW This paper proposed a system to help farmers to get an idea
Arduino Uno microcontroller board is based of estimates yielding based on weather parameters during

on 8-bit ATmega328P microcontroller. Also with cultivation. This research work can be enhancing to the next
level. We built a recommender system for agriculture
ATmega328P, consists of other components like serial
production as well as distribution for farmer. Using this,
communication, crystal oscillator, voltage regulator,
farmers make decision in which season crop should sow so
etc. in supporting the microcontroller. Arduino Uno
that they give more benefit. In future we may implement data
has fourteen digital input/output pins (in which 6 are
independent systems also. It means whatever format of data,
used for PWM outputs), 6 for analog input pins, a USB our system will work with same efficiency.
connection, an ICSP header, A Power barrel jack, and
a reset button. REFERENCES
[1] Ponce-Guevara, K. L., Palacios-Echeverria, J. A., Maya-
Olalla, E.,Dominguez Limaico,H. M., Suarez-Zambrano, L. E.,
Advantages Rosero Montalvo, P.D., Alvarado-Perez, J. C. (2017).
GreenFarm DM: A tool for analyzing vegetable crops data
 VerySensitive from a greenhouse using data mining techniques (First trial).
2017 IEEE Second Ecuador Technical Chapters Meeting
 Very efficient andaccurate (ETCM).
[2] Jheng,T.-Z.,Li,T.-H.,Lee,C.-P. (2018). Using hybrid support
 Analogue and Digital Output vector regression topredict agricultural output. 2018 27th
Wireless and Optical Communication Conference(WOCC).
Applications [3] Manjunatha, M., Parkavi, A. (2018). Estimation of Arecanut
Yield in Various Climatic Zones of Karnataka using Data
Mining Technique: A Survey. 2018 International Conference
 IrrigationApplications on Current Trends Towards Con- verging
Technologies(ICCTCT).
 Small- and Large-ScaleIndustries
[4] Chakrabarty,A.(2017).Agricultural production output prediction
 GreenHouse using Supervised Machine Learning techniques.2017 1st
International Conference on Next Generation Computing
 RANDOM FOREST Applications(NextComp).
[5] Grajales, D.F.P.,Mejia, F.,Mosquera, G.J.A.,Piedrahita,
L.C.,Basurto,C.(2015).Crop- planning, making smarter
Random Forest algorithm - a supervised agriculture with climate data. 2015 Fourth International
classification algorithm is used to create a forest in some Conference on Agro-Geoinformatics (Agro-Geoinformatics).
[6] Shah, P., Hiremath, D., Chaudhary, S. (2017). Towards
way and then make it random. There is a direct relationship development of spark based agricultural information system
between the tree numbers in forest and results it can get: the including geo-spatial data. 2017 IEEE International
Conference on Big Data (BigData).
larger number of trees, the more accurate is the result. But it [7] Afrin, S., Khan, A. T., Mahia, M., Ahsan, R., Mishal, M. R.,
Ahmed, W.,Rahman, R. M. (2018). Analysis of Soil Properties
should be noted that creating the forest is not the same as
and Climatic Data to Predict Crop Yields and Cluster Di_erent
constructing decision with information gain / gain index Agricultural Regions of Bangladesh.2018 IEEE/ACIS 17th
InternationalConference on Computer and Information Science
approach. In this project, random forest algorithm is used as (ICIS).
machine learning approach for smart irrigation concept. [8] Sekhar, C. C., Sekhar, C. (2017). Productivity improvement in
agriculture sector using big data tools. 2017 International
Conference on Big Data Analytics and Computational
IV. CONCLUSION Intelligence(ICBDAC).

Agriculture which is the main backbone of counties [9] Sahu,S., Chawla,M.,Khare,N.(2017).An ancient analysis of
crop yield prediction using Hadoop framework based on
like India. But, the technology usage towards agriculture is random forest approach. 2017 International Conference on
Computing, Communication and Automation (ICCCA).
still not given paramount importance towards better farming.

You might also like