IoT Machine Learning for Crop Recommendations
IoT Machine Learning for Crop Recommendations
[Link]
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue V May 2023- Available at [Link]
Abstract: Agriculture is a major sector for the Indian economy. One prevalent issue faced by Indian farmers is the failure to
select appropriate crops based on their soil's nutrient content. Consequently, they encounter difficulties in achieving high
productivity. To address this concern, Smart agriculture has emerged as a solution. Smart agriculture refers to a contemporary
farming technique that utilizes research data pertaining to soil characteristics, soil types, and crop yield data collection. By
analyzing these factors, it suggests suitable crops to farmers based on their specific soil parameters. This approach minimizes
the likelihood of choosing unsuitable crops and enhances overall productivity. Our ongoing project aims to develop an
intelligent system that assists Indian farmers in making well-informed decisions regarding crop selection, considering their
farm's geographical location and soil characteristics. Furthermore, the system will provide fertilizer recommendations for the
recommended crops, ensuring optimal agricultural practices
Keywords: Agriculture, Crop Prediction, Fertilizer Recommendation, Sensors, Light Boost Algorithm, Machine Learning,
NPK.
I. INTRODUCTION
Agriculture, as we all know, is the major contributor to the Indian economy. Agriculture is an important occupation in India. More
than 60% of the country's land is used for agriculture, which feeds about more than 1.3 billion people. Agriculture is a primary
activity that includes growing crops, vegetables, fruits and rearing livestock. We need soil to yield crops. As a result, soil is an
important factor in agriculture. Soil health is essential for good production of crops. It provides the roots with essential nutrients,
water, oxygen, and support. In India, several soil varieties are available with different soil nutrients. They are black soil (generally
poor in phosphoric contents), red soil (rich in potash), laterite soil (deficient in nitrogen and potash), alluvial soil (great potash
content but poor in phosphorous), and so on. Numerous studies have been carried out with the aim of enhancing agricultural
practices. Smart farms and agricultural operations are taken place totally different than those many decades ago, primarily due to
advancements in technology, as well as sensors, devices, machines, and knowledge technology. Today’s agriculture uses advanced
technologies like temperature and wetness sensors, Machine Learning and lots of complex IOT devices. These advanced devices in
agriculture helps businesses and farmers to gain additional profitability and are more environment friendly. Various machine
learning techniques can be used recommend the crop. The environmental data that is collected by remote sensors are processed by
different algorithms and statistical data which is easy to interpret and helpful to farmers for decision makings and keep track of their
farms. The ultimate aim is that farmers will use these technologies to attain their goal of improved harvest by creating optimized
selections within the field.
II. RELATED WORK
The literature has many reported walks in the domain.
In the proposed system, the main concept implemented is the Internet of Things (IOT). The System uses different sensors to collect
various data and process the sensed data with ATMega328p microcontroller. The data received from the hardware device will be
analysed using different machine learning algorithms. The simple UI was developed so that the farmer knows what to do next. But
the user has to enter the NPK values manually. So, it’s a bit overhead for the user to enter the values of nutrients of soil. Sameer. M.
Patel, Mittal. B. Jain, Sagar. D. Korde are the authors of this paper.
In this paper, authors proposed the system that uses Node MCU microcontroller to collect the sensed data from the sensors. They
have done implementation of Agri Stick, which is used to monitor various crop parameters. Thus, the data obtained will be uploaded
to the cloud. The data from the cloud is extracted and crop prediction is done using three machine learning techniques, namely the
KNN algorithm, Support vector machine, and Logistic regression. The accuracy of the algorithms used is up to 85%. So, there is a
scope for using more precise and concise algorihms. Geo Abraham, Raksha R., M. Nithya are the authors of this paper.
In this proposed system, sensed data is received from the sensors. Classification models like Decision Tree, Random Forest, Naïve
Bayes and KNN are used for predicting the adequate crop.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 5856
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue V May 2023- Available at [Link]
The proposed approach recommends the optimum crop based on a few soil nutrients. Performance Analysis is done, which is a
specialized field that utilizes systematic goals to enhance performance and facilitate informed decision-making. Suggestion template
is not developed about the measures to take to yield the maximum productivity. Shafiulla Shariff, Pushpa H are the authors of this
proposed work. In this paper, authors proposed the system that uses a Raspberry Pi which is a low-cost credit card size
microprocessor. All the sensors .e. Temperature sensor, soil moisture sensor, humidity sensor and wind sensor are connected to the
GPIO pins of the Pi to collect the real-time information. The solution in the paper considers the soil type and the weather condition
of the current season, this solution predicts the best crop suitable for the soil and the necessary minerals and nutrients which have to
be added to the soil. Fahad Kamraan Syed, Ajay Kumar, Agniswar Paul are the contributors of this study.
III. METHODOLOGY
A. Collection of Dataset
For healthy cultivation of crop certain factors such as temperature, humidity, soil pH, soil nutrient, and soil moisture are important.
To receive high yield these conditions should be satisfied. But these conditions may vary according to the crop and soil. The dataset
for this system was taken from Kaggle. Basically it is a crop recommendation dataset giving information about various types of
crops and the different parameters like N (Nitrogen content in soil), P (Phosphorous content in soil),K ( Potassium content in soil)
soil Temperature ,Humidity ,pH value that decide which crop is suitable for growing.
D. Crop Prediction
To determine the most suitable crop for a specific soil type, a machine learning model is employed. By training the crop
recommendation model using data collected from Arduino sensors, machine learning algorithms are utilized to identify the optimal
crop with the highest probability of yielding. The Light Gradient Boosting machine algorithm is employed to select the best crop for
the designated land. The model provides recommendations on the specific crops that farmers should cultivate based on this analysis.
This is done by analyzing factors of humidity, temperature, soil moisture, pH level, and soil Nutrients.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 5857
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue V May 2023- Available at [Link]
E. Building UI
Subsequently, we have developed a user interface (UI) that enables users to input their data. By entering relevant information, along
with the sensor-collected data, the model will process the input and provide recommendations on the most suitable crop to be
cultivated under the given conditions.
2) Our Services
3) Motivation
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 5858
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue V May 2023- Available at [Link]
The User will be able to see the data they have provided and the nutrients of the soil collected from sensors.
4) Crop Recommendation
The system recommends a suitable crop to the user based on the NPK values, pH value, and the user-provided information
regarding the city's rainfall, temperature, and humidity.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 5859
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue V May 2023- Available at [Link]
By utilizing the LightGBM algorithm, which boasts an accuracy of approximately 0.99, the system recommends the optimal crop
for the user's soil and displays it to the user.
5) Fertilizer Recommendation
If the user has been cultivating a specific crop for several years and intends to continue cultivating the same crop, then we
recommend the measures the farmer should take to yield that crop in the best possible manner.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 5860
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue V May 2023- Available at [Link]
V. RESULT ANALYSIS
The proposed system utilizes soil parameters including Nitrogen, Phosphorus, Potassium, temperature, and a crop database.
Machine learning algorithms are employed to recommend the most suitable crop based on the specific soil requirements. Among the
algorithms tested, Light Gradient Boosting demonstrated the highest accuracy. The accuracy of each algorithm used is provided in
the list below.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 5861
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue V May 2023- Available at [Link]
System Architecture
REFERENCES
[1] Geo Abraham, Raksha R., M. Nithya @2021 IEEE 5th International Conference Paper “Smart Agriculture Based on IoT and Machine Learning.”
[2] Sanjana G, Nipun M Davasam,N Mohan Krishna Bengaluru, India @2020 IEEE “Smart Farming Using IoT and Machine Learning Techniques”
[3] Sameer. M. Patel, Sarvesh. S. Pai, Sagar. D. Korde , Mittal. [Link], International Research Journal of Engineering and Technology (IRJET) Volume: 08 @2021
“Smart Agriculture using IoT and Machine Learning
[4] Fahad Kamraan Syed, Agniswar Paul, Ajay Kumar, Jaideep Cherukuri 10th ICCCNT @2019 IEEE “Low-cost IoT+ML design for smart farming with multiple
applications”
[5] Zeel Doshi, Rashi Agrawal, Subhash Nadkarni Mumbai, India @2018 IEEE “Intelligent Crop Recommendation System Using Machine Learning Algorithms”
[6] Kasara Sai Pratyush Reddy, Kovvada Rajeev L N, Y Mohana Roopa, India ©2020 IEEE “IoT based Smart Agriculture using Machine Learning”
[7] Bhanu K N, Jasmine H J, Mahadevaswamy H S Belagaum, India @2020 (INCET) “Machine learning Implementation in IoT based Intelligent System for
Agriculture”
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 5862