Research Paper-2
Research Paper-2
Series
Abstract. A very large section of the Indian population depends on farming to meet their ends.
But due to several reasons - natural or man-made, not limited to weather, proper irrigation
mechanisms and finance, many a section of this society are often unable to reach their expected
sustenance. A proper guidance mechanism that helps the farmers or aspirants select the suitable
choice of crop to be cultivated in an area based on the climatic and soil conditions will increase
the agricultural productivity per unit of land. In this paper, we propose a predictive system that
aids the farmers in crop selection based on different climatic and soil parameters available from
a dataset pertaining to Indian subcontinent. An IOT system will determine the climatic
(temperature, humidity etc) and soil (pH, moisture, etc) conditions in the area of choice. This is
input to the predictive system which predicts the choice of crop. The developed system can be
adopted to achieve a healthy crop growth that can be adapted by agricultural practices.
1. Introduction
Agriculture, being the backbone of an economy, contributes to the economic development of a
country. The scene in a developing country like India is no different. Indian agriculture accounts for
close to 14 per cent of the country’s economy. Hence any development imperative to the country’s
growth should begin from the agricultural industry. Technological advancements have made this
achievable to an extent [1]. However, this has not reached its full potential, possibly due to the higher
costs and investments involved. A substantial push will therefore be required to encourage agricultural
practices to move away from strictly traditional practices and to implement new technological ways
for the enhancement of agricultural output and hence the agricultural sector.
Innovative trends in Indian agriculture have seen the use of a well-defined irrigation system, use of
multiple cropping and pesticides, methods enriching the nutrient content and soil fertility etc which
have succeeded in increasing the yield as well as helped to bring increased revenue for the farmers.
Knowing the advantages of proper soil quality and moisture, irrigation and climatic factors in the
growth of a crop [2], these factors cannot be ignored and must be considered in the process of
digitalizing the agricultural economy, which is much needed in the longer run. Automation would
serve as a first step in this direction. Automation would ensure that proper crop monitoring is done
with minimum human intervention in the field. This would be possible with the assistance of IoT.
The Internet of Things (IoT) has changed the world for the better since its advent. Along with
introducing innovation in various industries, it has also helped to bring down the business operation
costs. Agriculture is one such industry where IoT with its multitude of sensors and microcontrollers
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd 1
ICMMCMSE 2020 IOP Publishing
Journal of Physics: Conference Series 1850 (2021) 012029 doi:10.1088/1742-6596/1850/1/012029
has made its mark known. However, the same is yet to be pronounced true for the Indian agricultural
scenario.
In this paper, we propose a system for effective selection of crop for cultivation in a portion of land
based on the soil parameters and the climatic dependencies and also based on the trends in crop
growth obtained from a publicly available dataset.
2. Literature Survey
In the existing Indian agricultural scenario, farmers generally decide the crop based on their past
experiences growing them and based on the seasonal climatic variations in India. There is very little
emphasis given to the application of technology to promote agricultural yield. This is attributed to
several reasons not limited to the high initial costs involved in introducing automation in agriculture,
high capital costs and a lack of awareness among the farmers about the ability of technology to
revolutionize modern farm management.
There have been several works in literature focussing on analysing soil data and making predictions
on various attributes affecting agriculture and soil [3]. These works have made predictions using
different machine learning algorithms and taking varied parameters into account [4]-[8].
2
ICMMCMSE 2020 IOP Publishing
Journal of Physics: Conference Series 1850 (2021) 012029 doi:10.1088/1742-6596/1850/1/012029
3.1.1. Soil moisture sensor. The soil moisture sensor can be used to measure the amount of water
present in a sample of soil. It consists of two probes which act as variable resistors and allows current
to pass through to the soil sample. Water is a good conductor of electricity and hence if there is more
water content in the soil, it will conduct more electricity. As a result, we get to know that the moisture
content is higher. Conversely, if the moisture content is less, the soil conducts less electricity. If a
predefined threshold value, which can be adjusted using a potentiometer, is exceeded, it is an
indication of higher moisture content, and else it indicates low soil moisture content. LEDs present on
the sensor module also help in this data capture.
3.1.2. Temperature and humidity sensor. The DHT11 is a cheap and basic digital humidity and
temperature sensor that measures the surrounding air and provides the required readings with the help
of a capacitive humidity sensor and thermistor. A more precise and accurate version of the sensor,
DHT22 is also available, the trade-off being an increased cost, which is not preferred when looking at
an economic option for farmers.
3.1.3 Soil pH sensor. Nitrogen, phosphorus and potassium are the three main nutrients which are
responsible for a healthy plant growth and are also the main constituents of fertilizers generally
applied to crops. But the amount of nutrients present in the soil depends on the pH of the soil, and
hence it is always important to measure the soil pH and monitor it for any discrepancies. Horticultural
crops have been found to satisfactorily grow in a pH of 6 to 7.5, that is, in a slightly acidic to slightly
alkaline soil. However, there are also crops requiring other ranges of pH. In such cases, the soil pH can
be measured and adjusted by supplementing the essential nutrients.
3.1.4 Arduino Uno + ESP8266 Wi-Fi module. Generally, microcontrollers are used in embedded
systems to design and develop different devices based on the requirement. The Arduino Uno is one
such open-source electronics platform mainly based on AVR microcontroller Atmega328. It consists
of a USB interface, 14 digital I/O pins out of which 6 can be used for PWM output, 6 analog pins and
an Atmega328 microcontroller. It can be powered using an AC or DC adopter.
3
ICMMCMSE 2020 IOP Publishing
Journal of Physics: Conference Series 1850 (2021) 012029 doi:10.1088/1742-6596/1850/1/012029
The Arduino is programmed using Integrated Development Environment (IDE) software. The IDE is
also required to transfer the code to the controller using the USB cable which connects it to the
computer.
An ESP8266 Wi-Fi module can be used to connect the Arduino Uno to the Internet. This module is
a low cost, standalone wireless transceiver that provides internet connectivity for embedded
applications. It uses TCP/UDP communication protocol to connect with server/client. The Arduino
microcontroller communicates with the Wi-Fi module using UART (Universal Asynchronous
Receiver/Transmitter) at a specified baud rate.
Appropriate code needs to be uploaded onto the Wi-Fi module in order to connect to an existing Wi-Fi
network and transfer the data received from the Arduino into a cloud server. The sensor data from the
Arduino needs to be transformed into the right format for inputting into the prediction system.
4. Experimental Details
Before we begin with data collection, the prediction model must be developed. This requires the need
of appropriate datasets, both for training and testing of the model. Datasets may be manually prepared
taking the attributes under observation or obtained from public domain. Here, we have manually
prepared the dataset, selecting soil and weather parameters as the attributes (Fig 4). The outcomes for
each combination of soil and weather parameters would be the type of crop that can be grown in that
condition. This method of prediction will work only if we have genuine datasets. Hence, gathering the
dataset is an important factor as it forms the basis of the prediction system. This data could also be
collected from various sources such as meteorological stations or from irrigation plan records that are
publicly available. Once the model or system has been trained with the appropriate dataset, it should
now predict the choice of crop for real time attributes. But again, the geographical area from which the
dataset is obtained is important here.
5
ICMMCMSE 2020 IOP Publishing
Journal of Physics: Conference Series 1850 (2021) 012029 doi:10.1088/1742-6596/1850/1/012029
Fig 5: Weka Explorer view of dataset used Fig 6: Visualization of all attributes in dataset
For the purpose of live data collection from the field, we require the need of sensors for capturing
the attribute values [9]. Then, to analyse the data thus captured, we would need to get the data onto the
prediction model (step (vi) above). For this, we make use of sensors connected to an Arduino Uno
which is in turn connected with a wi-fi module that can send the sensor data to a cloud server. This
live data collection is simulated using Tinkercad software, where we have made use of a temperature
and humidity sensor and soil moisture sensor for obtaining weather and soil dependencies (Fig 7).
After collecting the data, it can then be formatted as per the prediction model input format
requirements. Once live data is collected and the finalized prediction model has been loaded in Weka,
we can now make predictions on the new data.
6
ICMMCMSE 2020 IOP Publishing
Journal of Physics: Conference Series 1850 (2021) 012029 doi:10.1088/1742-6596/1850/1/012029
Further, the model can also be more precisely tuned by including more attributes or environmental and
other factors and narrowing down the options so that finally we have a fine-tuned model for crop
prediction.
6. Conclusion
Crop yield prediction using intelligent machine learning techniques may improve the crop planning
decisions. Different algorithms have been tested to identify the most accurate model. However, the
accuracy of these different algorithms also depend on the attributes present in the dataset. In general,
we have compared mostly the J48, IBk and Random forest algorithms and these have shown a higher
degree of accuracy and lesser error rates over other algorithms, but these are purely dependent on the
datasets being used. These diverse results for big datasets will help the farmers in predicting crops that
may generate a higher yield and also help us in recommending a suitable crop to be grown.
Further development of such a productivity enhancement model will play an important role in
managing the growth of crops in future by helping the farmer make the right decision at the right time
with the help of technology. This would help the farmer make an informed decision about the type of
crop to be grown. It will help in reducing wastage by the efficient utilization of resources and also help
in optimizing the fertilizer requirements to obtain maximum productivity.
As a future scope, the data collection and processing can be further automated that would also
enable the farmers to work on the data from anywhere. New modules can be incorporated in this
system to monitor the performance of the farm helpers or the efficiency of the equipment involved. If
the provision to predict the crop yields can be included, better planning of the crop storage,
distribution and marketing can also be done from the farmer’s side.
References
[1] Rakesh Kumar, M.P. Singh, Prabhat Kumar and J.P. Singh, “Crop Selection Method to
Maximize Crop Yield Rate using Machine Learning Technique”, 2015 International
Conference on Smart Technologies and Management for Computing, Communication,
Controls, Energy and Materials (ICSTM), 6 - 8 May 2015. pp.138-145. M. Young, The
Technical Writer’s Handbook. Mill Valley, CA: University Science, 1989.
[2] S.Bhuvaneswari, T.Pramananda Perumal, B.Jagadhesan, “An analysis and impact factors on
Agriculture field using Data Mining Techniques”, IJBI, ISSN: 2278-2400.
[3] Jay Gholap, Anurag Ingole, Jayesh Gohil, Shailesh Gargade, Vahida Attar, “Soil Data Analysis
Using Classification Techniques and Soil Attribute Prediction”.
[4] Ganesh P., Tamilselvi K., Karthi P., “Crop Prediction by Monitoring Temperature and Rainfall
Using Decision Tree with Iot and Cloud Based System”, IOSRJEN, ISSN (p): 2278-8719.
[5] R.Harine Rajashree, C.Kavya, T.Kiruthika, J.Nisha, “Crop Recommendation System for
Precision Agriculture”, 2016 IEEE Eighth International Conference on Advanced
Computing.
[6] Y. Xiaoxia, Z.Chengming, “A soil moisture prediction algorithm base on improved BP”, 5th
International Conference on Agrogeoinformatics (Agro-geoinformatics), 2016.
[7] J. Dong, S.C. Steele-Dunne, T. E. Ochsner, N.van de Giesen,‟Determining soil moisture by
7
ICMMCMSE 2020 IOP Publishing
Journal of Physics: Conference Series 1850 (2021) 012029 doi:10.1088/1742-6596/1850/1/012029
assimilating soil temperature measurements using the Ensemble Kalman Filter‟, Advances in
Water Resources, 2015, 86, 340-353.
[8] A. Kumar & N. Kannathasan, (2011), “A Survey on Data Mining and Pattern Recognition
Techniques for Soil Data Mining “, IJCSI International Journal of Computer Science Issues,
Vol. 8, Issue 3
[9] Dr M Suchithra, Asuwini T, Charumathi M C, Ritu N Lal, “Sensor Data Validation”, IJPAM,
ISSN: 1314-3395.
[10] Kusum Lata, Khan, Sajidullah S, “Experimental Analysis of Machine Learning Algorithms
Based on Agricultural Dataset for Improving Crop Yield Prediction”, IJEAT, ISSN: 2249 –
8958.