0% found this document useful (0 votes)
45 views43 pages

Crop Recommendation System Django

The Crop Recommendation System is a machine learning project using the Random Forest Classifier to provide farmers with accurate crop recommendations based on soil and environmental conditions. It features user and admin modules for personalized recommendations, prediction history, and user management, aiming to enhance agricultural productivity and sustainability. The system leverages historical data and advanced algorithms to assist farmers in making informed decisions, optimizing resource utilization, and minimizing environmental impact.

Uploaded by

Saurabh Rajput
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views43 pages

Crop Recommendation System Django

The Crop Recommendation System is a machine learning project using the Random Forest Classifier to provide farmers with accurate crop recommendations based on soil and environmental conditions. It features user and admin modules for personalized recommendations, prediction history, and user management, aiming to enhance agricultural productivity and sustainability. The system leverages historical data and advanced algorithms to assist farmers in making informed decisions, optimizing resource utilization, and minimizing environmental impact.

Uploaded by

Saurabh Rajput
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 43

CROP RECOMMENDATION

SYSTEM
ABC UNIVERSITY

Guided By: Presented By:


 Prof. AAAAAAAAAAA BBBBBBBBB
CCCCCCCCC
DEVELOPERS
BBBBBBBBB
cccccccccccccc
Introduction
The Crop Recommendation System is a Python
Django-based machine learning project that
utilizes the Random Forest Classifier algorithm to
provide accurate crop recommendations to
farmers based on soil and environmental
conditions. It consists of user and admin modules,
allowing users to receive recommendations, view
prediction history, and manage their profiles,
while administrators can access analytics and
manage users. The system uses parameters like
nitrogen, phosphorous, potassium levels,
temperature, humidity, pH, and rainfall to
determine suitable crops. Its goal is to help
farmers make informed decisions and maximize
Problem Definition
The Crop Recommendation System addresses
the challenge of providing accurate and
personalized crop recommendations to
farmers based on soil and environmental
conditions. By leveraging the Random Forest
Classifier algorithm and historical data, the
system aims to overcome traditional
limitations and assist farmers in making
informed decisions. Its objective is to
optimize agricultural productivity, minimize
resource wastage, and contribute to
sustainable practices in the agriculture
industry.
Objective
The Crop Recommendation System using
Random Forest Classifier aims to achieve
accurate crop selection, enhance crop yield,
promote sustainable farming practices, serve
as a decision support tool, provide a user-
friendly interface, and ensure scalability and
adaptability. By leveraging historical data and
advanced algorithms, the system provides
precise recommendations based on soil and
environmental parameters, helping farmers
make informed decisions for improved
productivity and sustainability.
Need of The System
The need for the Crop Recommendation System
using Random Forest Classifier arises from the
challenges faced by farmers in making informed
decisions about crop selection. Traditional
methods often lack accuracy and fail to consider
various factors affecting crop productivity. By
leveraging machine learning techniques, the
system provides precise and data-driven
recommendations based on factors such as soil
composition, temperature, humidity, pH level,
and rainfall. This helps farmers optimize resource
allocation, improve crop yield, minimize
environmental impact, and make informed
decisions for sustainable agricultural practices.
The system serves as a valuable tool to enhance
productivity, profitability, and sustainability in the
Purpose
The purpose of the Crop Recommendation
System using Random Forest Classifier is to
assist farmers in making informed decisions
regarding crop selection. By leveraging machine
learning algorithms and analyzing historical data,
the system predicts and recommends suitable
crop choices based on various factors such as soil
composition, temperature, humidity, pH level,
and rainfall. The system aims to improve
agricultural productivity, optimize resource
utilization, minimize crop failure, and promote
sustainable farming practices. By providing
accurate and personalized crop
recommendations, the system empowers farmers
to make effective decisions, maximize their
Project Scope
The Crop Recommendation System using
Random Forest Classifier has a broad scope that
includes providing farmers with a user-friendly
interface to input their soil and environmental
parameters. It considers various factors such as
nutrient levels, temperature, humidity, pH, and
rainfall to generate accurate and personalized
crop recommendations. The system can handle
large datasets, store historical data for analysis,
and has the potential for future expansion with
additional features. Its aim is to enhance farming
practices, increase crop yield, optimize resource
utilization, and promote sustainable agriculture.
Proposed System
The proposed Crop Recommendation System
using Random Forest Classifier aims to
overcome limitations by utilizing machine
learning algorithms to provide accurate and
personalized crop recommendations. It
analyzes data such as soil nutrients,
temperature, humidity, pH, and rainfall to
train a Random Forest Classifier model. Users
can access the system through a user-friendly
web interface, input their parameters, and
receive customized crop recommendations.
The system also includes a prediction history
feature for monitoring performance. The
objective is to enhance crop productivity,
User Modules:
 Signup: Users can create a new account by providing their
personal details, such as name, email, and password.
 Login: Registered users can log in to the system using
their credentials to access personalized features.
 Crop Recommendation Prediction: Users can input
various parameters such as nitrogen, phosphorous,
potassium levels in the soil, temperature, humidity, pH
value, and rainfall to get crop recommendations based on
the Random Forest Classifier algorithm.
 View Prediction History: Users can view their past crop
recommendation predictions, including the recommended
crops and relevant details.
 Edit Profile: Users have the option to update their profile
information, such as name, contact details, or any other
relevant information.
 Change Password: Users can change their account
password to enhance security.
 Logout: Users can log out of the system to end their
Admin Modules:
Login: The admin will have a login functionality to
access the admin dashboard and perform
administrative tasks.
Dashboard: The admin will have a dashboard that
provides an overview of important information such
as user counts, recommendation prediction results
count, and other relevant statistics.
View Prediction History: The admin will be able
to view the prediction history, which includes the
crop recommendations made for different users
over time.
View Registered Users: The admin can view the
list of registered users in the system, including
their details such as name, contact information, and
other relevant information.
Change Password: The admin will have the ability
SOFTWARE USED
PYTHON INTERPRETER
PYCHARM IDE (INTEGRATED DEVELOPMENT
ENVIRONMENT)
DJANGO FRAMEWORK
NOTEPAD++ OR ANY OTHER TEXT EDITOR
CHROME OR ANY OTHER BROWSER
FRONTEND (LANGUAGE USED)
HTML (HYPERTEXT MARKUP LANGUAGE)
CSS (CASCADING STYLE SHEET)
BOOTSTRAP (FRAMEWORK OF HTML,CSS
AND JS)
BACKEND
PYTHON DJANGO
SQLITE (DATABASE)
SYSTEM DESIGN

Unified Modeling Language:


UML stands for Unified Modeling Language. It is a
third generation method for specifying, visualizing
and documenting the artifacts of an object oriented
system under development. Object modeling is the
process by which the logical objects in the real
world (problem space) are represented (mapped)
by the actual objects in the program (logical or a
mini world). This visual representation of the
objects, their relationships and their structures is
for the ease of understanding. This is a step while
developing any product after analysis.
The Unified Modeling Language encompasses
a number of models.
Use case diagrams
Class diagrams
Sequence diagrams
Use Case Diagram:
Use case diagram consists of use cases and
actors and shows the interaction between
them. The key points are:
The main purpose is to show the interaction
between the use cases and the actor.
To represent the system requirement from
user’s perspective.
The use cases are the functions that are to be
performed in the module.
An actor could be the end-user of the system or
an external system.
Use Case Diagrams – Admin :

Admin
Dashboard

View Prediction Results


History

Manage Reg. Users


(View / Delete)

Change Password
Admin

Logout
Use Case Diagrams User:

Crop
Recommendation
Prediction

View prediction
Results History

Edit Profile
(Update)

Change Password

User
Logout
Sequence Diagram:

The purpose of sequence diagram is to show


the flow of functionality through a use case.
In other words, we call it a mapping process
in terms of data transfers from the actor
through the corresponding objects.
SEQUENCE DIAGRAM
Sequence Diagram For Administrator:-
Data Flow Diagram(DFD)
Data Flow Diagram(DFD)
ER Diagram
SCREEN SHOTS – Home Page
User Registration Page
USER LOGIN PAGE
USER HOME PAGE
CROP RECOMMENDATION PAGE
PREDICTION RESULTS PAGE
Change Password Page
Edit Profile Page
ADMIN LOGIN PAGE
ADMIN HOME PAGE
VIEW ALL USERS PAGE
VIEW ALL PREDICTION HISTORY PAGE
FUTURE SCOPE
The future scope of Crop Recommendation
Systems using Random Forest Classifier includes
improving accuracy through advanced algorithms
and technologies, personalizing recommendations
based on individual preferences and farm
conditions, integrating climate change adaptation
strategies, developing mobile applications for
enhanced accessibility, fostering knowledge
sharing and collaboration, expanding to different
regions and crops, and incorporating decision
support tools. These advancements aim to
optimize agricultural practices, increase
productivity, and address emerging challenges in
the agricultural sector.
CONCLUSION
In conclusion, the Crop Recommendation System using
Random Forest Classifier offers an efficient and effective
solution for assisting farmers in making informed
decisions about crop selection. By leveraging machine
learning algorithms and historical data, the system
provides personalized crop recommendations based on
various soil and environmental factors. It simplifies the
decision-making process, enhances productivity, and
optimizes resource utilization. The system's user-friendly
interface and easy accessibility make it a valuable tool
for farmers, enabling them to improve their agricultural
practices and achieve better crop yields. As technology
advances and more data becomes available, there is a
great potential for further enhancing the accuracy and
performance of Crop Recommendation Systems,
ultimately contributing to sustainable farming practices
and agricultural growth.
BIBLIOGRAPHY
 FOR PYTHON INSTALLATION
 https://www.python.org

 FOR HTML , CSS AND PYTHON BASICS
 www.w3schools.com
 www.javatpoint.com
 https://www.geeksforgeeks.org/python-django/
 https://panjwanitutorials.com/

 REFERENCE BOOKS

 Two scoops of Django for 1.11 by Daniel Greenfeld’s and


Audrey Greenfield
 Lightweight Django by Elman and Mark Lavin
THANKYOU

You might also like