One Two Three
One Two Three
A PROJECT REPORT
Submitted by
S Dheyshnan[RA2211003011795]
K M Surya [RA2211003011763]
Under the Guidance of
Dr R Thilagavathy
Associate Professor
Department of Computing Technologies
BACHELOR OF TECHNOLOGY
in
COMPUTER SCIENCE ENGINEERING
APRIL 2025
Department of Computational Intelligence
SRM Institute of Science & Technology
Own Work* Declaration Form
This sheet must be filled in (each box ticked to show that the condition has been met). It must be
signed and dated along with your student registration number and included with all assignments you
submit – work will not be marked unless this is done.
To be completed by the student for all assessments
I / We hereby certify that this assessment compiles with the University’s Rules and Regulations
relating to Academic misconduct and plagiarism**, as listed in the University Website, Regulations,
and the Education Committee guidelines.
I / We confirm that all the work contained in this assessment is my / our own except where indicated,
and that I / We have met the following conditions:
I understand that any false claim for this work will be penalized in accordance with the University
policies and regulations.
DECLARATION:
I am aware of and understand the University’s policy on Academic misconduct and plagiarism and I certify that
this assessment is my / our own work, except where indicated by referring, and that I have followed the good
academic practices noted above.
If you are working in a group, please write your registration numbers and sign with the date for every
student in your group.
i
SRM INSTITUTE OF SCIENCE AND
TECHNOLOGY KATTANKULATHUR – 603 203
BONAFIDE CERTIFICATE
SIGNATURE SIGNATURE
EXAMINER 1 EXAMINER 2
ii
ACKNOWLEDGEMENTS
We extend our sincere thanks to Dr. Leenus Jesu Martin M, Dean-CET, SRM Institute of Science
and Technology, for his invaluable support.
We wish to thank Dr. Revathi Venkataraman, Professor and Chairperson, School of Computing,
SRM Institute of Science and Technology, for her support throughout the project work.
We encompass our sincere thanks to, Dr. M. Pushpalatha, Professor and Associate Chairperson -
CS, School of Computing and Dr. Lakshmi, Professor and Associate Chairperson -AI, School of
Computing, SRM Institute of Science and Technology, for their invaluable support.
We are incredibly grateful to our Head of the Department, DR. G. Niranjana, Professor and Head
of Department of Computing Technologies, SRM Institute of Science and Technology, for her
suggestions and encouragement at all the stages of the project work.
We want to convey our thanks to our Project Coordinators, Panel Head, and Panel Members
Department of Computational Intelligence, SRM Institute of Science and Technology, for their inputs
during the project reviews and support.
We register our immeasurable thanks to our Faculty Advisor, DR. R. Thilagavathy, Department of
Computing Technologies, SRM Institute of Science and Technology, for leading and helping us to
complete our course.
Our inexpressible respect and thanks to our guide, DR. R. Thilagavathy , Department of Computing
Technologies, SRM Institute of Science and Technology, for providing us with an opportunity to
pursue our project under his / her mentorship. He / She provided us with the freedom and support to
explore the research topics of our interest. His / Her passion for solving problems and making a
difference in the world has always been inspiring.
We sincerely thank all the staff members of Department of Computing Technologies, School of
Computing, S.R.M Institute of Science and Technology, for their help during our project. Finally, we
would like to thank our parents, family members, and friends for their unconditional love, constant
support and encouragement
Authors
iii
ABSTRACT
iv
TABLE OF CONTENTS
ABSTRACT v
TABLE OF CONTENTS vi
ABBREVIATIONS ix
1 INTRODUCTION 1
1.1 Introduction to Project 2
1.2 Problem Statement 3
1.3 Motivation 4
1.4 Sustainable Development Goal of the Project 5
2 LITERATURE SURVEY 6
2.1 Overview of the Research Area 7
2.2 Existing Models and Frameworks 8
2.3 Limitations Identified from Literature Survey (Research Gaps) 9
2.4 Research Objectives 10
2.5 Product Backlog (Key user stories with Desired outcomes) 12
2.5 Plan of Action (Project Road Map) 13
v
4 RESULTS AND DISCUSSIONS 30
6.1 Project Outcomes (Performance Evaluation, Comparisons, Testing Results )
vi
LIST OF FIGURES
CHAPTER PAGE
NO. TITLE NO.
vii
LIST OF TABLES
viii
ABBREVIATIONS
AI - Artificial Intelligence
ML - Machine Learning
UI - User Interface
RF - Random Forest
ix
CHAPTER 1
INTRODUCTION
Agriculture forms the pillar of the majority of economies in nations, and tomato
(Solanum Lycopersicon) ranks among the most grown and utilized vegetable crops worldwide.
They form the pillar in the agricultural sector on the basis of their nutritional content, market
demand, and economic value. Tomato cultivation is, however, faced with a chain of plant
diseases, specifically leaf infections. Early blight, late blight, leaf mold, bacterial spot, and
Septoria leaf spot are some diseases that can potentially reduce yield significantly, impair crop
quality, and result in severe economic losses to farmers.
Historically, tomato leaf disease has been determined by manual scouting by farmers or
agronomists. Although efficient when done by experienced practitioners, this process is not
without challenges. Manual determination is subjective, time-consuming, and not scalable for
large estates. The phenotypic presentation of various diseases may also mimic one another and
hence result in misdiagnosis or delayed diagnosis. This would result in extensive infection,
wastage of pesticides, and subsequently, lower harvest yields.
The growing need for precision agriculture and sustainable agriculture has spurred the
demand for new, innovative technologies that will help farmers with precise, real-time
information. Advances in Artificial Intelligence (AI), particularly Machine Learning (ML) and
Computer Vision, have provided new possibilities for the diagnosis of plant diseases. Of all
such technologies, Convolutional Neural Networks (CNNs) have performed remarkably well
in image classification and, therefore, have proven to be extremely effective in identifying
patterns of diseases on the leaves of plants. This project intends to utilize the power of deep
learning methods, in this case, CNNs, to create an intelligent system for detecting tomato leaf
diseases. The system will be trained on a large pool of images of tomato leaves—both healthy
and unhealthy—and learned to classify images into several categories of diseases.
The model will be made to learn to provide high accuracy using preprocessing methods,
data augmentation, and model optimization. The ultimate goal of this project is to create an
easy-to-use and functional tool which can be installed on mobile phones or embedded in web-
based applications. The tool will enable farmers, farmhands, and agronomists to diagnose
tomato leaf diseases remotely and accurately in real time, which will lead to faster intervention,
improved crop management, and reduced crop loss.
1
1.1 Introduction to Project:
Tomato (Solanum Lycopersicon) is one of the most widely cultivated and economically
valuable vegetable crops around the world. It serves as a staple in both subsistence and
commercial agriculture due to its nutritional benefits and versatility in culinary applications.
However, tomato cultivation is frequently threatened by a variety of diseases, particularly those
that affect the leaves. These diseases—such as early blight, late blight, leaf mold, bacterial
spot, and Septoria leaf spot—not only reduce the yield and quality of tomatoes but also cause
significant economic losses for farmers each year. The early detection and diagnosis of these
diseases is critical to implementing effective treatment and preventing large-scale crop
damage.
In recent years, advancements in artificial intelligence (AI), machine learning (ML), and
computer vision have provided promising alternatives to traditional methods. These
technologies enable the automatic detection and classification of plant diseases using digital
images, offering a faster, more consistent, and scalable solution. In particular, deep learning
techniques—especially Convolutional Neural Networks (CNNs)—have shown remarkable
performance in image recognition tasks, including agricultural applications.
This project aims to develop an intelligent tomato leaf disease detection system using
CNN-based deep learning models. The system is trained on a comprehensive dataset
containing images of both healthy and diseased tomato leaves. It leverages image
preprocessing techniques, data augmentation, and model optimization strategies to enhance
prediction accuracy and generalization. The ultimate goal is to build a user-friendly, real-time
detection system that can be integrated into mobile or web-based platforms.
2
1.2 Problem Statement:
Tomato plants are highly susceptible to a range of leaf diseases such as early blight, late
blight, leaf mold, bacterial spot, and more. These diseases significantly reduce crop yield and
quality, leading to considerable economic losses for farmers worldwide. Early and accurate
identification of these diseases is essential for timely intervention and effective disease
management.
There is a growing need for an automated, reliable, and scalable solution that can assist
in the early detection and classification of tomato leaf diseases. Such a system should be
accessible, easy to use, and capable of functioning in real-time to support farmers in making
informed decisions.
1.3 Motivation:
A vital component of global agriculture, tomato farming greatly boosts both the
economy and food security. In addition to being a staple food in many nations, tomatoes are a
significant crop in terms of production and trade. However, growing tomatoes presents many
difficulties, especially because leaf diseases are so common. These illnesses, which include
bacterial spot, leaf mold, and early and late blight, can significantly lower crop yield and
quality.
These diseases early onset can harm tomato plants irreparably, drastically reducing farm
3
productivity and causing large financial losses. Farmers are constantly under pressure to
increase yield and reduce loss from pests, diseases, and unfavorable weather, especially in
developing nations. Regretfully, the process of manually identifying tomato leaf diseases is
still difficult and unreliable. The visual indicators of various diseases frequently overlap, which
can result in misdiagnosis, even though skilled agricultural specialists may be able to recognize
specific disease symptoms. Since early-stage symptoms are subtle and may mimic those
brought on by dietary deficiencies or environmental stress rather than infections, they can be
particularly difficult to identify. The use of labor-intensive and subjective inspection
techniques exacerbates this issue even more. Large fields must usually be inspected by hand
by farmers, and disease detection is frequently delayed in areas with a lack of or in access to
qualified agricultural specialists. A disease may have already spread throughout the crop by
the time it becomes clearly visible, causing extensive damage that could have been avoided
with prompt action. Traditional disease control methods, such as excessive pesticide use,
consequently become the norm, endangering human health and the environment needlessly.
Given these difficulties, a more effective, dependable, and scalable method of disease detection
in tomato crops is obviously required. The goal of closing the technology gap in agriculture is
another factor driving this project. Smallholder farmers in many developing nations face major
obstacles because they lack access to modern agricultural equipment and knowledge. This
project intends to make state-of-the-art technology available to farmers in underserved and
rural areas by creating an inexpensive and user-friendly disease detection system. This system
can be made available to farmers on their smartphones through mobile apps and web-based
platforms, giving them immediate access to disease diagnosis and treatment recommendations.
Additionally, by ensuring that farmers can use AI to enhance their incomes regardless of their
location or level of technical expertise, this project advances the broader objective of digital
inclusion in agriculture. Agriculture is in a unique position to gain from AI's ongoing
transformation of many industries, particularly in terms of enhancing food production, quality,
and sustainability. To sum up, the Tomato Leaf Diseases Detection project is driven by the
desire to use cutting-edge technology to address the urgent problem of crop disease
management.
4
agriculture. The following SDGs are the most pertinent to this project:
SDG 2: No Hunger
which lowers crop losses and boosts food production. The system plays a vital role in lowering
hunger and guaranteeing food availability by assisting farmers in identifying diseases early on,
which leads to healthier crops and higher yields. Which aims to end hunger, achieve food security,
and promote sustainable agriculture. By leveraging image processing and deep learning
technologies, the system enables early and accurate identification of diseases in tomato plants,
significantly reducing crop loss and increasing agricultural productivity.
Justification:
Tomato leaf disease prediction contributes directly to SDG 2: Zero Hunger, which aims to end
hunger, achieve food security, and promote sustainable agriculture. Specifically:
Early detection and prediction of tomato leaf diseases allow farmers to take timely action,
reducing crop losses and increasing yield. This is particularly beneficial for smallholder farmers,
who rely heavily on healthy crops for their livelihoods.
Justification:
By detecting diseases early, farmers can take preventive actions to reduce crop damage,
minimizing food waste during production and post-harvest stages.
Better disease management reduces the reliance on unsustainable practices and encourages
more balanced input-output cycles in farming.
5
CHAPTER 2
LITERATURE SURVEY
Tomato crops are vulnerable to a wide variety of diseases that negatively impact yield,
quality, and economic returns. Detecting these diseases accurately and early is crucial to avoid
significant losses. Over the years, researchers have explored several traditional and modern
approaches to address this problem. The following literature review highlights the evolution
of tomato leaf disease detection methods, focusing on image processing, machine learning,
and deep learning techniques.
Earlier approaches to plant disease detection were largely manual. Farmers relied on their
experience or agricultural experts for diagnosis, which often led to late or inaccurate
identification due to the subtle differences in visual symptoms among various diseases.
Traditional laboratory-based techniques such as polymerase chain reaction (PCR), ELISA, and
culturing pathogens, although accurate, are time-consuming, expensive, and not feasible for
on-field use.
In the early 2000s, researchers began exploring image processing techniques for
automatic disease detection. Methods involved segmentation, color analysis, texture
extraction, and feature engineering using tools like: K-means clustering for lesion
segmentation, Gabor filters for texture features, and Histogram analysis for color features.
CNN are particularly effective in image-based classification tasks due to their ability to
automatically extract and learn spatial hierarchies of features such as leaf color, texture, shap and
the presence of disease-specific lesions. Common CNN architectures like VGG16, ResNet,
InceptionNet, and MobileNet have been successfully applied to classify various tomato leaf
diseases, including early blight, late blight, and leaf mold. In many cases, these models are
enhanced through transfer learning, which involves using pr-trained networks originally trained on
large datasets such as ImageNet and fine-tuning them with tomato leaf disease datasets. This not
6
only reduces the computational cost and training time but also significantly boosts the accuracy,
even when working with relatively small, domain-specific datasets. In addition to deep
The growing demand for food security, sustainable farming, and effective crop
management worldwide has made the nexus between agriculture and artificial intelligence (AI)
a crucial area of study in recent years. The early identification and diagnosis of plant diseases,
especially in economically important crops like tomatoes, has become a crucial area of focus
among the many challenges facing agriculture. Early blight, late blight, bacterial spot, and leaf
mold are just a few of the leaf diseases that can seriously affect crop quality and yield and
affect tomato plants (Jha et al., 2019).
Plant diseases have traditionally been identified by manual inspection, which is frequently
arbitrary, inconsistent, and constrained by the availability of expert knowledge, particularly in
isolated or impoverished areas. Combining aspects of computer vision, machine learning, deep
learning, image processing, and mobile computing, automated plant disease detection has
consequently emerged as a top research priority (Ferentinos, 2018).
To train and assess models that can identify a variety of plant diseases, researchers have
developed and utilized a variety of image datasets, such as the Plant Village dataset. Thousands
of annotated photos of both healthy and diseased leaves in controlled settings are commonly
found in these datasets. In order to perform well in real-world settings, where variables like
lighting, background clutter, and leaf orientation vary greatly, efforts have more recently
concentrated on improving the model's robustness.
The application of transfer learning, which makes use of pre-trained CNN architectures
(such as VGG16, Res Net, and Mobile Net) and modifies them for plant disease detection
tasks, is another expanding area within this research field. Effective models can be deployed
more easily, even in environments with limited resources, thanks to this method's significant
reduction in training time and data requirements.
7
Another important area of current research is the integration of these AI-driven models
with IoT-based agricultural systems and mobile applications. By enabling farmers to take
pictures of their leaves with smartphones and get prompt disease diagnosis and treatment
recommendations, these apps democratize access to agricultural knowledge and lessen reliance
on physical infrastructure.
Fig 2.2 a Sample curl virus Fig 2.2 b sample mosaic virus
8
frequently demonstrates high accuracy in tasks involving disease classification.
MobileNet and MobileNetV2 are lightweight models that are perfect for embedded and mobile
deployment. gives up some accuracy in favor of efficiency and speed. renowned for its high
image classification task accuracy and multi-scale convolutions. An effective architecture that
enhances feature reuse by feed-forwardly connecting each layer to every other layer.
3. Disease Likeness:
It can be challenging for models to differentiate between various diseases because
their visual symptoms can be so similar:
For instance, in their early stages, early blight and septoria leaf spot may look alike.
causes disease categories to be misclassified or confused.
9
4. Limitations in Computation:
CNNs and other deep learning models might need:
GPUs with high performance.
large memory and storage, which might not be accessible for mobile apps or on-field
deployment.
5. Differences Absence of Standardization in:
methods for preprocessing images.
techniques for augmentation.
Metrics for evaluating the model.
Make it challenging to compare the performance of the model in various studies.
Limitations Description
Poor Field Models perform poorly under varied lighting,
Adaptability backgrounds and angels
11
Table: 2.7 Product Backlog
ID
SS 1 2 3 4 5
Image
Preprocessing TrainML Predicti Result
Title Upload
Pipeline Model on API Dashboard
Module
Model
Data Data Model User
Epic Integrat
Collection Processing Development Interface
ion
(Moscow)
Must Must Must Should Could
Priority
Status To Do In Progress To Do To Do To Do
API
User can Accuracy ≥ User sees
Acceptance Images resized returns
upload leaf 90% on test prediction
Criteria & normalized disease
images data result
class
Non- Clean,
Mobile- Efficient Response <
Functional Reproducibility readable
friendly UI memory use 1s
Requirement output
Original
4h 5h 8h 6h 3h
Estimate
Actual
4h 2.5h 5h 5h 1h
Effort
12
Table 2.8 Plan of action
Despite being one of the most extensively grown crops in the world, tomatoes are
extremely vulnerable to a number of leaf diseases that can drastically lower crop quality and
productivity. For sustainable agriculture and efficient pest management, early and precise
disease diagnosis is essential. Conventional illness identification techniques frequently depend
on manual inspection, which can be laborious, prone to mistakes, and necessitate specialised
knowledge. Convolutional Neural Networks (CNNs), a deep learning technology.
13
CHAPTER 3
The entire team was split up into smaller groups that were in charge of front-end,
back-end, testing, and documentation, among other project-related tasks. To preserve
workflow discipline, scrum rituals like sprint planning, daily stand-ups, sprint reviews,
and sprint retrospectives were closely adhered to. Task tracking and communication
were facilitated using tools such as Trello, GitHub, and Slack.
3.1 SPRINT I:
Sprint I, which was the project's start phase, was mostly concerned with establishing
the framework. The goal of this first sprint, which lasted two weeks, was to set up all the
necessary elements needed for the next sprints. These included completing the
development stack, configuring the tools, designing the backend schema, starting the
authentication module, and producing basic UI wireframes.
Onboarding the team to the tools and techniques used for this project was a major priority
during Sprint I. This covered responsibilities, task distribution, and setup instructions. To
14
confirm expectations, time was also devoted to stakeholder meetings and requirement.
Basic connectivity was tested, and the frontend and backend development environments
were set up. Together, the database schema was drafted, and authentication methods were
determined. The user interface's wireframes were made and approved by both internal and
external reviewers. The system architecture was thoroughly documented and connected to
the project objectives.
The foundation for a well-organized and maintainable application had been effectively
established by the conclusion of Sprint I. In addition to providing clarity on execution, it
raised team morale by demonstrating progress.
Objectives:
● Provide a consistent environment for all contributors to develop in.
● Create scalable and safe user authorization and authentication systems.
● Establish and put into practice the fundamental database schema.
● Create and review user interface wireframes for key screens.
● Start documentation procedures and match them to sprint tasks.
● Every goal was linked to tasks and user stories that were recorded in the project
management application. Mid-sprint evaluations and daily stand-up meetings were
guided by objectives.
User Stories:
User Story 1: I want to make a safe account as a user so that I can log in and utilize the
system according to my own preferences.
User Story 3: In order to uphold data integrity and enforce system rules, I want to manage
15
user roles and permissions as an administrator.
Image Resized,
Sprint 2 preprocessing and ✅ Completed normalized, applied
augmentation augmentation
Evaluated with
Model evaluation
Sprint 4 ✅ Completed accuracy, loss,
and optimization
confusion matrix
User Story 4: For the frontend team to comprehend and develop the design, I, as a UI/UX
designer, require clear wireframes.
16
These narratives were divided into assignments with due dates. The team assigned tasks
according to the availability and expertise of each member. To guarantee logical
progression, dependencies between tasks were identified.
● New users can sign up for the system using their email address and password.
● Bcrypt is used to encrypt the password before it is saved.
● A JWT token, which is used for session management, is issued upon login.
● To distinguish between user and admin privileges, role-based access is enforced during
login.
● Users can troubleshoot common errors with the help of detailed login failure messages.
17
Table :3.1 Functional Document
Applies image
Processed image for
Preprocessing processing (resize, Raw leaf image
model input
normalize, augment)
Extracts relevant
Feature Extraction features from the image Preprocessed image Feature vector
using CNN layers
18
Module 3: Administration of Data
Module 4: Alerts
19
2. Layer of Applications:
Includes Python methods that:
Preprocess images (resize, normalize, etc.)
Put the machine learning model into use.
Make predictions using the picture that was uploaded.
4. Configuring Deployment
● Containerized development and testing are done with Docker.
● Using Nginx as a reverse proxy, the initial deployment was set up on an AWS
EC2 instance.
● GitHub Actions is used to plan CI/CD pipelines.
● The configuration and deployment (Fig 3.1) phase focused on setting up the
environment for model training and integrating the trained model into a user-
accessible application. The model was developed using Python with libraries such
as TensorFlow, Keras, NumPy, and OpenCV. For efficient execution and training,
Google Colab was used, which provided access to GPU resources and helped
reduce training time. Once the model achieved satisfactory accuracy, it was saved
in a serialized format (e.g., .h5 file) for easy integration. The application was tested
locally and can be hosted on cloud platforms like Heroku or Streamlit Community
Cloud for broader accessibility. This deployment demonstrates how AI-powered
solutions can be transformed into practical tools to support farmers and
agricultural professionals in disease diagnosis and decision-making (Choudhary et
al., 2021).
20
Fig 3.1 SYSTEM ARCHITECTURE
Findings:
● All developers were able to access and successfully set up the development
environment.
● Modules for session management and authentication were examined and verified.
● After receiving favorable comments, the UI wireframes were given to the frontend
team.
● Dummy data was used to test and implement the database schema.
● Architecture and functional documentation drafts were sent in for evaluation.
Evaluation:
● According to preliminary findings, foundational modules are scalable and reliable.
● Trello, GitHub, and Slack were among the tools that the team used to collaborate
efficiently.
21
● Proactive risk management was used, and problems were fixed during daily stand-ups.
● Task time estimates were largely accurate; documentation showed a few minor delays.
● A clean and consistent codebase was maintained with the aid of peer code reviews.
Important Takeaways:
● The review of the documentation was prone to rework and took longer than
22
anticipated.
● When frontend and backend tasks overlapped, there were communication
breakdowns.
● During the initial setup phase, deployment guides were not completely updated.
Items of Action:
In order to improve performance in Sprint II, the team used this retrospective to
identify and fix inefficiencies.
3.2 SPRINT II
The main features of the Tomato Leaf Disease Detection system were the
focus of Sprint II. Creating and integrating a machine learning model that could
recognize common tomato plant diseases from leaf photos was the main objective.
The integration of AI features into the Flutter mobile app, model deployment
techniques, and user interface enhancements were also covered in this sprint.
Sprint II lasted for two weeks. ML engineers, frontend developers, and cloud
engineers collaborated across teams during this sprint. To guarantee that all
modules are integrated seamlessly, the team separated tasks based on
specializations while staying in close contact.
Testing the model on a variety of datasets and fine-tuning it for mobile device
performance were given particular attention.
23
Following an analysis of the stakeholder input from Sprint I, several enhancements
were added to the Sprint II backlog. To lessen server dependency, the emphasis was
moved to improving usability and integrating edge-based AI features. Between the
MVP foundation and an AI-integrated, production-ready application, Sprint II
served as a link.
3.2.1 Objectives with user stories of Sprint II
1) Goals:
2) User Narratives:
● User Story 1: As a farmer, I would like to be able to snap a photo of a tomato leaf and
get an immediate diagnosis of the disease.
● User Story 2: In order to train a high-accuracy CNN model, I need a clean, labeled
dataset as a data scientist.
● User Story 3: In order for the model to function well on mobile devices, I, as a
developer, wish to convert it to TFLite.
● User Story 4: As a user, I want an intuitive interface that clearly shows results and
offers instructions for what to do next.
● User Story 5: In my capacity as a tester, I wish to confirm the model's accuracy using
both test and unobserved real-world data.
During daily standups, tasks were monitored and evaluated. Feedback loops aided in the
early detection of problems, particularly with app performance and model accuracy.
24
3.2.2 Functional Document
The disease detection feature was at the heart of Sprint II's functional
requirements. The app interface, result visualization, and machine learning pipeline
all had specific functionalities defined.
● Users can use the camera on their mobile device to take a picture of a tomato leaf.
● There was also the option to upload from the gallery.
● Prior to being fed into the model, the image is cropped and preprocessed.
● Several tomato diseases, such as Septoria, Early Blight, and Leaf Mold, are
recognized by the CNN model.
● Each class's probabilities are provided by the model, and the best prediction is
shown.
● During prediction, image quality is improved by edge detection and enhancement
techniques.
The integration of a machine learning model with the mobile application was
the main goal of the Sprint II architecture. The system used a hybrid strategy that
combined cloud-based feedback logging with local inference.
● The dataset was manually labeled and sourced from publicly available plant
pathology datasets.
● Rotation, flipping, and noise were used as augmentation techniques to enhance
generalization.
● For training, the dataset was locally stored and transformed into TFRecords.
2. Layer of Models
● The CNN architecture was selected due to its capacity to process features in
images.
● TensorFlow was used to train the model, and an 80/20 split was used for
validation.
● On test data, accuracy exceeded 92%.
● Quantized and converted to TFLite to boost speed and decrease size.
3. Layer of Integration
26
4. Layer of Interface
● For visual clarity, the user interface was created using Flutter widgets and
animations.
● Users can report inaccurate predictions using this feedback form.
● Color codes and alerts are examples of visual cues that show the severity of a
disease.
Findings:
● On the validation set, the model trained successfully with 92% accuracy.
● The conversion to TFLite has been finished and verified on several devices.
● During inference, Flutter integration is seamless with little lag.
● Users expressed satisfaction with the UI improvements.
● Dataset preparation is recorded for sharing and reuse in the future.
The findings from this project reinforce the effectiveness of deep learning
techniques, particularly Convolutional Neural Networks (CNNs), in image-based
disease classification tasks.
27
Evaluation:
Important Takeaways:
28
What Worked Well:
● Training and optimizing the ML model was finished in the allotted time.
● smooth interaction between the Flutter frontend and machine learning.
● Implementing UI feedback raised app user engagement.
● During the stakeholder review, the offline model capability was valued.
Items of Action:
29
CHAPTER 4
Even on low-end Android devices, the average inference time was 1.2 seconds.
Evaluation metrics like precision, recall, and F1-score were used to compare the
model's predictions. The F1-score stayed above 0.88 for several disease categories,
such as Septoria, Early Blight, and Leaf Mold. The model's resilience in real-world
applications was demonstrated by the fact that its performance held steady even
when photos were taken in different lighting conditions or with slight blur.
In machine learning projects, testing and validation Fig 4.2 are crucial steps to
evaluate the performance, accuracy, and generalization ability of the model. For
this tomato leaf disease prediction system, a Convolutional Neural Network
(CNN) model was trained to classify various diseases based on leaf images. To
ensure the model is reliable and performs well on unseen data, proper testing and
validation techniques were implemented (Kumar & Patel, 2022). Integration
testing was conducted using numerous mobile devices for field testing in a
variety of lighting and environmental settings. By identifying edge cases, this
testing assisted in optimizing the preprocessing pipeline. Students, agricultural
researchers, and farmers were among the stakeholders involved in User
Acceptance Testing (UAT). Their input was crucial in determining the need for
more features and UI enhancements.
31
Comparisons: The performance of the suggested model was contrasted with that
of industry-standard models such as MobileNetV2 and ResNet-50 in order to assess
its efficacy. Despite achieving a marginally higher accuracy of 94%, ResNet-50 was
not suitable for deployment on mobile platforms due to its large model size (95 MB)
and high memory requirements. Compared to the custom CNN, MobileNetV2 had
a slower inference time but offered moderate performance.
The optimal balance between accuracy, speed, and size was provided by the
custom CNN. Because it was designed for edge inference scenarios, predictions
could be made without an internet connection—a critical feature for users in rural
areas. Our model was perfect for mobile-first deployment, as demonstrated by the
comparative table that was made to summarize model performance:
User Acceptance and Feedback: Users engaged with the app to identify diseases
from test images during a pilot test. Approximately thirty users took part, including
Agri-students and farmers. More than 85% of users thought the app was useful and
simple to use. Users valued the quick results, easy-to-understand interpretation of
the results, and simple treatment recommendations. Requests for features like voice
output, multilingual support, and history logs for examining previous predictions
were among the feedback gathered. To be implemented in future sprints, these items
were logged.
32
Testing Results:
Any machine learning project must include testing to make sure the model
operates accurately and consistently on unknown data. The objective of tomato leaf
disease prediction is to accurately categorise photographs of tomato leaves into
distinct disease groups (e.g., Healthy, Late Blight, and Early Blight).
A tomato leaf disease prediction model's testing phase Fig 4.3 is essential for
assessing the model's functionality and suitability for practical use. Testing
evaluates the model's capacity for generalisation using unseen data, usually distinct
from the training dataset.
33
CHAPTER 5
CONCLUSION AND FUTURE ENHANCEMENT:
5.1 Conclusion
An important development at the nexus of artificial intelligence and
agriculture is the Tomato Leaf Disease Detection system. This solution gives
farmers, agronomists, and other agricultural stakeholders quick, easy, and
trustworthy insights into crop health by using machine learning to analyze leaf
photos and identify plant diseases.
In the end, the project helps to bridge the gap between traditional farming and
technology, fostering more data-driven and sustainable agricultural practices and
opening the door to more intelligent food production systems.
4. Environmental Diagnostics and Pest Detection Include the ability to identify pest
damage or stress brought on by nutrient shortages, poor soil, or drought. Provides
a diagnosis of plant health that is more comprehensive.
[Link] and Voice Support Provide voice assistance and local language
options for users who are illiterate or only partially literate. Improves user
engagement and accessibility.
35
REFERENCES
[1] Kumar, R., & Patel, A. (2022). Evaluation of deep learning techniques for plant
disease detection. International Journal of Computer Applications, 184(10), 25–30.
[2] Ferentinos, K. P. (2018). Deep learning models for plant disease detection and
diagnosis. Computers and Electronics in Agriculture, 145, 311–318.
[Link]
[3] Jha, K., Doshi, A., Patel, P., & Shah, M. (2019). A comprehensive review on
automation in agriculture using artificial intelligence. Artificial Intelligence in
Agriculture, 2, 1–12. [Link]
[4] Choudhary, G., Khandelwal, S., & Budhlakoti, R. (2021). Deployment of deep
learning models for plant disease detection in real-time environments. Procedia Computer
Science, 192, 2504–2513. [Link]
[5] Mohanty, S. P., Hughes, D. P., & Salathé, M. (2016). Using deep learning for image-
based plant disease detection. Frontiers in Plant Science, 7, 1419.
[Link]
[6] Purushothaman, R., Ramesh, A., and Rangarajan, A. K. (2018). Classifying Tomato
Crop Diseases with a Pre-trained Deep Learning Algorithm.1040–1047 in Procedia
Computer Science, 133.
[7] Moussaoui, A., Boukhalfa, K., & Brahimi, M. (2017). Visualization of Symptoms and
Classification of Tomato Diseases Using Deep Learning.31(4), 299–315; Applied
Artificial Intelligence.
[8] Islam, M. M., and Hasan, S. M. (2020). Convolutional Neural Networks for the
Identification of Tomato Leaf Disease.9(3), 1005–1011, International Journal of
Engineering and Advanced Technology.
36
APPENDIX A
CODING
37
38
39
APPENDIX B
PUBLICATION DETAILS
40
APPENDIX C
PLAGIARISM REPORT
41