Final Year
Final Year
Bachelor of Engineering
by
Supervisor:
Prof. Teena Varma
This is to certify that the project Synopsis entitled “Krishi Samridhi” is a bonafide work
of
submitted to the University of Mumbai in partial fulfillment of the requirement for the award
of the degree of “Bachelor of Engineering” in “Computer Engineering”.
images/Internal Examiner.png
————————————–
(Prof. Teena Varma)
Supervisor/Guide
Examiner:
images/External_Examiner.pn
images/Internal Examiner.p
2. Teena Varama
(Internal Examiner)
Date:
Place:
Declaration
I declare that this written submission represents my ideas in my own words and where others’
ideas or words have been included, I have adequately cited and referenced the original sources.
I also declare that I have adhered to all principles of academic honesty and integrity and have
not misrepresented or fabricated or falsified any idea/data/fact/source in my submission. I
understand that any violation of the above will be cause for disciplinary action by the Institute
and can also evoke penal action from the sources which have thus not been properly cited or
from whom proper permission has not been taken when needed.
images/Sign.jpg
———————————————
(Anujeet Kunturkar (30))
images/Sign.jpg
———————————————
(Mervis Mascarenhas (34))
images/Sign.jpg
———————————————
(Nilesh Mishra (35))
images/Sign.jpg
———————————————
(Maheshwaran Nadar (37))
Date:
Abstract
1 Introduction 9
1.1 Problem Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.2 Aims and Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.2.1 Aim: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.2.2 Objectives: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.3 Scope of the Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2 Review of Literature 11
2.1 Survey of Existing Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2 Limitations of Existing Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.3 Literature Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3 Description 13
3.1 Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.1.1 Use Case Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.1.2 Feasibility Study . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2 Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2.1 Data Collection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2.2 Data Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2.3 Analysis and Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2.4 Flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.3 Implementation Methodology . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.3.1 Problem Identification . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.3.2 Data Collection and Preprocessing . . . . . . . . . . . . . . . . . . . . . 18
3.3.3 Leaf Disease Detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.3.4 Crop Recommendation System . . . . . . . . . . . . . . . . . . . . . . . 19
3.4 Details of Hardware and Software . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.4.1 Firebase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.4.2 VGG19 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.4.3 YOLOv8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.4.4 Support Vector Machine (SVM) . . . . . . . . . . . . . . . . . . . . . . . 20
3.4.5 Random Forest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3.4.6 Logistic Regression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.4.7 Naive Bayes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5
3.4.8 Decision Tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.4.9 NPK Sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.4.10 Temperature and Humidity Sensor . . . . . . . . . . . . . . . . . . . . . 21
3.4.11 Soil Moisture Sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5 Conclusions 24
6 Acknowledgement 25
6
List of Figures
7
Notation and Nomenclature
D Discriminator Network
G Generator Network
8
Chapter 1
Introduction
Agriculture plays a pivotal role in feeding the global population, particularly in rural areas
where farming is a primary source of livelihood. However, farmers face significant challenges,
such as the inability to detect crop diseases early, poor soil health management, and the lack of
reliable data-driven crop recommendations. These factors severely impact crop yield and overall
productivity, resulting in economic losses. To address these issues, the Krishi Samriddhi Project
introduces a comprehensive technological solution that integrates IoT-based soil monitoring,
leaf disease detection, and machine learning-driven crop recommendations, providing farmers
with actionable insights to improve agricultural output.
9
1.2.2 Objectives:
• Implement a deep learning model (VGG19) for early classification of leaf diseases.
• Deploy IoT sensors to continuously monitor soil conditions, including NPK levels, mois-
ture, temperature, and humidity.
• Perform a comparative study of machine learning models to recommend the best crop,
with Random Forest used for final recommendations based on its high accuracy.
• Provide farmers with real-time data and actionable insights through a user-friendly plat-
form for better crop management decisions.
10
Chapter 2
Review of Literature
• Limited Data Utilization: Current systems do not fully leverage IoT data in combination
with ML models for predictive analytics or crop recommendations.
• Delayed Response Time: Existing systems often fail to deliver real-time recommendations,
which can lead to reduced farm productivity.
11
2.3 Literature Table
3.1 Analysis
In the previous sections, we have defined our problems clearly and surveyed the existing liter-
ature and approaches. Now we discuss how we analyzed this problem from our prospective.
13
3.1.2 Feasibility Study
Here we discuss if we can achieve the planned aims of our project while staying within the
constraints of our resources.
• Data labeling can be costly and time-consuming, especially for plant disease detection
where expert knowledge is required to correctly label various diseases. We might need to
rely on agricultural scientists or AI-based pre-labeling methods, which can also require
manual verification.
• For the crop recommendation system and soil moisture predictions, moderate-sized datasets
can provide good results if the model is well-tuned. For plant disease detection, we re-
quire high-quality images and labeled data to improve accuracy, as the problem is more
complex.
14
3.1.2.2 Cost of wrong Prediction
• For plant disease detection, a wrong prediction can lead to incorrect treatments, poten-
tially harming crops. The system should aim for at least 8/10 correct predictions to
ensure that farmers can trust its recommendations.
• For crop recommendation, incorrect predictions could lead to poor yields, and the system
should also aim for 7-8/10 accuracy to be effective.
• For soil moisture monitoring, the impact of incorrect predictions is lower, but incorrect
readings can lead to inefficient irrigation, so a 6/10 accuracy may suffice in some cases.
• While crop recommendation and soil moisture analysis are well-researched areas, plant
disease detection using machine learning, especially tailored for specific regional crops,
still lacks extensive literature. However, the research community is growing rapidly in
this area, providing a foundation for further work.
• Inference: Once deployed, the models should be optimized to run on low-resource devices.
The aim is to make the Krishi-Samriddhi platform accessible to farmers using smartphones
or low-cost computing devices.
15
3.2 Design
The design of the Krishi Samriddhi Project integrates advanced hardware and software com-
ponents to provide a comprehensive solution for sustainable farming. The system is designed
to monitor environmental conditions, detect plant diseases, and recommend suitable crops for
optimal yield. This section outlines the key design elements that form the backbone of the
project.
• YOLOv8 Object Detection: The diseased areas on the leaves are detected using the
YOLOv8 model. It performs real-time object detection, allowing the system to not only
classify the disease but also localize the infected regions.
• Crop Recommendation System: Based on the data collected from the sensors (such
as NPK levels, soil moisture, temperature, and humidity), the system uses a compara-
tive study of machine learning models to recommend the most suitable crops. Random
Forest, which provided the highest accuracy in the study, is used to make the final crop
recommendations.
16
3.2.4 Flowchart
In this section, we explain the high-level steps involved during the various phases of our project
using flowcharts.
Figure 3.2: Flowchart explaining the algorithm for training our model
17
3.3 Implementation Methodology
The Krishi Samriddhi Project aims to tackle the challenges faced by farmers due to crop
diseases, unpredictable weather, and inadequate crop selection by utilizing IoT-based sensors
and machine learning models. Our approach integrates advanced technologies to provide real-
time monitoring, disease detection, and crop recommendations, which empower farmers with
data-driven insights to optimize their agricultural practices.
• Data Storage All sensor data and images were stored in a centralized Firebase database,
ensuring scalable and real-time data access for further analysis.
18
• Trainin: The model was trained on a large dataset consisting of both healthy and diseased
leaf images.
• Classification: The model predicts whether a leaf is healthy or infected based on the
input images.
• YOLOv8 Object Detection: The object detection model was further applied to localize
the diseased areas in the infected leaves. YOLOv8, due to its fast real-time detection
capabilities, allowed us to not only classify the disease but also pinpoint the exact areas
affected, helping farmers apply targeted interventions.
• Data Analysis: We collected environmental data (NPK levels, soil moisture, tempera-
ture, and humidity) from the sensors.
• Model Training: Five machine learning models — Support Vector Machine (SVM),
Random Forest, Logistic Regression, Naive Bayes, and Decision Tree — were trained on
historical crop yield data and corresponding environmental conditions.
• Prediction: The Random Forest model analyzed the sensor data and predicted the most
suitable crops for a given field, taking into account the soil health and environmental
conditions.
19
3.4 Details of Hardware and Software
The hardware with which we initially started was an AMD Radeon R5 M330 2GB GPU, but
as the training of our model was very resource heavy, it was putting a strain on our hardware,
hence we decided to use the GPU provided by Google Colaboratory, along with our hardware
to reduce our training time and not put too much load on our hardware.
3.4.1 Firebase
All sensor data, including NPK values, temperature, humidity, and soil moisture levels, are
stored in Firebase. This cloud platform provides real-time data access, enabling farmers to
analyze their data and make decisions accordingly.
3.4.2 VGG19
VGG19 is a deep learning model used to classify leaf diseases. By training the model on large
datasets of leaf images, the system can accurately identify diseases in crops. Early detection
enables quick intervention, preventing significant damage and loss.
3.4.3 YOLOv8
YOLOv8 performs object detection on leaf images, identifying areas affected by disease. It
provides real-time detection with high precision, allowing farmers to detect issues early and
treat them before they spread, thereby reducing crop damage.
20
3.4.6 Logistic Regression
Logistic Regression is a statistical model that uses a logistic function to model binary-dependent
variables. In the context of crop recommendation, it helps in predicting whether a specific crop
is suitable for the given environmental and soil conditions. While it provides good results for
binary decisions, its performance was lower compared to Random Forest in this case.
21
Chapter 4
Implementation Plan for Next
Semester
• Tasks:
– Design APIs for fetching and sending real-time data (e.g., soil moisture, tempera-
ture).
– Develop the logic to run the crop recommendation model based on real-time data.
– Secure the backend using authentication (JWT, OAuth) for admin and user access.
• Tech Stack:
• Tech Stack:
– Run multiple tests in varying conditions (different soil moisture levels, temperatures).
– Debug and optimize both hardware and software for real-world performance.
– Gather user feedback for UI/UX improvements.
22
4.3 Intrusion Detection System:
• Add an IDS to monitor and improve farm security.
• Use IoT sensors and machine learning algorithms to detect unauthorized access or unusual
activities.
• Provide real-time alerts through the existing web application for easy monitoring.
23
Chapter 5
Conclusions
24
Chapter 6
Acknowledgement
We sincerely thank our mentor and guide Prof. Teena Varma for her constant guidance and
help in our research. Without her tutelage, we wouldn’t be able to complete this project. She
encouraged us to work on this project.
We are also grateful to our college for giving us this opportunity to work with them and
providing us with the necessary resources for the project. Working on this project also helped
us to do lots of research and we came to know about many new things.
We are immensely grateful to all involved in this project as without their inspiration and
valuable suggestions it would not have been possible to develop this project within the pre-
scribed time.
images/Sign.jpg
———————————————
(Anujeet Kunturkar (30))
images/Sign.jpg
———————————————
(Mervis Mascarenhas (34))
images/Sign.jpg
———————————————
(Nilesh Mishra (35))
images/Sign.jpg
———————————————
(Maheshwaran Nadar (37))
25