Crop Recommendation System Using Machine Learning
Crop Recommendation System Using Machine Learning
https://doi.org/10.22214/ijraset.2023.49097
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 II Feb 2023- Available at www.ijraset.com
Abstract: Agroecology is one of the oldest and noblest professions in India. Farmers face a lot of hardships while using
traditional methods of farming in today's technologically centric world. Precision farming is a modern approach in comparison
to traditional cultivation techniques. We are predicting the right crop using parameters like district, rainfall, temperature, area, a
crop which would help the farmer to predict the crop yield prior to making the decision to cultivate their final crop. This method
can provide the farmer with valuable insights and assist them. In this paper we are using various techniques like Ridge
Regression and Classifier. We have used different datasets on these models to get a better accuracy.
I. INTRODUCTION
Agriculture, as we all know, is the foundation of the Indian economy. Agriculture is an important occupation in India. More than
60% of the country's land is used for agriculture, which feeds 1.3 billion people. Agriculture is the cultivation of plants and animals.
In India, agriculture gave rise to civilization. We need weather to cultivate crops. As a result, soil is a critical factor in agriculture.
weather news is essential for good food production. It provides the roots with essential nutrients, water, oxygen, and support. soil is
the foundation of the food system, as well as the location of all plants used in food production. In India, several soil varieties are
available. They are alluvial soil (cotton, rice), black soil (sugarcane, sunflower), red soil (corn, ragi), laterite soil (pulses, tea,
coffee), and so on. Many studies have been conducted to improve agricultural planning. The crop can be recommended using a
machine learning technique.
Machine learning is an subfield of artificial intelligence that describes a machine's ability to mimic intelligent human behavior.
Artificial intelligence systems are employed in the same way as humans do to automate complex tasks. Machine learning begins
with data, such as financial transactions, individuals, or photos.
The information is collected and processed to be utilized as training data for the machine learning system. If the data is more then
the software shows better results. After that, the developer select a ML model to use, input the data, and train the system to find
patterns or make predictions on its own.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 640
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 II Feb 2023- Available at www.ijraset.com
III. DATASET
For the system, we are using various datasets all downloaded for government website and Kaggle.
1) Datasets Include: Cost of cultivation per dataset for major crops in each state Yield dataset, A brief description of the datasets:
2) Yield Dataset: This dataset contains yield for 16 major crops grown across all the states in kg per hectare. Yield of 0 indicates
that the crop is not cultivated in the respective state.
3) Data Preprocessing: This step includes replacing the null and 0 values for yield by -1 so that it does not effect the overall
prediction. Further we had to encode the dataset so that it could be fed into the neural network.
System Architecture
A system architecture is a conceptual model using which we can define the structure and behaviour of that system. It is a formal
representation of a system. Depending on the context, system architecture can be used to refer to either a model to describe the
system or a method used to build the system. Building a proper system architecture helps in analysis of the project, especially in the
early stages. Figure 6.2 depicts the system architecture and is explained in the following section.
V. PROPOSED SYSTEM
1) In this project, we have proposed a model that addresses the existing issues. The novelty of the proposed system is to guide the
farmers to maximize the crop yield as well as suggest the most profitable crop for the specific region.
2) The proposed model provides crop selection based on economic and environmental conditions, and benefit to maximize the
crop yield that will subsequently help to meet the increasing demand for the country’s food supplies. The proposed model
predicts the crop yield by studying factors such as State, District, area, season. The system also helps to determine the best time
to use fertilizers.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 641
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 II Feb 2023- Available at www.ijraset.com
3) The user provides an State, District, Season, Crop and Area as inputs for Production. The user provides an State, District,
Season and Area as inputs for Crop Recommendation. According to the requirement, the model predicts the crop yield for a
specific crop. The model also recommends the most profitable crop and suggests the right time to use the fertilizers.
4) The main objective is to obtain a better variety of crops that can be grown over the season. The proposed system would help to
minimize the difficulties faced by farmers in choosing a crop and maximize the yield.
VI. CONCLUSION
At the conclusion of this project, I would say that I had learnt a lot from several resources to finish it. I used a variety of algorithm,
technology and techniques to finish this project successfully. At the starting of this project, we applied KNN models of the
algorithm of machine learning to the project and after applying the algorithm on the dataset we get the accuracy of 65.05%. Now we
are applying the project on various algorithm such as ANN (artificial neural network), SVM (support vector machine). To increase
the efficiency of the project and accuracy in this project we take the datasets from the various government websites such as -
https://data.gov.in/ and KAGGLE and apply various parameters and algorithm’s to get the maximum accuracy. The maximum
accuracy we attain after applying algorithm’s is 65.05%. this is the Accuracy we achieved after applying the KNN algorithm. At the
last, we have discovered that our models trained to helps the farmer to choose the right crop by providing insights that ordinary
farmers don’t keep track of thereby decreasing the chances of crop failure and increasing productivity. It can also help in the
following factor such as It also prevents them form incurring losses. The system can be extended to the web and can be
accessed by millions of farmers across the country. By creating our own training datasets and fine-tuning our architecture, we
were able to overcome data mismatch concerns and run on-device with low memory, storage, and compute needs. Further
development is to integrate the crop recommendation system with another subsystem, yield predictor that would also provide
the farmer an estimate of production if he plants the recommended crop.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 642
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 II Feb 2023- Available at www.ijraset.com
3) Whether forecast:
IX. CODE
We have tried to develop the code on the basis of the requirement of the project in the language python with using the different
library.
We do the code on the Jupyter notebook of the anaconda Application.
We also make the front-end code by using the language hyper text markup language, cascading style sheet and the JavaScript and
also the some CSS framework like bootstrap.
X. ACKNOWLEDGEMENTS
We are really thankful to Assistant Professor Ms. Sarika Gambhir from the IMS Engineering College in Ghaziabad's Computer
Science and Engineering department for his assistance in assisting us with the application of our research to the real world. Its our
privilege to express our sincere regards to our project guide, Prof. Ms. Sarika Gambhir for his valuable inputs, able guidance,
encouragement, cooperation and constructive criticism throughout the duration of our project. We sincerely thank the Project
Assessment Committee members for their support and for enabling us to present the project on the topic.
“ Crop Recommendation System using Machine Learning.”
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”, International Conference on Smart Technologies and Management for Computing, Communication, Controls, Energy and Materials,
2015
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 643
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 II Feb 2023- Available at www.ijraset.com
[2] Haedong Lee and Aekyung Moon, “Development of Yield Prediction System Based on Real-time Agricultural Meteorological Information”, 16th
International Conference on Advanced Communication Technology, 2014
[3] T.R. Lekhaa, “Efficient Crop Yield and Pesticide Prediction for Improving Agricultural Economy using Data Mining Techniques”, International
Journal of Modern Trends in Engineering and Science (IJMTES), 2016, Volume 03, Issue 10
[4] Jay Gholap, Anurag Ingole, Jayesh Gohil, Shailesh Gargade and Vahida Attar, “Soil Data Analysis Using Classification Techniques and Soil
Attribute Prediction”, International Journal of Computer Science Issues, Volume 9, Issue 3
[5] Anshal Savla, Parul Dhawan, Himtanaya Bhadada, Nivedita Is- rani, Alisha Mandholia, Sanya Bhardwaj (2015), ‘Survey of classification
algorithms for formulating yield prediction accuracy in precision agriculture’, Innovations in Information, Embedded and Communication
systems (ICIIECS).
[6] AgroConsultant: Intelligent Crop Recommendation System Using Machine Learning Algorithms. Zeel Doshi, Subhash Nadkarni, Rashi Agrawal,
Prof. Neepa Shah.
[7] Crop Recommendation System for Precision Agriculture S.Pudumalar*, E.Ramanujam*, R.Harine Rajashree, C.Kavya, T.Kiruthika, J.Nisha.
[8] Tom M. Mitchell, Machine Learning, India Edition 2013, McGraw Hill Education.
[9] https://data.gov.in/g
[10] Kaggle https://www.kaggle.com/notebook
[11] Israni, Dishant and Masalia, Kevin and Khasgiwal, Tanvi and Tolani, Monica and Edinburgh, Mani, Crop-Yield Prediction and Crop Recommendation System
[12] Crop recommendation system by Shafiulla Shariff, Shwetha R B, Ramya O G, Pushpa H, Pooja.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 644