Professional Documents
Culture Documents
Krishi Mitra - Intelligent Crop and Fertilizer Recommender-2
Krishi Mitra - Intelligent Crop and Fertilizer Recommender-2
Pradnya Bhangale
Department of Computer Engineering
KJSIT, University of Mumbai
Mumbai, India
pyb@somaiya.edu
Abstract—Krishi Mitra - Intelligent Crop And employing state-of-the-art machine learning techniques,
Fertilizer Recommender System employs machine holds the promise of significantly enhancing agricultural
learning algorithms to provide personalized crop and productivity and thereby empowering the farming
fertilizer suggestions based on specific farming community.
conditions, including various environmental parameters The foundation of the proposed recommendation system is
such as temperature, humidity, pH, rainfall, crop types, built upon a meticulously curated dataset sourced diligently
and soil nutrient (N,K, P) concentrations. The proposed from Kaggle's extensive repositories. This dataset is a
research aims to enhance crop recommendations for comprehensive collection of soil and environmental
farmers by predicting the most suitable crops for their parameters, serving as the core of the model's cognitive
unique agricultural settings. To enhance overall capabilities. It encompasses a wide range of critical metrics,
prediction accuracy, the crop recommendation model including humidity levels, soil pH levels, temperature
leverages an Ensemble approach, where an ensemble variations, rainfall patterns, and the elemental composition
model is trained using Random Forest and XGBoost of soil, specifically Phosphorus (P), Nitrogen (N) and
algorithms, and its performance is compared against Potassium (K). Within this diverse data lies the potential to
that of the Artificial Neural Networks (ANN) algorithm. uncover profound insights.
This comparative analysis allows for the selection of the Furthermore, the research program aims to conduct a
most accurate model for crop recommendation and thorough evaluation of the performance of three prominent
fertilizer customization. This approach optimizes crop machine learning algorithms: Random Forest, used for its
selection and fertilizer recommendations, potentially ability to handle extensive and complex datasets; Artificial
leading to increased crop yields and improved farming Neural Networks (ANNs), inspired by the neural
productivity. The proposed implementation of this architecture of the human brain; and XGBoost, celebrated
system holds the potential in revolutionizing agriculture for its efficiency in processing structured data. This rigorous
by offering sustainable recommendations, bridging the analysis seeks to identify the algorithm that offers the
gap between farmers and technology, and enhancing highest precision and reliability in providing
agricultural productivity and sustainability. recommendations to the discerning Indian farming
population.
Keywords—Fertilizer-recommendation,Machine-Learn Upon the completion of the research, the algorithm
ing, Ensemble models, Random Forest, XGBoost, demonstrating the utmost accuracy and reliability in crop
Artificial Neural Networks, Agriculture, Sustainability and fertilizer recommendations will be implemented
independently to benefit Indian farmers. This ensures the
I. INTRODUCTION
application of the most effective technology to address the
In the vast agricultural landscape of India, the persistent pressing challenges of agricultural productivity.
challenge of increasing crop yields and improving the
financial well-being of the farming community is of
paramount importance. Successful crop cultivation goes
beyond sheer hard work; it relies on the careful selection of II. LITERATURE REVIEW
crops and the precise application of fertilizers. A Crop Recommendation System was introduced for
Unfortunately, many Indian farmers lack this crucial Farmers (RSF) that recommends crops based on user
knowledge due to a shortage of scientific understanding. location and agricultural data. It uses various machine
Recognizing this urgent need, this project seeks to provide learning algorithms such as Logistic Regression,DT, Linear
an innovative solution—the Crop Recommendation and Regression, SVM, KNN, Naive Bayes and K-Means to
Fertilizer Recommendation System. This advanced tool, enhance crop selection and productivity [1].
Precision agriculture is explored and ensemble techniques a system for detecting plant leaf diseases [11].Crop and
are employed such as CHAID, Naive Bayes, KNN and fertilizer recommendation and leaf disease prediction is
Random Forest, emphasizing the significance of data integrated. Random Forest was identified as the best choice
mining and ensemble techniques in decision-making [2]. for crop recommendation. Fertilizer recommendation,
Various machine learning techniques, like XGBoost, SVM, driven by SVM and RF, achieves a remarkable 100%
Naive Bayes, Random Forest, Logistic Regression and DT, accuracy rate. For leaf disease prediction, CNN using the
were investigated to refine crop recommendations. ResNet architecture was employed, offering deep learning
Certainly, Random Forest performed exceptionally well, capabilities and a 95% accuracy rate for early disease
achieving an impressive accuracy rate of 96.34% [3]. detection.[12]
Mobile app using GPS and user inputs for crop suggestions The challenges posed by climate change while offering a
is developed, employing SVM, ANN, RF, MLR, and KNN unified platform for crop recommendation as well as plant
algorithms. It achieves 95% accuracy with Random Forest disease identification. In the context of crop
in yield prediction and provides 14-day rainfall forecasts via recommendations,five distinct machine learning algorithms
the Open Weather API. Safety measures include were employed , namely Logistic regression,DT, SVM,
withholding fertilizer when rainfall exceeds 1.25 mm. [4] multi-layer perceptron, and Random Forest. Random forest
algorithm displayed a remarkable accuracy rate of
A web application is proposed for crop and fertilizer 99.31%.In the realm of plant disease identification, training
recommendation. Multiple machine learning algorithms, and evaluation were conducted using three different
such as ANN, Random Forest, SVM , KNN, Naïve Bayes Convolutional Neural Network (CNN) architectures:
and DT, have been utilized for training in both the crop VGG16, ResNet50, and EfficientNetV2. Among these,
recommendation system and fertilizer recommendation.[5] EfficientNetV2 displayed outstanding performance,
A web application-based system is developed for crop as boasting an accuracy rate of 96.06%.[13]
well as fertilizer recommendation, and plant disease An innovative machine learning algorithm, AdaBoost, was
prediction. MobileNet algorithm is used to identify plant introduced, for predicting crop yields and recommending
diseases using leaf images, XGBoost algorithm is employed fertilizers based on soil conditions. Additionally, the study
to predict appropriate crops by considering soil nutrients recommends fertilizers employing the Random Forest (RF)
and rainfall and Random Forest (RF) algorithm offers algorithm. Further enhancements may explore the use of the
recommendations for fertilizers and strategies to enhance Gradient Boost algorithm for prediction alongside potential
soil fertility, primarily based on soil nutrient data. These algorithms like SVM and Decision Trees, in conjunction
proposed models outperforms the existing classifiers in with Random Forest, to refine the prediction model.[14]
terms of accuracy.[6]
Farmers were empowered with insights and predictions.The
The BiLSTM-MANN algorithm is utilized to provide system also includes a harvest prediction feature. It assists
precise crop recommendations. The dataset is trained using in selecting optimal pesticides, fertilizers, and recommended
BiLSTM-MANN , MLP and CNN models. Based on crops, using various algorithms like Random Forest,
different evaluation metrics,BiLSTM-MERNN model XGBoost, Random Forest, SVM, Logistic Regression, and
outperforms , rest of the algorithms in context of crop Naive Bayes.[15]
recommendation systems.[7]
Machine learning algorithms were employed on a
A crop recommendation system is proposed employing the well-prepared dataset for crop recommendation.We find that
Light GBM algorithm. The dataset undergoes training with that Random Forest and XGBoost performed the best with
both the Light GBM model and logistic regression. Based accuracies of 98.9% and 98.2% respectively and Logistic
on accuracy score, Light BGM model provides more Regression achieved an accuracy of 95.6%, and Decision
accuracy than logistic regression.[8] Trees reached 95.3% accuracy. Future improvements could
Random Forest and Logistic Regression are combined for incorporate GPS coordinates and government rainfall
precise crop and fertilizer recommendations. A user-friendly forecasting for precise crop predictions.[16]
web application ensures accessibility to farmers. Extensive These projects collectively highlight the potential of
experimentation reveals that the hybrid model outperforms machine learning approaches to revolutionize Indian
individual algorithms like Logistic Regression, SVM, agriculture, improving crop selection, yield prediction, and
Logistic Regression, DT and Random Forest.[9] overall productivity while addressing the challenges faced
A state-of-the-art Crop Prediction System is introduced that by farmers.
uses K-Nearest Neighbors (KNN) for accurate predictions
based on soil characteristics.The K-Nearest Neighbors
(KNN) Classifier, achieving a remarkable 90% precision.
Real-time data on soil quality is acquired using an Arduino
Uno and sensors.Future plans include integrating KNN with
Geographic Information Systems (GIS) for even more
accurate crop suggestions.[10]
Deep neural networks are employed for crop
recommendation as well as plant disease detection. An
artificial neural network is employed for crop
recommendation, while a 2D CNN can be utilized to create
2023 6th International Conference on Advances in Science and Technology (ICAST)
Crop Recommendation Gaurav Chauhan, Random forest and decision trees to Timely notifications about crop Implementing and maintaining crop
System Using Machine Alka Chaudhary predict the crop and performance forecasts reach farmers. recommendation systems can be
Learning Algorithms compared using WEKA Tool expensive, especially in
resource-constrained regions.
A Crop Recommendation S. Pudumalar, E. Ensemble model with majority voting By diversifying crops or choosing Gathering and sharing agricultural
System for Precision Ramanuja technique using Random trees, those suitable for specific conditions, data may raise privacy concerns for
Agriculture CHAID,KNN and naive bayes farmers can reduce risks associated farmers, which can limit data
with weather fluctuations, pests, and collection and analysis.
diseases.
Machine Learning-Based C. Sagana, M. Naive Bayes, SVM, Logistic This will help to maximize the yields Can integrate plant disease prediction
Crop Recommendations Sangeetha, S. Savitha Regression, Random Forest, Decision of crops which increase the profits of module as well
for Precision Farming to Trees and XGBoost, for crop farmers. Based on comparison from
Maximize Crop Yields recommendations. Random Forest different models RF gave more
stands out as the most accurate, accuracy of 96.34%.
achieving a 96.34% accuracy rate.
Crop Recommender SHILPA MANGESH Employs various algorithms like Recommending time of fertilizer is a Lack of interpretability, potential
System Using Machine PANDE; PREM SVM,MLR,RF,KNN,ANN to predict unique and useful module overfitting, longer prediction times,
Learning Approach KUMAR RAMESH; crops.RF outperforms them high memory usage.
ANMOL ANMOL; all.Provides fertilizer
B. R AISHWARYA; recommendation and recommends at
what time is fertilizer to be used
AGRI-PRO: Crop, Yalabaka Srikanth, Compares various algorithms such as Provides services such as marketplace No multilingual support, can integrate
Fertilizer and Market Place Meghana Daddanala, DT,NB,SVM,KNN,RF and ANN for and farm discovery . The random pant disease identification as well
Recommender for Farmers Manchala Sushrith, crop and fertilizer recommendation forest algorithm provides the higher
using Machine Learning Pranith Akula, Ch. modules. RF outperforms them all for accuracy than other models
Algorithms Rajendra Prasad, both the modules
Dasari Sindhu Sri
KRISHI RAKSHAN - A D. N. V. S. L. S. RF is used for fertilizer predicts crop disease as well, RF, XGB No multilingual support.
Machine Learning based Indira, M. Sobhana, recommendation, XGB is used for and mobile net outperforms existing
New Recommendation A. H. L. Swaroop, V crop recommendation and mobile net classifiers
System to the Farmer Phani Kumar is used for crop disease detection.
Crop Recommendation J Sreemathy, N BiLSTM-MERNN model effectively learn and understand no such specific interface or GUI
with BiLSTM-MANN Prasath outperforms Multilayer Perceptron complex temporal patterns related to which can be used by farmers, can
Algorithm for Precision and CNN model for crop weather conditions and soil properties, integrate plant disease identification
Agriculture recommendation system high accuracy, scalable to handle large and fertilizer recommendation as well
dataset
An Enhanced Light GBM Namrata Bhatt, Light GBM model provides more High efficiency, faster training, easily no such specific interface or GUI
Model with Data Sunita Varma accuracy than logistic regression handle large dataset, high accuracy, which can be used by farmers, can
Analytical Approach for model for crop recommendation high scalability integrate plant disease identification
Crop Recommendation system. and fertilizer recommendation as well
Crop Yield Prediction and K P K Devan; B Random Forest and Logistic High accuracy due to hybrid model Hybrid models introduce complexity,
Fertilizer Recommendation Swetha; P Uma Regression hybrid model outperforms have overfitting risks and hard to
System Using Hybrid Sruthi; S Varshini individual models like maintain
Machine Learning RF,DCT,SVM,LR,etc.
Algorithms
An Efficient Machine Nidhi H Kulkarni; G Real time data gathered using KNN is non-parametric and thus Can not handle large dataset
Learning Approaches for N Srinivasan; B M Arduino uno and sensors , KNN simple to construct
Crop Recommendation Sagar; N K Cauvery Classifier used for crop prediction
based on Soil
Characteristics
Crop Recommendation and Anuraj Singh, Amit ANN is used for crop ANN can identify complex patterns no such specific interface or GUI
Disease Detection using Kumar Bhamboo recommendation systems and 2d and relationships between agricultural which can be used by farmers.can
Deep Neural Networks CNN is used for plant disease data and have high scalability. CNN integrate fertilizer recommendation as
detection systems. are specializer for images, provides well
effective feature extraction, high
accuracy, highly scalable and accurate
ENSEMBLED CROPIFY K. Devi Priya; A. RF gives best accuracy for crop ResNet mitigate the overfitting Computationally Expensive, less
– Crop & Fertilizer a Sasi Samyogitha; A. prediction, RF and SVM combined problem making it easier to train interpretability
System with Leaf Disease Vamsi Krishna are use for Fertilizer recommendation Neural Networks and aids in
Prediction Reddy; B. Divya Sri , CNN with ResNet is used for leaf preventing vanishing gradient problem
disease prediction
Crop Recommendation Shivesh Tiwari; RF emerged as most accurate Improved efficiency, better Complexity, increased computational
using Machine Learning Somesh Kumar; algorithm for crop prediction and For performance, parameter efficiency, requirements due to EfficientNetV2
and Plant Disease Sunil Tyagi; Plant Disease Identification faster training, state-of-the-art
2023 6th International Conference on Advances in Science and Technology (ICAST)
Identification using CNN Minakshi Poonia EfficientNetV2 outperformed other accuracy due to EfficientNetV2
and Transfer-Learning CNN architectures
Approach
A Machine Learning-based Jeeva Ganesh R; Government dataset is used, AdaBoot Ensemble models are use which grant Increased training time , is more
Approach for Crop Yield Harish D; Priya B used for crop recommendation and Fr stability , reduce overfitting, make complex and computationally
Prediction and Fertilizer used for fertilizer recommendation better predictions thus increasing expensive
Recommendation accuracy
Using A Two-Fold Ginka Hemdeep; Crop prediction and fertilizer Ensemble models are used which help Can integrate plant disease prediction
Machine Learning Anumukonda recommendation is done using increase accuracy and give better module as well
Approach for Crop And Sowjanya; . Matilda DCT,NB,LR,RF,SVM,XGB. results overall
Fertilizer Recommendation Florence Comparative analysis was performed
System
Machine Learning based Mohammed Abdul Model deployed on cloud for faster A cloud platform allows organizations Cloud Disadvantages include
Crop Recommendation on Raheem; Mohammed processing,RF gives best accuracy to rapidly deploy applications and Downtime, data security, cost, vendor
a Cloud Sabir Hussain; Syed out of DCT,LR,XGB services, and provides the ability to lock-in, latency, limited control.
Ayaan Ahmed store and analyze large amounts of
data.
intricate interplay of environmental and soil factors in crop iv. F1-Score: The F1 score is a metric that assesses the
selection and fertilizer application. equilibrium between precision and recall when performing a
classification task. It considers both false positives and false
negatives and provides a single numerical value that
ii. XGBoost, a versatile gradient boosting algorithm, is a represents the model's overall performance.
valuable asset in the research endeavor. It is known for its
computational efficiency and a strong track record of
predictive accuracy. XGBoost excels in handling structured 𝐹1 − 𝑠𝑐𝑜𝑟𝑒 =
2*𝑝𝑟𝑒𝑐𝑖𝑠𝑖𝑜𝑛*𝑅𝑒𝑐𝑎𝑙𝑙
𝑃𝑟𝑒𝑐𝑖𝑠𝑖𝑜𝑛 +𝑅𝑒𝑐𝑎𝑙𝑙
data, making it well-suited for the complexities of the
agricultural dataset. Its ability to capture intricate data
relationships becomes particularly important when crafting
tailored recommendations for farmers. Ongoing research IV. CONCLUSION
will explore the extent to which XGBoost can optimize crop This study proposed a system that represents an
and fertilizer recommendations, ultimately leading Indian advancement in optimizing agricultural practices through
farmers toward increased crop yields and economic
machine learning and predictive analytics. The proposed
prosperity.
model has been successfully developed to accurately predict
suitable crops and fertilizers based on a rich dataset
comprising features for better recommendations. The
iii. Artificial Neural Networks (ANNs), inspired by the
architecture of the human cerebral cortex, emerge as the research involved data preprocessing, including cleaning,
third key element in the research effort. ANNs have earned feature engineering, and normalization, which ensured the
recognition in various domains, from image recognition to reliability of the results. The optimal model for
natural language processing. In this agricultural context, recommendations, the proposed approach compared models
ANNs hold the potential to reveal subtle patterns and like XGBoost, Random Forest, and Artificial Neural
nonlinear correlations hidden within the intricate dataset. By Networks (ANN) for both crop and fertilizer
harnessing the deep learning capabilities inherent in ANNs, recommendation based on soil conditions. These
the aim is to build a recommendation system that empowers comparisons will further refine the recommendation
Indian farmers with unique insights into crop selection and system's accuracy and utility. Looking ahead, the
fertilizer utilization. The ultimate aim is to facilitate commitment to ongoing innovation aims to further enhance
informed decision-making, paving the way for improved sustainable agricultural resource management, offering
crop yields and economic well-being. substantial benefits to farmers and the global food supply
6. Comparing Evaluation Metrics: Once the models have chain.
undergone training, they undergo thorough evaluation using
a set of crucial performance metrics. These metrics
REFERENCES
encompass Precision, Accuracy, Recall, and F1-score,
collectively offering a thorough assessment of the models'
capabilities in providing precise crop and fertilizer [1]Gaurav Chauhan, Alka Chaudhary, “Crop Recommendation System
recommendations. By comparing the results obtained from Using Machine Learning Algorithms” presented at the 2021 10th
International Conference on System Modeling & Advancement in Research
each model across these metrics, it is easy to identify the Trends (SMART), MORADABAD, India,
most effective and reliable model for both crop and fertilizer Available: https://ieeexplore.ieee.org/document/9676210
recommendation.
[2] S. Pudumalar, E. Ramanuja, R. Harine Rajashree, C. Kavya, T.
i. Accuracy: Accuracy measures the overall correctness of Kiruthika, J. Nisha, “A Crop Recommendation System for Precision
recommendations. It quantifies the percentage of correct Agriculture” presented at the 2016 Eighth International Conference on
predictions out of all predictions made. Advanced Computing (ICoAC), Chennai, India, 19-21 January 2017.
Available: https://ieeexplore.ieee.org/document/7951740
ii. Precision: Precision evaluates the model's ability to make International Conference on Computer Communication and Informatics
(ICCCI), Coimbatore, India, 23-25,2023.
relevant recommendations. It calculates the ratio of true
Available: https://ieeexplore.ieee.org/document/10128525
positive recommendations to the total number of positive
recommendations. [4] SHILPA MANGESH PANDE, PREM KUMAR RAMESH, ANMOL
𝑇𝑟𝑢𝑒 𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒
ANMOL, B. R AISHWARYA, KARUNA ROHILLA, KUMAR
𝑃𝑟𝑒𝑐𝑖𝑠𝑖𝑜𝑛 = 𝑇𝑟𝑢𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒 +𝐹𝑎𝑙𝑠𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒
SHAURYA, “Crop Recommender System Using Machine Learning
Approach”, presented at the 2021 5th International Conference on
iii. Recall: Recall gauges the model's ability to identify all Computing Methodologies and Communication (ICCMC), Erode, India,
relevant recommendations. It calculates the ratio of true 08-10 April.
Available: https://ieeexplore.ieee.org/document/9418351
positive recommendations to the total number of actual
positive cases. [5] Yalabaka Srikanth, Meghana Daddanala, Manchala Sushrith, Pranith
Akula, Ch. Rajendra Prasad, Dasari Sindhu Sri, “AGRI-PRO: Crop,
Fertilizer and Market Place Recommender for Farmers using Machine
𝑇𝑟𝑢𝑒 𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒 Learning Algorithms”, presented at the 2023 7th International Conference
𝑅𝑒𝑐𝑎𝑙𝑙 = 𝑇𝑟𝑢𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒 +𝐹𝑎𝑙𝑠𝑒 𝑁𝑒𝑔𝑎𝑡𝑖𝑣𝑒
2023 6th International Conference on Advances in Science and Technology (ICAST)
[8] Namrata Bhatt, Sunita Varma, “An Enhanced Light GBM Model with
Data Analytical Approach for Crop Recommendation”, presented at the
2023 Second International Conference on Electronics and Renewable
Systems (SEARS), Tuticorin, India, 02-04 March 2023.
Available: https://ieeexplore.ieee.org/document/10085596