Report
Report
ii
Table of Contents
Page No.
Acknowledgement i
Abstract ii
Table of Contents iii
List of Figures iv
Chapter 1 Introduction 1-2
1.1 Background 1
1.2 Overview 1-2
1.3 Machine Learning Algorithms 2
References 28
Conference Certificate 29
iii
List of Figures
iv
Farmer’s Assistance Portal for Better Crop Production
Chapter 1
INTRODUCTION
1.1 Background
Agriculture is the backbone of any country, and it has become the most significant growing
sector all over the world because of increasing the population. About 60% of our country's
population works in agriculture which contributes more to our country's GDP and employment.
The main challenge in the agriculture industry is to improve farming efficiency and quality to
fulfill the speedily increasing demand for food. Apart from the mounting population, the climate
circumstance is also a huge challenge in the agricultural industry. In our project, we will make
use ofML algorithms to assist farmers to know future crop yield predictions and favorable
weather predictions. It also assists the farmers to sell the crops directly to the customers.
1.2 Overview
A. Basic Concepts
An agricultural portal is an online platform that provides access to a variety of resources and
servicesto farmers and other stakeholders in the agriculture industry. The main objective of
such a portal is to help farmers improve their crop production and profitability by providing
them with information, tools, and services that can help them make informed decisions and
adopt best practices. Some of the basic concepts that are central to an agricultural portal for
better crop production include:
Market Intelligence: This refers to the information that farmers need to make informed
decisionsabout when to sell their crops and at what price. Agricultural portals provide farmers
with access to real-time market information that can help them get the best possible.
Weather data: Farmers must be able to plan their planting and harvesting schedules in
accordancewith the weather as it is so important to agriculture. Agricultural portals give farmers
access to weather alerts and forecasts, which can aid them in making decisions regarding pest
control, irrigation, and other tasks. exemplary practices.
Best Practices: Farmers must stay current on the most recent best practices and procedures
becauseagriculture is a complicated and ever-evolving industry. It gives farmers access to a
varietyof tools and materials that can assist them advance their agricultural methods.
Dept. of CSE, SMVITM Page No. 1
Farmer’s Assistance Portal for Better Crop Production
B. Proposed System
The suggested system is a web application built using HTML and Bootstrap4 that allows
farmersto sell their products directly to consumers without the use of a middleman. The
process aids in product development and testing. When working on the front end, we are
concerned with how itappears. After creating it, we test it and discuss what to do next and how
it can be made better. In order to give farmers and customers quick access to important data
and tools that can aid in better decision-making, increased production, and improved
livelihoods, we have developed an online platform.
Chapter 2
LITERATURE REVIEW
[1] According to analysis, the most used features are temperature, rainfall, and soil type, and the
most applied algorithm is Artificial Neural Networks in these models. The author used
parameters like State, district, season, and area. The user can predict the yield of the crop in which
year the user wants. The paper uses advanced regression techniques like Kernel Ridge, and Lasso
to predict the yield and uses the concept of Stacking Regression for enhancing the algorithms to
give a better prediction.
[2] In this paper, the author says, yield prediction was performed by considering farmers'
experience on a particular field and crop. Different Data Mining techniques are used and
evaluated in agriculture for estimating the future year's crop production. This is achieved by
applying association rule mining on agriculture data. This research focuses on the creation of a
prediction model which may be used for future prediction of crop yield. This paper presents a
brief analysis of crop yield prediction using a data mining technique based on association rules
for the selected region.
[3] The author describes how the old farming data can be utilized to depict the future expectation
of harvests and yield. It likewise proposes to the ranchers what kind of yield can be developed
utilizing the climate station data and gives the appropriate data to incline toward the precise
season for cultivating. The curse on the harvest yield is broken down by utilizing different
ecological elements and Regression Analysis (RA), Linear Regression (LR) Algorithms
utilizing the various data mining strategies how to improve harvest production.
[4] This paper uses machine learning algorithms, direct relapse demonstrated from insights, and
two enhancement techniques, the Normal condition strategy, and the Gradient plunge technique
to anticipate the weather based on a couple of parameters. this work utilizes the ordinary
condition model's speculation and contrasts it and the angle plunge model to give a superior
thought of the productivity of the models. This paper is about the use of machine learning
algorithms, direct relapse demonstrates from inside, and two enhancement techniques.
[5] We describe an approach to yield modeling that uses a semiparametric variant of a deep neural
network, which can simultaneously account for complex nonlinear relationships in high-
dimensional datasets, as well as the known parametric structure and unobserved cross-sectional
heterogeneity. We show that this approach outperforms both classical statistical methods and fully
nonparametric neural networks in predicting the yields of years withheld during model training.
Our approach is less pessimistic in the warmest regions and the warmest scenarios.
[6] This paper predicts the yield of almost all kinds of crops that are planted in India. This script
makes novel by the usage of simple parameters like State, district, season, area and the user can
predict the yield of the crop in which year he or she wants to. The paper uses advanced regression
techniques like Kernel Ridge, Lasso, and ENet algorithms to predict the yield and uses the concept
of Stacking Regression for enhancing the algorithms to give a better prediction.
[7] In this paper, we can predict the things like rainy, windy, sunny, stormy, floods and variations
in temperature, etc. Nowadays, the weather is making a bad impact, as society is growing more
and more, causing much damage, injury, and loss of life for farmers. Weather forecasting is very
important for agriculture and terrace gardening. Weather forecasting will help remote areas for
better cropproduction. Inthis paper, a low-cost solution for weather forecast prediction is discussed.
[8] This paper uses algorithms such as Random Forest, Support Vector Machine, Weather, and K
Nearest neighbor, which are used for better performance results for each selected weather
parameter. We also use soil and weather parameters such as soil type, soil fertility, maximum
temperature, minimum temperature, and rainfall are used to identify suitable crops for specified
farms or land. Ethiopia consolidates both remotely detected information (RSD) and agrarian
overview information for a considerable beneficiary of specially appointed imported nourishment
help.
Chapter 3
REQUIREMENT SPECIFICATION
Chapter 4
SYSTEM DESIGN
4.1 Introduction to system design
The system design controls the major structural characteristics of the system. It as a major impact
on the testability and modifiability of the system, and it affects its efficiency. Much of the
designing software is spent in creating the system design. In the first level of the design process,
the focus is on deciding which modules are needed for the system, the specification of these
modules, and how the modules should be interconnected. This is called the system design or top-
level design.
The design activity begins when the requirement documents for the software to be developed is
available. The goal of the design process is to produce a model or representation of the system,
which can be used later to bind the system. The produced model is called design of the system. A
structured design is a top down approachto minimize complexityand make a problem manageable
by sub dividing it into smaller segments. The most creative and challenging phase of the system
development of life cycle is system design. The design phase is translation from user oriented
document to document oriented programmers.
4.4 Flowchart
The above figure 4.2 is the design of our project Farmer’s assistance portal for better crop
production. The Farmers and customers can login to the portal and make use of various options
available in their respective domain.
The methodology of developing and deploying a machine learning model, which typically
involvesthe following steps: data acquisition and preprocessing, model development, model
training, modeltesting, and deployment.
1. Data Acquisition and Preprocessing:
Identify the problem statement and the type of data required to solve it.
Collect the necessary data from various sources such as databases, APIs, or web
scraping.
Clean the data by removing any irrelevant or inconsistent entries, handling missing
values, and dealing with outliers.
Preprocess the data by performing tasks like normalization, feature scaling, feature
engineering, and encoding categorical variables.
2. Model Development:
Choose an appropriate machine learning algorithm or a combination of algorithms
basedon the problem type (classification, regression, clustering, etc.) and the nature of
the data.
Split the preprocessed data into training and validation sets. The training set is used
to train the model, and the validation set is used to tune its parameters and evaluate
performance during development.
Define the model architecture or structure, including the number and type of layers
(in the case of neural networks) or the configuration of the algorithm.
Set hyperparameters, such as learning rate, regularization strength, and batch size,
which
4.5.2 Methodology-preprocessing:
The preprocessing step in machine learning involves several important tasks to prepare the
data formodel training. Let's break down each task:
1. Acquiring Dataset:
Determine the data sources that are relevant to your problem statement.
Gather the required data from these sources, such as databases, APIs, or web scraping.
Ensure that the collected data is in a structured format, such as CSV, JSON, or a database
table.
2. Handling Missing Values:
Identify any missing values in the dataset, represented as NaN (Not a Number) or null
values.
Decide on an appropriate strategy to handle missing values based on the nature of the data
and the missing data patterns.
Some common strategies include:
Removing the rows or columns with missing values if they are few and the loss of
information is acceptable.
Imputing the missing values by filling them with a statistical measure like the mean,
median, or mode of the respective feature.
Using more advanced imputation techniques such as regression or machine learning
algorithms to predict missing values.
3. Handling Outliers:
Detect and handle outliers, which are data points that significantly deviate fromthe normal
range or distribution of the dataset.
Visualize the data using techniques like box plots or scatter plots to identify potential
outliers.
Decide on an appropriate strategy based on the nature of the data and the specific problem:
Removing outliers if they are due to data entry errors or measurement issues and have
asignificant impact on the analysis.
Transforming the data using techniques like log transformation or winsorization to
reduce the impact of outliers.
Applying robust statistical techniques or algorithms that are less sensitive to outliers.
4. Feature Scaling:
Normalize or scale the features in the dataset to ensure that they are on a similar scale and
have comparable ranges.
Common techniques for feature scaling include:
Standardization (Z-score normalization): Transforming the data to have zero mean and
unit variance.
Min-max scaling: Scaling the data to a specific range, typically between 0 and 1.
Robust scaling: Scaling the data using statistical measures that are more resistant to
outliers.
Feature scaling is important to prevent features with larger magnitudes from dominating
thelearning process and to enable algorithms to converge faster.
5. Preprocessed Dataset:
After completing the above steps, you will have a preprocessed dataset ready for model
training.
This dataset should be cleaned, with missing values handled, outliers managed, and
featuresappropriately scaled.
It is advisable to save the preprocessed dataset separately for future reference and to
ensureconsistency during model development.
4.5.3 Modules
There are 3 modules in our project, farmer module, customer module and admin module.
Farmer module:
The above figure 4.2 is the farmer module. First the farmer has to signup/login to the portal.
Laterthe farmer will be redirected to his/her profile. The farmer can make use of several options
that areavailable after logging in to the portal. The various options the farmer can make use of
are prediction, recommendation, trade and tools. In prediction, farmer will be getting
predictions for crop, yield and rainfall. In the recommendation, the farmer will be getting
recommendations aboutcrop and fertilizers that can be used. In trade, the farmer can enter the
crops that he/she wishes to sell and then the farmer can view the crop stocks. The farmer will
also be having history of the sales. In tools, the farmer can make use of chatbot, news feed and
weather forecast. If farmer has any queries, then he/she can clarify the doubts through chatbot.
The farmer will be getting new updates related to agriculture through news feed.
Customer module:
The above figure 4.3 is the customer module. First the customer has to signup/login to the portal.
Later the customer will be redirected to his/her profile. The customer can make use of several
options that are available after logging in to the portal. The various options the customercan
makeuse of are buying of crops and crop stocks. In buy crops, the customer first has to addthe
crop whichhe/she wants to buy and later the farmer has to proceed with the payment. Afterthe
successful payment, the farmer will be getting the invoice of his/her payment. In crop stocks,the
farmer can see the available crops. With the help of the crop stocks the farmer can purchasethe
required crops.
Admin module:
The above figure 4.4 is the admin module. First the admin has to signup/login to the portal. Later
the admin will be redirected to his/her profile. The admin can make use of several options that are
available after logging in to the portal. The various options the admin can make use of are farmers
list, customers list, crop stock and queries. In farmers list, the admin will be having access to the
list of farmers who have registered to the portal. In customers list, the admin will be having access
to the list of customers who have registered to the portal. In crop stocks, the admin can see the list
of available crops which the customers can buy. In queries, the admin will be getting the queries
which the user of the portal has sent through the contact us option.
Chapter 5
RESULTS
Snapshots
email which is to be entered for confirmation, post which his profile will be visible.
Rainfall prediction will predict the rainfall for the particular region which is selected according
tothe inputs from the list. This will help farmers from incurring losses.
Feedback can also be given by the people who have used the service of this portal. They need
tofill in the above-mentioned details and submit it, which will be recorded.
Chapter 6
CONCLUSION AND FUTURE ENHANCEMENT
6.1 Conclusion
This paper presents the various machine learning algorithms for predicting the yield of the crop
onthe basis of weather and other conditions. This project develops a website for predicting crop
yield,weather, and fertilizer recommendation using machine learning algorithms. The decision
tree is found to provide the most accurate predictions for crop yield, weather, and fertilizer
recommendation. The prediction system takes the inputs from the user and provides the best
and most accurate predictive analysis for crop yield. The website also provides information on
the bestcrop that is suitable and also which particular fertilizers are required for that crop.
Results also revealed that the Random Forest classifier gives the highest weather prediction and
fertilizer recommendation accuracy. These will not only help farmers maintain the proper crop
supply to grow but also in cost management also it can be helpful. It will empower farmers to
make informed decisions regarding crop selection, fertilizer usage, and overall cost
management. The robustness and reliability of our system have been validated through
experiments conducted on a reliable dataset.
REFERENCES
[1] Prameya R Hegde, Ashok Kumar A R, “Crop Yield and Price Prediction System for
Agriculture Application”,International Journal of Engineering Research & Technology
(IJERT) Vol. 11 Issue 07, July-2022. Shangping Wang, Xu Wang, and Yaling Zhang, “A
Secure Cloud Storage Framework withAccess Control based on Blockchain”.
[2] E. Manjula, S. Djodiltachoumy, “Model for Prediction of Crop Yield”, International Journal
of Computational Intelligence and Informatics, Vol. 6: No. 4,March 2017
[3] Dr. Y. Jeevan Nagendra Kumar, V. Spandana,V.S. Vaishnavi,K. Neha, “Supervised
Machine learning Approach for Crop Yield Prediction in Agriculture Sector”, (ICCES
2020)IEEE Xplore ISBN: 978-1- 7281-5371-1.
[4] R.B.Saroo Raj, Ankush Rai, Ronit Dharmik, Siddharth Bhattacharjee,”Weather
Forecasting System using Machine Learning”, International Journal of Emerging
Technologies in Engineering Research (IJETER),Volume 6, Issue 10, October(2018).
[5] Andrew Crane-Droesch,”Machine learning methods for crop yield prediction and climate
change impact assessment in agriculture”, Environ. Res. Lett. 13 (2018)114003.
[6] Potnuru Sai Nishant, Pinapa Sai Venkat, Bollu Lakshmi Avinash3, B. Jabber. “Crop Yield
Prediction based on Indian Agriculture using Machine Learning”, International Conference
for Emerging Technology (INCET) Belgaum, India. Jun 5-7, 2020
[7] Shivani Turamari, Pooja Patil, Mallappa Hallad, Manjunath Bilagi, “Weather Forecast
Prediction for Agriculture”, (IJERT) ISSN: 2278-0181 ,Special Issue - 2022.
[8] Pallavi Shankarrao Mahore, Dr. Aashish A. Bardekar, “Crop Yield Prediction using
DifferentMachine Learning Techniques”, International Journal of Scientific Research in
Computer Science, Engineering and Information Technology ISSN : 2456- 3307,Volume
7, Issue 3,May-June- 2021.