Mega Project Final Report
Mega Project Final Report
SUSTAINABLE AGRICULTURE
A Project Report
Bachelor of Engineering
in
by
Date:
Place:
Guide HOD
Dr. V. R. Ghorpade
ACKNOWLEDGEMENT
1 INTRODUCTION 01
2 LITERATURE SURVEY 03
3.4 METHODOLOGIES 10
4 SOFTWARE DESIGN 11
5 IMPLEMENTATION DETAILS 17
5.2 SNAPSHOTS 21
6 EXPERIMENTAL RESULT AND 30
TESTING
8 REFERENCE 33
9 PUBLICATIONS 35
11 FUNDING LETTER 38
12 COMPLIETION LETTER 39
FIGURES TABLE
Figure Number Figure Description
Fig1 System Architecture Diagram
Fig3 DFD 0
Fig4 DFD 1
1. INTRODUNCTION
“Ecofarm: Intelligent analytics for sustainable agriculture” is a concept of farming
management using modern technology to increase the quantity and quality of agricultural
products, which is a new trend in Agriculture Technology. Due to population growth and demand
for resources, agriculture plays a major vital role. Building a “Ecofarm: Intelligent analytics for
sustainable agriculture” will be able to act as a major role in the agriculture economy. A Ecofarm:
Intelligent analytics for sustainable agriculture that builds an automated and transparent
agricultural process through the internet using various sensors and application software. Project
proposes an innovative smart solution using “Automated TechAgri App”.
The app contains the soil moisture, weather forecast, Agri Robot, pH level of soil and
plant disease detection. In soil moisture, it connects to the soil moisture sensor to measure the
amount of water in the soil. In traditional method seeding take lot of time and the Laborer’s had
to put more energy either using some animals or equipped tools or Tractors or some other
vehicles which used to give a lot of sound and fuel. To overcome this problem, we create Agri
robot seeder.
Plant disease detection using machine learning is a identify and detect diseases in plants.
Machine learning algorithms analyze images of plants to identify disease symptoms and classify
the type of diseases. Machine learning algorithms like KNN or neural networks are used to
classify plants. This technology can help farmers and gardeners detect diseases early and take
care of their plants and prevent diseases from spreading.
Creating a robot that navigates using GPS waypoints involves integrating hardware and
software components to enable the robot work automatically.
This smart farming approach improves efficiency, conserves resources, and ultimately benefiting
both farmers and the environment.
Furthermore, we will explore how smart farming techniques can be applied to cutter,
seeder, spray, and plug operations to improve efficiency, reduce waste, and increase overall crop
yields. By automating these processes and optimizing them based on real-time data, farmers can
save time and resources while maximizing their profits. Overall, this thesis will provide a
comprehensive overview of how smart farming using IoT and deep learning can revolutionize the
agriculture industry, with a focus on cutter, seeder, spray, and plug operations.
2. LITERATURE SURVEY
Today’s world, we have advanced technologies that can produce enough food to meet
society's demands. However, ensuring the safety and security of our food supply remains a
challenge due to factors such as climate change, declining pollinators, and plant diseases.
During pandemics like COVID-19, we rely on technology to address issues and reduce disease
transmission. Plant diseases pose a significant threat, potentially leading to droughts and
famines, causing substantial losses in commercial farming. Technologies like IoT and Machine
Learning play a crucial role in fighting these diseases.
This paper presents a Machine Learning-based solution to detect plant diseases. The
process involves three stages: Identity, Analysis, and Verification using an available database.
Researchers and scientists face various challenges when analyzing leaf diseases, including the
need for high-quality leaf images, publicly available datasets and the complexity of disease
detection due to variations in leaf colour and different plant diseases [1].
In this research paper, the focus is on the importance of plants as a vital source of energy
for humans and the significant impact of plant diseases on crop production and the economy.
Plant diseases can come to at any stage between sowing and harvesting, leading to losses.
Traditional methods of disease identification using larger fields due to their manpower,
inaccuracy, and high costs. To address this, machine learning techniques are applied to detect
diseases in plant leaves by analyzing various data aspects and classifying them into predefined
categories. [2]. The research explores different types of plant diseases and classification
techniques in machine learning used to identify diseases in various plant leaves. Key terms
include Artificial Neural Network, Classification, Disease Detection, Support Vector Machine,
and Machine Learning .
The research identifies the challenges in the agricultural field in India, emphasizing the
role of agriculture in the country's development. Plant leaf diseases are recognized as a major
factor contributing to crop production losses. The traditional method of visual identification is
found to be insufficient due to its manpower and high cost. To overcome these challenges,
machine learning is proposed as a reliable method for detecting plant leaf diseases caused by
fungi, bacteria, and viruses.
Plant diseases compose a great threat to global food security. It requires experts to
accurately identify if the plant is healthy or not and identify the type of infection. Deep learning
techniques have recently been used to identify and diagnose diseased plants from digital images
to help automate plant disease diagnosis and help non-experts identify diseased plants. In this
paper, an end-to-end deep learning model is developed to identify healthy and unhealthy corn
plant leaves the proposed model utilizes two pre-trained convolutional neural networks (CNNs),
EfficientNetB0, and DenseNet121, to extract deep features from the corn plant images. The
proposed model is able to achieve a classification accuracy of 98.56% which shows the
superiority of the proposed model over ResNet152 and InceptionV3 that achieved a classification
accuracy of 98.37% and 96.26% respectively.
Food security is threatened by many factors, including the decline in pollinators, climate
change, plant diseases, and others. Plant diseases compose a threat to global food security and
smallholder farmers. Hence, rapid and accurate methods of identifying plant diseases are needed
to do the appropriate measures [3].
Plant disease detection is an important area of deep learning which has been addressed by
many recent methods. The system is trained and evaluated on two plant disease datasets i.e.,
PlantVillage (a publicly available dataset) and pepper disease dataset [4].
The pepper dataset is contains images from different parts of the plant such as the leaf,
pulp, and stem. The proposed system has dominated the previous works on the Plant Village
dataset and achieved 99% and 99.69% accuracy on the Pepper dataset and Plant Village datasets,
respectively.
The app contains the soil moisture, weather forecast, Agri Robot and plant disease
detection. In soil moisture, it connects to the soil moisture sensor to measure the amount of water
in the soil [13]. In traditional method seeding take lot of time and the Labourer’s had to put more
energy either using some animals or equipped tools or Tractors or some other vehicles which
used to give a lot of sound and fuel. To overcome this problem, we create Agri robot seeder. We
chose the topic of “Ecofarm: Intelligent analytics for sustainable agriculture” for our project for
several reasons. Ecofarm involves using advanced technologies to make agriculture more
efficient and productive. In our project, we focused on integrating different module such as a
cutter, sprayer, seeder, and soil moisture and plant disease detection using machine learning. All
of this module information is displayed in a user-friendly Android app.
The cutter helps harvest crops more efficiently and saving time. The sprayer makes sure
that fertilizers and pesticides are applied accurately. The seeder helps plant seeds accurately for
suitable growth of the plant. The soil moisture sensor provides real- time data on moisture level
in the soil [14]. By integrating all of these modules into our project, we aim to make farming
easier and more accessible for farmers. Our Android app provides a simple interface that allows
farmers to control and monitor these modules remotely through their smartphones. They can
receive real-time data and analysis for managing their crops effectively. This integration
optimizes resource usage, increases productivity, and helps farmers make informed decisions.
3. PROPOSED WORK
There are no users who don’t want to add more features over the existing system which
gives more elasticity and runs with few general applications like a smart-phone. Our system is
designed in such a way that abstains from the drawbacks of the existing system. The developed
method gives more security, comfort, and flexibility. The aim of our proposed method is to
design and to implement a low cost and open-source Smart farming that’s able to lead most of
the farms and sustain the Smart Farming. To use wireless reliable technology to interconnecting
many modules to the server of the Smart Farming, as a result, the proposed system gives more
flexibility. This system will reduce the expansion cost; will add to the elasticity of advancement.
Figure shows the block diagram of our proposed method.
Smart farming using IoT and ML is to address the challenges faced by traditional
agriculture practices, such as inefficient resource management, limited visibility into crop health
and environmental conditions, and the need for manual intervention in various farming
processes. These challenges often result in reduced yields, wasted resources, increased costs,
and potential crop losses. The goal is to leverage IoT technologies and machine learning
algorithms to collect real-time data from sensors and devices placed in the field, analyze this
data, and gain insights to optimize farming operations. This includes monitoring soil moisture
levels, temperature, humidity, and other environmental factors, as well as detecting and
identifying diseases, pests, and nutrient deficiencies. By combining IoT and machine learning,
the aim is to improve decision-making, optimize resource usage for irrigation and fertilization,
predict and prevent crop diseases and pests, enhance overall crop health, and ultimately increase
agricultural productivity and sustainability.
The overall system architecture is depending on the Node MCU, Android app, and cloud
connection system. The first block is Android App. It receives input, user input. The UI includes
a control, and monitoring system page that allow users to remotely control and monitor, sensor
and Agri Robot that includes the seeder, sprayer, plowing and cutter. Once the user gives the
input via the android application process is complete, then the output is uploaded to Firebase
and processed by Node MCU to operate. The next block is the Smart Farming architectures, the
Node MCU as the main board. Each data read by the sensor is progressed by the board and
uploaded to Firebase via the board’s built-in Wi-Fi. The remote-control system and home
automation architecture are applied two-way wireless communication with the Firebase Real-
time Database to update and retrieve the status of the irrigation system and Agri robot.
• Dashboard Module
• Sensor Data
• Agri Robot
• Irrigation System
To access our Agri robot we have to develop android application let us see various
modules of android application.
In User Login and Registration Module User have to login in the app through the
Email and Password, if user is new then user can create an account and register in app. On
this page another option is also available that is change app language user can change
language in Marathi and Hindi also. This the benefit of our application.
Dashboard Module
On the Dashboard Module there are four modules are present that is Plant Disease
Detection Module, Sensor Data, Agri Robot, Irrigation System.
In Plant Disease Detection Module first our Agri robot capture the live image of the
crop or plant then it displays on our application then Disease Detection Module Detect the
Disease of crop and also detect the symptoms of the disease and its display on our
application.
Sensor Data
In Sensor Data Soil Moisture Sensor and DHT11 Sensor are Present. Soil Moisture
Sensor gives Data about soil moisture of the field and its also display the content present in
the soil. DHT11(Temperature and Humidity Sensor) gives the information of Realtime
weather forecast.
Agri Robot
In Agri Robot Module there are four operations are present that is Seeder, Spray,
Cutter, ploug. User can operate Seeder, Spray, and Cutter using on and off button and ploug
using up and down button.
Our Agri Robot Work also Automatically and Manually. In Manual Mode there is
live status of the field is display on our application and we can operate our Agri Robot using
Forword, backward, up and down button.
Irrigation System
When Soil Moisture of the field is low then we can irrigate now.
3.4 Methodologies
The basic functionalities of the Smart Farming Robot using IoT and ML. The overall
system architecture for Smart Farming Robot using IoT and ML depends on the Node MCU,
Android app, and cloud connection system. Plant disease detection is a valuable application
of AI and computer vision, and deep learning models can be effective in identifying diseases
from images of plants.
NodeMCU
In this Smart Farming, we will control irrigation system and Agri using “Automated
TechAgri” android Application. The WIFI Module NodeMCU ESP8266 will receive
commands from the smartphone wirelessly through the internet.
Android app
With the help of “Automated TechAgri” android application, we can control all
devices and Sensor through the database. In Smart Farming we use firebase database.
Firebase database helps to build bridge between android application and micro-controller i.e.,
Node MCU.
Firebase
Google Colab
Google Colab is a cloud-based development platform that allows users to write and
execute Python code in a browser, with powerful support for machine learning and data
analysis.
4. SOFTWARE DESIGN
4.1 Requirement Analysis
Software Requirements
• Database - Firebase.
Hardware Requirements
• Ram - 8 GB
• HDD - 256 GB
Components
• Micro-Controller - Node-MCU
• Microprocessor - Raspberry Pi
DFD’s
Fig 3: Level 0
Fig 4: Level 1
Block Diagram
5. IMPLEMENTATION DEATAIL
5.1 Technologies used for the implementation
Google Colab
Google Colab is a free cloud service offered by Google that lets you run Python code
in a Jupyter notebook environment without having to set up and manage an environment on
your local machine. It provides access to GPUs and TPUs for free, which can be very useful
for running deep learning models and other computationally intensive tasks. It also allows for
easy collaboration with others by sharing notebooks and code.
Cloud
A cloud platform is used to store and retrieve live information from the sensors. It
facilitates remote monitoring and access to system data The cloud" refers to servers that are
accessed over the Internet, and the software and databases that run on those servers. Cloud
servers are located in data center’s all over the world. By using cloud computing. users and
companies do not have to manage physical servers themselves or run software applications
on their own machines.
The cloud enables users to access the same files and applications from almost any
device. because the computing and storage takes place on servers in a data center, instead of
locally on the user device. Thing Speak Cloud is a popular platform in the field of lot
(Internet of Things) that provides data storage, visualization, and analysis capabilities It
offers a cloud-based infrastructure to collect, store, and analysis data from various IoT
devices and sensors. Thing Speak is specifically designed to handle time-series data, which
makes it suitable for applications that involve monitoring and tracking changes over time
Android App
Java
Arduino IDE
The Arduino Software (IDE) makes it easy to write code and upload it to the board
offline. We recommend it for users with poor or no internet connection. This software can be
used with any Arduino board.
There are currently two versions of the Arduino IDE, one is the IDE 1.x.x and the other is
IDE 2 x. The IDF. 2.x is new major release that is faster and even more powerful to the IDE
1xx. In addition to a more modern editor and a more responsive interface it includes
advanced features to help users with their coding and debugging. Arduino Software (IDE) -
connects to the Arduino boards to upload programs and communicate with them. Programs
written using Arduino Software (IDE) are called sketches. These sketches are written in the
text editor and are saved with the file extension ino.
XML
XML (Extensible Markup Language) is a markup language that defines a set of rules
for encoding documents in a format that is both human-readable and machine-readable. XML
is commonly used for storing and exchanging data on the internet and in other applications. It
is a hierarchical structure where data is stored in a tree-like format with nested elements. It
uses tags to define the structure of the data, similar to HTML. It is extensible, meaning that
you can define your own tags and attributes to suit your specific needs. It is text-based,
making it easy to read and write by humans.
XML is often used in web development for storing configuration settings, data
exchange between different systems, and in conjunction with other technologies such as
XSLT for transforming data. It is a versatile and widely supported format that is used in a
variety of applications.
Embedded C
Embedded C programming focuses on writing code that is efficient and optimized for these
constraints. Real-time constraints: Many embedded systems have real-time requirements,
meaning that they must respond to inputs within a specified time frame. Embedded C
programming allows developers to write code that meets these timing constraints.
Python
Python is a versatile and high-level programming language that is known for its
simplicity, readability, and flexibility. It is widely used in various fields such as web
development, data analysis, artificial intelligence, scientific computing, and automation. Easy
to learn: Python has a clean and easy-to-understand syntax, making it an ideal language for
beginners to learn programming. Interpreted: Python is an interpreted language, which means
that you can run code directly without the need for compilation. Extensive libraries: Python
has a vast collection of standard libraries and third-party libraries that provide pre-written
code to perform various tasks, making development faster and easier.
Main Page
To access our Agri robot we have to develop android application let us see various
modules of android application.
Registration Module
In User Login and Registration Module User have to login in the app through the
Email and Password, if user is new then user can create an account and register in app. On
this page another option is also available that is change app language user can change
language in Marathi and Hindi also. This the benefit of our application.
Dashboard Module
Fig 8: Dashboard
Dashboard Module
On the Dashboard Module there are four modules are present that is Plant Disease
Detection Module, Sensor Data, Agri Robot, Irrigation System.
Disease Detection
In Plant Disease Detection Module first our Agri robot capture the live image of the
crop or plant then it display on our application then Disease Detection Module Detect the
Disease of crop and also detect the symptoms of the disease and its display on our
application.
Sensor Data
Sensor Data
In Sensor Data Soil Moisture Sensor and DHT11 Sensor are Present. Soil Moisture
Sensor gives Data about soil moisture of the field and its also display the content present in
the soil. DHT11(Temperature and Humidity Sensor) gives the information of Realtime
weather forecast.
Agri Robot
Agri Robot
In Agri Robot Module there are four operations are present that is Seeder, Spray,
Cutter, ploug. User can operate Seeder, Spray, and Cutter using on and off button and ploug
using up and down button. Our Agri Robot Work also Automatically and Manually.
Manual Mode
In Manual Mode there is live status of the field is display on our application and we
can operate our Agri Robot using Forword, backward, up and down button.
Automatic Mode
In Automatic Mode suppose this our farm we give GPS waypoint on your map and
click on create mission whenever we click on create mission button the waypoint array send
on raspberry pi and according to that waypoint the robot will operate.
Irrigation System
Irrigation System
When Soil Moisture of the field is low then we can irrigate now.
The actual accuracy is 93% after the code cleaning and adding CNN layers the
accuracy of our model is 98.40%.
Future Scope
The future scope of smart farming utilizing GPS technology for autonomous
navigation holds
1. Precision Agriculture:
3. Cost Reduction:
By automating navigation using GPS technology, farmers can save on labor costs
associated with operating machinery. Additionally, autonomous vehicles can operate around
the clock, maximizing operational efficiency and reducing downtime, ultimately lowering
overall production costs
With GPS-enabled autonomous navigation, farmers can remotely monitor and control
farming equipment from anywhere with an internet connection. This capability provides
flexibility and convenience, allowing farmers to manage operations efficiently even when
they are off-site or during adverse weather conditions.
8. REFERENCES
[1] Sunil S. Harakannanavar, Jayashri M. Rudagi, Veena I Puranikmathb, Ayesha Siddiquaa,
R Pramodhini. Plant leaf disease detection using computer vision and machine learning
algorithms 305-310(2020)
[2] Sherly pushpa Annabel, machine learning for plant leaf diseases detection and
classification, April 4-6, 2019
[3] Hassan amin, End-to-End Deep Learning Model for Corn Leaf Disease Classification
Hassan amin , Ashraf Darwish , Aboul ella, Hassanien, and mona soliman March 14,2022
[4] Mobeen Ahmad, Muhammad Abdullah, hyeonloon moon, and Dongil Han, Plant disease
detection in imbalanced dataset using efficient convolutional neural network ,volume 9.
[5] Adesh V. Panchal , Subhash Chandra Patel , K. Bagyalakshmi , Pankaj Kumar , Ihtiram
Raza Khan ,Mukesh Soni. Image-based Plant Diseases Detection using Deep Learning.2021
[6] Minah Jung, Jong Seob Song, ah‑Young Shin, Beomjo Choi, Sangjin Go, Suk‑Yoon
Kwon, Juhan Park, Sung Goo Park, & Yong‑Min Kim Construction of deep learning‑based
disease detection model in plants
[7] Vijaypal Singh Dhaka , Sangeeta Vaibhav Meena , Geeta Rani , Deepak Sinwar ,
Kavaita Muhammad Fazal Ijaz , and Marcin Wozniak. A Survey Deep Convolutional Neural
Network Applied for Prediction pf Plant Leaf Diseases .12 July 2021
[8] LiLi Li1, Shujuan Zhang 2, And Bin Wan, Plant Disease Detection and Classification by
Deep Learning , 19-04-2021
[9] using deep learning for image-based plant disease detection Sharada Prasanna Mohanty
David Hughe and Marcel Salathe April 15 2018.
[10] Vijaypal Singh Dhaka, Nidhi kundu ,Geeta rani, Ester zumpano, Role of Internet of
Things and Deep Learning Techniques in Plant Disease Detection and Classification,
14 September 2023
[11] Saurabh Umarkar and Anil Karwankar, “Automated Seed Sowing Agribot Using
Arduino” International Conference on Communication and Signal Processing, April 6-8,
2016, India
[12] Vishnu Prakash K, Sathish Kumar, Venkatesh P, Chandran A,” Design and Fabrication
of Multipurpose Agricultural Robot,” International journal of Advanced Science and
Engineering Research Volume: 1, Issue: 1, June 2016, ISSN: 2455-9288
[13] Anand Nayyar, Er. Vikram Puri, Smart Farming: IoT Based Smart Sensors Agriculture
Stick for Live Temprature and Moisture Monitoring using Arduino, Cloud Computing &
Solar Technology, November 2016
[14] Lee, M., Hwang, J., & Yoe, H. (2013, December). Agricultural Production System
Based on IoT. In Computational Science and Engineering (CSE), 2013 IEEE 16th
International Conference on (pp. 833-837). IEEE
[15] Cristhian Salinas-Simón, Alvin Robles-Yovera, Daniel Burga-Durango, IoT system for
life cycle and crop harvest monitoring in the agricultural sector in Peru,22 November 2022
9. PUBLICATION
ABSTRACT
Agriculture plays a major role in developing countries like India. Farming management using modern
technology to increase the quantity and quality of agricultural products, which is a new trend in Agriculture
Technology. Technology can transform agriculture and help smallholder farmers adopt new farming approaches
making them resilient to climate change. Smallholder farmers need to produce sufficient food to match the food
demand of the growing population. To achieve this sustainable farming smallholder farmers need information.
Furthermore, they need to understand how different crops perform in changing weather patterns and varying
availability of water. The Internet of Things (IoT) and firebase database with sensor technology and energy-efficient
wireless communication could help them in agriculture. The farmers get control of their farm, it extends precision
agriculture, where management is based not only on the location and on field variability but also on data that is
triggered by real-time events.
Keywords
Internet of Things (IoT), Firebase database, Android Application, Agriculture, Machine Learning, Soil moisture,
humidity, Seeder, Sprayer.
11.FUNDING LETTER
12.COMPLETION LETTER