Professional Documents
Culture Documents
TITLE:
March, 2023
i
Declaration
I, Steve Okoth Onyango, certify that the ideas and creative work contained in the research
proposal titled Automatic Pest Control system using Machine Learning: TomatoPestGuard are
mine. I have not copied any text from other sources, and all references have been made in
accordance with Meru University of Science and Technology's academic norms and
requirements.
I pledge to undertake this research project honestly and ethically by signing this declaration.
ii
Recommendation
I the undersigned do hereby certify that this is a true report for the project undertaken by the
above named student under my supervision and that it has been submitted to Meru University of
Supervisor…………………………………………Date…………………… Signature…………
iii
Acknowledgment
I wish to thank God as well as my family and friends for believing in my ability to accomplish
what I set out to do, always encouraging me on. Special thanks to the School of Computing and
Thank you
iv
Table of Contents
Declaration..................................................................................................................................................ii
Recommendation........................................................................................................................................iii
Acknowledgment........................................................................................................................................iv
List of tables...............................................................................................................................................xii
List of figures.............................................................................................................................................xiii
Abstract......................................................................................................................................................xv
CHAPTER ONE..............................................................................................................................................1
INTRODUCTION...........................................................................................................................................1
v
H04: Research Action Plan Hypothesis................................................................................................3
CHAPTER TWO.............................................................................................................................................6
LITERATURE REVIEW....................................................................................................................................6
2.1 Introduction.......................................................................................................................................6
vi
2.5 Research Conducted Previously on Machine Learning in Pest Control............................................10
2.5.2 Case Studies Applying Machine Learning in Pest Identification and Control.........................11
2.7 Summary..........................................................................................................................................15
CHAPTER THREE........................................................................................................................................15
METHODOLOGY.........................................................................................................................................15
3.1 Introduction.....................................................................................................................................15
3.6 Instrumentation...............................................................................................................................17
vii
3.6.2 Validity of the Instrument.........................................................................................................17
3.10 Conclusion.....................................................................................................................................18
CHAPTER FOUR..........................................................................................................................................18
SYSTEM ANALYSIS......................................................................................................................................18
4.0 Overview..........................................................................................................................................18
viii
4.3.1.3 User interface....................................................................................................................23
4.3.2.1 Security..............................................................................................................................24
4.3.2.2 Availability..........................................................................................................................24
4.3.2.3 Performance......................................................................................................................25
4.3.2.4 Others................................................................................................................................25
4.4 Summary..........................................................................................................................................25
CHAPTER FIVE............................................................................................................................................26
SYSTEM DESIGN.........................................................................................................................................26
5.0 Overview..........................................................................................................................................26
5.3 Database design of an Automatic pest control using machine learning: TomatoPestGuard............28
ix
5.3.2 Images Table.............................................................................................................................28
5.4 Summary..........................................................................................................................................30
CHAPTER SIX..............................................................................................................................................31
SYSTEM IMPLEMENTATION........................................................................................................................31
6.0 Overview..........................................................................................................................................31
6.4 Documentation................................................................................................................................35
6.5 Summary..........................................................................................................................................36
CHAPTER SEVEN........................................................................................................................................38
7.0 Findings............................................................................................................................................38
x
7.1 Conclusion.......................................................................................................................................38
7.2 Recommendations...........................................................................................................................38
References.................................................................................................................................................39
Appendices................................................................................................................................................42
xi
List of tables
xii
List of figures
Figure 6 ER diagram for an automatic pest control using machine learning: TomatoPestGuard...............25
Figure 13 : Logica design of automatic pest control using machine learning: tomatopestguard...............28
xiii
Abbreviations, Symbols, and Acronyms
ML – Machine learning
AI – Artificial Intelligence
xiv
Abstract
Agriculture stands as a cornerstone of global sustenance, yet the incessant challenge of pest
infestation threatens its stability and productivity. This study endeavors to introduce and
establish a robust and intelligent system that autonomously identifies, analyzes, and
pest control methods and bridge the gaps in current technological applications. By
leveraging ML algorithms, sensor technologies, and data analytics, this study seeks to
damage, and optimize yield. The scope encompasses a focused exploration of specific pest
xv
CHAPTER ONE
INTRODUCTION
Over the world, pests have continuously threatened ecosystems, posing a risk to human health
and causing large financial losses (Brajesh K. Singh, 2023). Chemical pesticides were a major
But over usage of these pesticides has harmed non-target creatures and contaminated
pesticides are indiscriminate, they frequently lose their effectiveness as a result of pest resistance
Innovative techniques are becoming more popular due to the shortcomings of traditional
strategies (Taye, 2023). Algorithms that learn from data and generate predictions or judgments
are developed as part of machine learning (ML), a branch of artificial intelligence. Large-scale
dataset analysis is made possible by ML models, which allow for precise pest identification and
classification (Dan Popescu, 2023). These models may also forecast the behavioral patterns of
pests, which helps in the development of proactive and focused management strategies.
The field of pest control stands to undergo a major transformation with the use of machine
eco-friendly, and economical pest control solutions (Dawn, 2023). Effective pest management in
urban, agricultural, and industrial contexts can be ensured by ML-driven pest control systems,
1
which can drastically reduce dependency on chemical pesticides and minimize environmental
The demand for food production rises as a result of the growing global population, placing more
strain on agriculture. The needs for efficient and sustainable agricultural practices are not
satisfied by conventional pest management techniques (Saliu, 2023). In order to overcome the
shortcomings of current pest control methods and guarantee food security while preserving the
environment's health, it is imperative that cutting-edge technologies like machine learning (ML)
promising solution to the problems caused by pest infestations in tomato crops, opening the door
for efficient and sustainable agricultural practices. The development of an automated pest control
system for tomato cultivation using machine learning represents a significant advancement in
agricultural technology.
algorithms is required due to the inefficiencies and limitations of traditional pest management
techniques in tomato farming. This system will accurately identify and address pest infestations,
improving crop health and yield while minimizing financial losses for farmers.
2
1.3.2 Specific objectives
ii. Construct a machine learning model for precise pest identification and treatment advice
iv. Combine an extensive pest database with the machine learning model.
The developed Machine Learning-based Automatic Pest Control System exhibits exceptionally high
The Machine Learning algorithms employed in the pest management system demonstrate a high degree of
The integrated system architecture of the Automated Pest Control System : TomatoPestGuard
effectively detects, controls, and manages pest populations while minimizing environmental impact and
The proposed research action plan for developing the Machine Learning-driven Automatic Pest Control
System: TomatoPestGuard efficiently outlines the necessary tasks, delineates responsible individuals,
3
1.5 Justification of the study
There is great potential for reducing the negative effects of pest infestations in a variety of
ecosystems through the use of Machine Learning-driven Automatic Pest Control Systems:
TomatoPestGuard. Through precise pest detection, predictive behavior analysis, and preemptive
management strategies, this system might potentially limit crop loss, improve food security, and
reduce the need for ecologically damaging pesticides. Furthermore, the suggested method has
uses in public health, urban settings, and ecosystem preservation initiatives in addition to
agriculture. Its inventiveness opens the door for more effective and ecologically responsible pest
become wiser and more resilient while simultaneously addressing acute pest-related issues.
An important advancement in pest management has been made with the advent of a machine
learning-based automatic pest control system, which goes beyond agricultural borders to address
more general ecological and public health issues. In addition to minimizing agricultural damage,
its accurate pest detection and proactive control methods also lessen the environmental harm
caused by conventional pesticides. The adaptability of this novel approach to urban settings
promises effective infrastructure protection and disease vector management, promoting resilient
and sustainable communities. Its application represents a revolutionary turn toward ecologically
friendly pest control methods, supporting international initiatives for more intelligent, healthier
ecosystems.
4
1.7 Scope of the study
The creation and application of an automated pest control system powered by machine learning
was the exclusive focus of this study. The main goal is to develop a system with precise pest
identification, automatic control methods, and behavior prediction. The project's objectives are to
verify the dependability of machine learning algorithms, assess the system's effectiveness, and
The principal constraint of this research was its exclusive concentration on the creation and
Although the study's goal is to develop a system that is adept at identifying pests, predicting their
behavior, and automating control, it does not cover more general ecological or non-pest-related
applications. The efficacy and dependability of the system will be evaluated in particular real-
world settings, with an emphasis on confirming the capabilities of machine learning algorithms
5
CHAPTER TWO
LITERATURE REVIEW
2.1 Introduction
With the goal of creating an Automatic Pest Control System: TomatoPestGuard using Machine
Learning, this review of the literature attempts to investigate and summarize current findings and
particular machine learning, are changing automated control mechanisms, behavior prediction,
and pest detection. This review attempts to provide a thorough grasp of the state of pest control
and the possible effects of incorporating machine learning into this field by looking at recent
publications.
technology innovation and pest management. This section focuses on the development and
application of cutting-edge technology in the field of pest control. The world of pest control is
learning, the internet of things (IoT), and data-driven approaches. The purpose of this part is to
shed light on the fundamental developments that are driving the integration of various state-of-
the-art technologies. It aims to uncover the critical role that these technologies have had in
transforming the way that we recognize, anticipate, and deal with pest-related issues by
investigating their emergence, development, and possible uses in pest management. This
introduction lays the groundwork for a thorough examination of the cutting-edge advancements
6
and exciting new directions in contemporary pest management techniques driven by cutting-edge
technologies.
Beyond its theoretical potential, the integration of sophisticated technology in pest management
chapter explores the various uses of state-of-the-art technology, such as IoT and machine
understand how these technologies enable accurate and timely monitoring of environmental
parameters essential to pest identification, behavioral analysis, and the development of focused
environmental monitoring, this investigation aims to shed light on the concrete influence and
Given the unpredictability of disasters, modern pest management technologies play an ever-
more-important role in guaranteeing prompt and effective reaction plans. This article looks at the
unique function and contributions of modern technologies, such IoT and machine learning, in
technologies support disaster pest management efforts by evaluating their application in early
detection, fast response mechanisms, and disaster preparedness processes. This investigation
aims to reveal the ways in which cutting-edge technologies function as important instruments,
facilitating quick, data-driven decisions that are critical to preventing or lessening the effects of
7
2.3 Current Pest Detection and Control Systems
The field of pest identification and control is a dynamic space where old approaches and new
technologies come together. This part begins with a thorough analysis of the current state of pest
detection and control technologies. Through presenting a synopsis that includes both
conventional and contemporary techniques, it seeks to clarify the many tactics used in
determining and controlling pest populations. This investigation aims to disentangle the complex
strategies employed in the existing systems, providing the framework for an evaluation that is
instruments inside the rich fabric of pest management measures. This subsection delves into a
thorough examination of these systems, illuminating their various modalities, which range from
workings, and useful uses of existing pest detection systems by providing a thorough synopsis,
therefore laying the groundwork for a more in-depth analysis of their advantages and
disadvantages.
In order to effectively address agricultural concerns, modern pest management solutions must be
both reliable and effective. This subsection conducts a thorough analysis of different approaches,
breaking out their advantages and disadvantages. Examining the accuracy, flexibility, and
8
environmental impact of these techniques, it seeks to identify the strengths that drive their
efficacy as well as the shortcomings that call for additional research and development.
In the ever-changing world of technology, pest management techniques also keep up with the
times by adopting new breakthroughs and trends. This subsection delves into an examination of
the current technology advances that are transforming the field of pest management. It seeks to
elucidate the developments that have shaped the direction of contemporary pest management
tactics, such as the incorporation of machine learning, internet of things (IoT) technologies, and
data-driven methodologies. Examining these patterns paves the way for imagining how technical
Kenya's different ecosystems are intricately interwoven with a tapestry of pest-related concerns
that are nestled inside the country's varied terrain. This part begins a thorough investigation into
the prevalence of pests in Kenya's agricultural landscape. It aims to expose the range of pest
species that are common in different parts of the world by investigating their ecological niches,
seasonal trends, and the particular agricultural sectors they affect. This chapter explores the
complex pest incidence in Kenya in an effort to provide a thorough picture of the pest landscape,
laying the groundwork for a more thorough comprehension of the region's agricultural
9
2.4.2 Historical Pest Infestation Events
Kenya's historical records of pest infestations tell a story of agricultural difficulties entwined
with the ups and downs of the area's ecological dynamics. The investigation of notable pest
infestation incidents that have influenced Kenya's agricultural terrain commences in this
subsection. It aims to reveal significant insect outbreaks, their socioeconomic effects, and the
ensuing changes in pest management tactics by examining these historical events. The purpose of
this analysis is to extract lessons from the past in order to provide a more comprehensive picture
and organizations to manage pest-related concerns. This section examines the policies, joint
ventures, and interventions in pest management that are carried out by institutional and
governmental actors. It attempts to clarify the overall framework within which pest management
strategies are developed and implemented by assessing these initiatives, their effectiveness, and
the strategic goals they map out. This investigation aims to piece together the various programs
designed to reduce the hazards associated with pests, promote sustainable farming methods, and
The application of machine learning to pest control signals a paradigm shift in the field that is
marked by novel approaches and profound possibilities. This chapter outlines the current state of
research on using machine learning to manage pests. It seeks to expose the cutting edge
applications and developing trends in using Machine Learning algorithms to solve pest
10
identification, behavior prediction, and control mechanisms by closely examining these research,
2.5.2 Case Studies Applying Machine Learning in Pest Identification and Control
Applications of machine learning in the real world for identifying and managing pests provide
concrete evidence of the technology's effectiveness and scalability. This section looks into
particular case studies that use machine learning algorithms to identify and manage pests. It
seeks to extract important insights into the real-world applications and potential difficulties of
using machine learning-driven tactics in managing pest-related issues by analyzing these cases,
This article aims to summarize the collective knowledge obtained by synthesizing the insights
obtained from earlier studies using Machine Learning in pest management. In an effort to
provide a thorough grasp of the developments, difficulties, and potential paths in machine
AI-Powered Framework for Classification and Recognition of Pests (Khan, 2024). The present
study presented a strong framework that utilizes Convolutional Neural Networks (CNNs) to
quickly and accurately identify and classify pests in agricultural environments. Dynamically
responding to different pest species and environmental conditions is still difficult, though.
IoT-Embedded Pest Monitoring and Alert System (Azfar, 2023) .In order to monitor pest activity
and deliver real-time notifications, this research presented an Internet of Things (IoT)-based
11
system that makes use of a variety of environmental sensors. The best location for the sensors
and the dependability of data transfer are two areas where the system is limited.
AI-Powered Autonomous Eradication and Pest Detection System.This work investigates the use
(Cardim Ferreira Lima, 2020). Scalability and resistance to a variety of insect species are still
issues, though.
(Bayih, 2022) Wireless Sensor Network for Early Detection and Pest Identification Caution. a
reasonably priced Internet of Things system with cloud connection, wireless access, and data
processing and visualization capabilities. Power usage and poor coverage in remote locations are
issues.
Intelligent Sensor Combination for Pest Warning and Flood Forecasting. A novel (Blanco-
Carmona, 2023) sensor fusion that uses Wi-Fi transmission to anticipate the occurrence of both
floods and pests. One drawback, though, is the short Wi-Fi range in isolated locations.
Thorough Environmental Monitoring to Predict Pests. utilizing sensor networks based on Wi-Fi
to monitor environmental factors and predict pest outbreaks. (Ahouandjinou, 2017) Data
(Ali, 2023) IoT Information System for Pest Monitoring Powered by AI. In order to detect pests,
this study combines web-based monitoring software with AI-powered IoT devices. Reliability of
Public Information System for Real-time Pest Monitoring (Wang, 2023). Real-time pest
notifications between afflicted areas' authorities and the public are made possible via an
12
Pest Detection System Based on Decision Trees. Using environmental sensor data to identify
pests using decision trees (Bheemanna, 2021). Real-time reaction is hampered by cloud data
Pest Detection and IoT-based Flood Monitoring (Abalos, 2023) utilizing NodeMCU for pest
detection and ultrasonic sensors to assess flood depth. Adapting to changing floodwater
Using the Pest Dataset, this research assesses the efficacy (Using the Pest Dataset, 2023) of
machine learning models for pest detection in agriculture, such as EfficientNet B3, ResNet 101,
and ResNet 152. When EfficientNet B3 is used for real-time inference on a Raspberry Pi, it
outperforms ResNet 101 and ResNet 152 with an accuracy of 97.11%. Nevertheless, issues
including scalability, resilience to pest changes, and environmental variability are still
unresolved.
(Chaitanya Reddy, 2021) This study examines the value of using contemporary technology, in
particular Machine Learning (ML), to identify and treat plant diseases that affect the leaves of
crops. For farmers, traditional methods such as hyper spectral techniques and laboratory-based
procedures are expensive and time-consuming. The analysis of the Random Forest and Support
Vector Machine (SVM) algorithms' effectiveness in disease diagnosis is the main goal of the
performance indicators such Root Mean Square Error (RMSE), Peak Signal Noise Ratio (PSNR),
disease affected area calculation using Euclidean Distance technique, and accuracy results are
assessed
A system has been presented that uses smart farming (Mahalakshmi, 2023) technologies to
streamline agricultural procedures, however there are a few issues that need to be resolved. The
13
assimilation of heterogeneous technologies, including deep learning, machine learning, and
remote sensing, into a unified system may present development and maintenance challenges.
restrictions on the amount of data available or the speed at which Google Earth Engine can
process and retrieve remote sensing data. Furthermore, it could be difficult to guarantee accurate
and current weather information retrieval solely on city names, particularly in areas with little
access to reputable weather data sources. The suggested smart farming method must be
successfully implemented and adopted, which will depend on overcoming these obstacles.
Infestations of pests pose a threat to the agricultural industry, resulting in substantial losses and
damage to crops. Conventional approaches for (Zarymkanov, 2023) detecting pests are expensive
and ineffective. Machine learning (ML)-based automatic vision systems are a viable answer, but
ML models require a lot of data to be trained, which presents a major difficulty. In order to
address this, we suggest a unique method in which a model is continuously improved by labeling
fresh photos via a mobile app after it has been initially trained on a small dataset. By addressing
the lack of data for ML model training, our method improves pest detection accuracy.
1. Predictive Pest Outbreak Models: By using environmental factors and historical data,
machine learning models can predict future pest outbreaks, which helps with resource
14
identification. This allows for accurate species identification even in a variety of
environmental settings.
management treatments.
examine large amounts of data in order to provide environmentally friendly and tailored
pest treatment suggestions. This lessens the need for broad-spectrum pesticides and
2.7 Summary
The proposal outlines the pivotal role of Machine Learning in revolutionizing pest control
strategies. Emphasizing the potential contributions, the proposed research envisions leveraging
ML algorithms for enhanced pest identification, predictive outbreak modeling, adaptive control
shift towards sustainable, precise, and proactive pest management strategies that minimize
environmental impact while maximizing effectiveness. The study's focus on harnessing Machine
in pest control, paving the way for more efficient, targeted, and eco-friendly pest management
practices.
15
CHAPTER THREE
METHODOLOGY
3.1 Introduction
This chapter outlines the methodology adopted to develop, implement, and evaluate the
Automatic Pest Control System: TomatoPestGuard utilizing Machine Learning (ML). The
research methodology and procedures employed for this study are detailed here, focusing on the
The research incorporates a mixed-method approach, blending both qualitative and quantitative
methodologies. This mixed approach facilitates the development of an effective and innovative
The study concentrates on various agricultural settings prone to pest infestations. Specific
locations in regions where pest control is crucial, such as farmlands in school farm and the areas
16
surrounding the school in Meru County Ruiri area, were selected to test and implement the
The focus is on engaging with local agricultural communities, including farmers, agricultural
experts, and researchers. The interactions aim to incorporate valuable insights and perspectives
relevant knowledge and experience in pest management within agricultural contexts (Campbell,
2020). This method is justified as it ensures the inclusion of participants with pertinent insights
The study will involve a sample size of 50 agricultural experts and farmers, representing 70% of
expertise, and 15 will be randomly selected from this group to ensure diversity.
3.6 Instrumentation
The Automatic Pest Control System: TomatoPestGuard integrates various components, including
validation tools (testing protocols), collectively enabling effective pest detection and control.
17
3.6.1 Pilot Study
A preliminary pilot study will be conducted to test and evaluate the functionality and performance of the
instruments and methodologies intended for use in the primary study. The pilot study aims to refine the
Assessment of the instruments' validity, ensuring they effectively measure and detect pests as intended,
covering content, construct, and criterion validity.
Ensuring the reliability and consistency of data collection methods and tools throughout the research
process. This includes internal consistency, test-retest reliability, and system stability
Systematic data collection methods encompass qualitative techniques such as interviews and
quantitative approaches involving the deployment of sensors and data retrieval for analysis.
Utilizing thematic analysis for qualitative data and statistical methods for quantitative sensor
data, facilitating the identification of trends, correlations, and predictive models related to pest
patterns.
Adherence to ethical guidelines regarding confidentiality, informed consent, and ensuring that
the research process and outcomes do not harm participants or the environment.
18
3.10 Conclusion
Control System: TomatoPestGuard using Machine Learning. A systematic and iterative process
of data collection, analysis, and system refinement is essential to meet the research objectives
effectively.
CHAPTER FOUR
SYSTEM ANALYSIS
4.0 Overview
In this chapter, the system analysis for the Automatic Pest Control System: TomatoPestGuard
utilizing Machine Learning for disease detection on tomato leaves and recommending treatment
will be presented. The analysis will encompass feasibility study, an overall description of the
To determine if it would be feasible to create an automatic pest control system that uses machine
learning to identify diseases on tomato leaves and suggest treatments, a feasibility study was
carried out. The goal of the study was to ascertain whether funding this initiative is warranted.
compliance, and scheduling restrictions, was part of it. Feasibility study is a methodical
19
examination (Kendall, 2020) and assessment of a proposed project or system to ascertain its
Technical Feasibility: The evaluation indicated that appropriate hardware and software were
available for the implementation of ML algorithms. It could be necessary to upgrade for best
performance. Legal Feasibility: The system needs to abide by the laws governing the use of
pesticides and the privacy of data. Operational Feasibility: The system's suitability for farmers
and its ability to be easily integrated into current agricultural operations were assessed.
The goal of the existing system, Automatic Pest Control System: TomatoPestGuard, is to
manage pests in tomato farming. Automatic Pest Control System: TomatoPestGuard employs
cutting-edge machine learning algorithms to identify illnesses on tomato leaves and gives
farmers the appropriate treatment options. The following essential elements are included in a
Images of Leaves: Using a smartphone or camera, farmers take pictures of tomato leaves that
show symptoms of possible diseases. The system uses these pictures as input data.
Processing for Machine Learning: Automatic Pest Control System: TomatoPestGuard machine
learning methods are used to process the leaf photos that were taken. These systems use image
Therapy Suggestion: Based on the ailments identified, Automatic Pest Control System:
TomatoPestGuard provides therapy suggestions after analysis. These suggestions are made
20
specifically to deal with the insect problems that have been found.
Results of the Treatment Suggestions: The system gives farmers comprehensive treatment
suggestions, including the steps to take in order to lessen the negative effects of the diseases
found on their tomato crops. Suggestions for applying pesticides, changing cultural norms, or
Automatic Pest Control System: TomatoPestGuard seeks to improve crop health and yield in
tomato farming by providing farmers with timely and accurate information to fight pest
infestations.
A use case diagram is a graphical representation that illustrates the interactions between actors ie
users or external systems, and a system to (UML Use-Case Diagrams, 2005) achieve specific
goals or functionalities. It provides a high-level view of the system's functionality, showing how
21
Figure 1: Automatic Pest Control System: TomatoPestGuard use case diagram
One kind of UML (Unified Modeling Language) diagram that shows the organization and
connections between classes in a system is the class diagram. It gives a visual depiction of the
classes, attributes, methods, and relationships between them in the system's static structure.
Sequence diagrams show (Chonoles, 2011) how elements interact in a specific operating scenario
of a system. They display the messages that are sent back and forth between various components
22
Figure 3: Automatic Pest Control System: TomatoPestGuard sequence diagram
A Data Flow Diagram (DFD) is a visual aid that shows how data moves through a system or
procedure (Li, 2009). It shows the flow of data from external entities or sources to processes,
Among the UML behavioral diagrams are activity diagrams, (Baresi, 2009) which are often
referred to as control flow and object flow diagrams. To describe the sequential, conditional, and
specifications for a certain project or system is known as requirement gathering. In order to make
sure that the system satisfies the goals of stakeholders, (Stephen Lane, 2016) states that it entails
Functional requirements outline the precise actions and features that a software program or
system must have in order to meet the needs of its users. (Stephen Lane, 2016) These
specifications usually outline the intended outputs and how the system should react to different
inputs, as well as how it should interact with people and other systems. The Automatic Pest
23
Control System: TomatoPestGuard Using Machine Learning has determined the following
functional needs.
The process of finding abnormalities or diseases in a certain subject, such as a plant, animal, or
human, is known as disease detection. (Neupane, 2021) To enable prompt intervention and
diseases in crops or plants. The system should accurately identify diseases on tomato leaves from
input images
When diseases in tomato plants are successfully identified, the system's job is to suggest the best
course of action. In order to help farmers properly manage and mitigate the effects of illnesses
found on their crops, this functionality is essential. The system evaluates a number of variables,
including crop features, environmental circumstances, and the kind and severity of the illness, by
utilizing the data obtained from disease identification procedures. The system provides
The term user interface (UI) describes how a user interacts with a computer program or system.
It includes every component that users use to enter data, (Cooper, 2014) navigate the system, and
get feedback. This comprises both written and graphical components, such as prompts and
instructions, as well as buttons, menus, and icons. An intuitive user interface is a must for
smooth communication between the system and farmers. It is imperative that the interface
exhibits ease of use, clarity, and responsiveness to enable smooth navigation and provide farmers
24
4.3.2 Non-functional Requirements
Non-functional requirements (NFRs) are not so much features or behaviors as they are the
usability, and scalability are among the things they emphasize. Non-functional requirements are
necessary to make sure a system achieves its goals and offers a positive user experience. Non-
functional requirements specify system attributes such as security, availability, and performance.
4.3.2.1 Security
The term security describes the procedures and controls put in place to guard against
2019), security comprises an array of tactics, procedures, and technological tools intended to
protect information resources and guarantee the privacy, accuracy, and accessibility of data. The
4.3.2.2 Availability
The degree to which a system, service, or (Ibrahimovi, 2017) resource is reachable and
functional when users need it is referred to as availability. It stands for the system's capacity to
continue operating and responding, guaranteeing that users may access the required functionality
and carry out tasks without experiencing any hiccups or interruptions. The system ought to be
functional throughout crucial farming times. For disease identification and treatment
recommendations, farmers depend on prompt system access, particularly during critical phases
of crop growth and insect infestation. To effectively fulfill farmers' needs, the system should
25
4.3.2.3 Performance
Performance refers to how well and efficiently a system operates, (Gregg, 2013) particularly in
terms of response time, speed, and resource use. Within a fair amount of time, the system ought
to process the photos and provide therapy recommendations. In order to give farmers fast and
useful insights regarding crop health and pest control, efficient performance is necessary.
Therefore, in order to facilitate swift decision-making and action, the system must be able to
4.3.2.4 Others
To ensure the Automatic Pest Control System: TomatoPestGuard effectiveness and usability in
4.4 Summary
Using machine learning, the Automatic Pest Control System is revolutionizing agricultural pest
definition, and feasibility analysis. Accuracy, security, and efficiency are given top priority in
both functional and non-functional needs, offering enhanced crop health and sustainability.
26
CHAPTER FIVE
SYSTEM DESIGN
5.0 Overview
We explore the design of TomatoPestGuard, an automatic pest control system that makes use of
machine learning methods, in this chapter. An extensive summary of the system's architecture,
A particular kind of flowchart called an entity relationship diagram (ERD) shows how entities—
such as individuals, things, or concepts relate to one another inside a system. ER Diagrams are
vital in software engineering, business information systems, teaching, and research. They are
27
Figure 6 ER diagram for an automatic pest control using machine learning: TomatoPestGuard
An important factor in making it easier for consumers to interact with TomatoPestGuard is its
interface. It is the main method by which users can enter data, access system functions, and
obtain outputs. The goal of the interface design is to make it easy for farmers to identify
The primary dashboard gives a summary of the tomato plants' present condition, emphasizing
any illnesses that have been found and suggested remedies. It has visual cues about the severity
Direct uploading of tomato leaf photos from users' devices is possible. Data may be easily
entered into the system for disease analysis and identification thanks to this interface design.
The system shows the identified diseases and pertinent information, like the type of disease,
degree of severity, and leaf areas affected, after an image has been uploaded. Users may easily
recognize and comprehend the ailments that have been diagnosed thanks to this interface design.
28
5.2.5 Treatment recommendations
Based on Machine Learning analysis, the system offers customized therapy recommendations for
every ailment that is discovered. This interface design provides comprehensive application
It is possible for users to alter settings and preferences to suit their own requirements and tastes.
Users can access resources, FAQs, and troubleshooting instructions through a dedicated help and
support section. This interface design makes sure that users may get help when they need it.
TomatoPestGuard
Information on system users, such as administrators and farmers, is kept in this table.
Details about the uploaded photos of tomato leaves are kept in this table.
29
1 1 /images/image1.jpg 2024-03-20 08:30:00
2 2 /images/image2.jpg 2024-03-20 10:30:00
The suggested courses of action for the diseases that have been identified are listed in this table.
In the context of database and system design, a logical design diagram illustrates the
arrangement and structure of data without concentrating on (Roger S. Pressman, 2014) the
how data moves through and is stored in the system by illuminating the connections between
30
Figure 13 : Logica design of automatic pest control using machine learning: tomatopestguard
5.4 Summary
In conclusion, the user interface, database structure, and system architecture are all included in
the system design of TomatoPestGuard, an automated pest management system that uses
machine learning. Farmers can connect with the system in an easy-to-use manner by uploading
photographs of their tomato leaves, receiving findings of disease detection, and accessing
treatment advice thanks to the user interface. Tables for user data, uploaded photos, diseases
identified, suggested therapies, and system notifications are all part of the database structure.
Primary and foreign key links connect these tables, facilitating effective data administration and
retrieval. The overall goal of the system design is to assist farmers in efficiently protecting their
31
CHAPTER SIX
SYSTEM IMPLEMENTATION
6.0 Overview
management system that makes use of machine learning methods. This covers the steps involved
in developing a product, integrating essential parts, conducting tests, and creating deployment
plans. The chapter offers insights into how the system was designed and set up to successfully
Farmers can upload pictures of tomato leaves to the system that may show symptoms of possible
illnesses.
32
6.1.2 Disease detection
In order to identify symptoms of illnesses like bacterial wilt, leaf spot, and powdery mildew,
The system makes recommendations for suitable treatment plans to stop the spread of diseases
and safeguard tomato crops based on the diseases that have been found.
33
Figure 16Treatment recommendation
With defined roles and permissions for administrators and farmers, user authentication
34
Figure 17 User authentication
35
6.2 System testing
System testing is the process (Watkins, 2010) of assessing and verifying a software system's
overall functionality, performance, and dependability to make sure it satisfies the set goals and
specifications. It entails testing the system's integrated components to find bugs, evaluate how
well it complies with specifications, and ensure that it is ready for deployment.
System changeover (Lane, 2003) refers to the process of transitioning from the existing system
to the new system, ensuring minimal disruption to operations while maximizing the benefits of
6.4 Documentation
The term (Chinell, 1990) system documentation refers to the extensive collection of documents,
including manuals, reports, guidelines, and other materials, that describe the functionality,
Any materials, resources, (Thomas McAvinew, 2004) or documentation produced for users,
stakeholders, or other external parties who deal with or are affected by a system, service, or
product is referred to as external documentation. User manual, software requirements are some
36
Figure 18 : code snippet with internal documentation
6.5 Summary
In conclusion, the introduction of TomatoPestGuard represents a critical turning point in the use
guarantee the system's efficacy and user-friendliness, a number of elements, including disease
detection, treatment recommendation, and user interface design, were painstakingly designed and
To verify the system's functionality, dependability, and security, extensive testing approaches
including unit testing, integration testing, functional testing, user acceptability testing,
performance testing, security testing, and regression testing were used. This extensive testing
37
stage was designed to find and fix any problems or inconsistencies, guaranteeing
For users to make the switch from traditional pest control methods to TomatoPestGuard
smoothly, extensive preparation, training, and assistance were required. Sufficient internal and
external documentation was crucial in furnishing direction, guidelines, and reference resources to
diverse stakeholders, guaranteeing their efficient utilization and comprehension of the system.
tomato farming pest management technology, offering increased crop output and decreased
farmer losses. Going forward, maintaining the system's effectiveness and flexibility in the face of
the ever-changing demands of agricultural pest management will require constant observation,
38
CHAPTER SEVEN
7.0 Findings
implementation and assessment are provided in this chapter. These results shed light on the
functionality, efficiency, and efficacy of the system in identifying and treating diseases of tomato
plants.
7.1 Conclusion
This chapter contains the implementation and assessment findings for TomatoPestGuard. These
outcomes provide insight into the system's performance, effectiveness, and efficiency in
7.2 Recommendations
In order to optimize TomatoPestGuard's functionality and increase its usefulness for farmers, the
Continuous Improvement: To increase accuracy and efficiency over time, machine learning
algorithms used for disease detection should be updated and improved on a regular basis.
Integration of meteorological Data: By adding meteorological data into the system, agricultural
health and disease prevalence may be better understood, leading to more informed decisions
39
Mobile Application Development: Creating a TomatoPestGuard mobile application would make
the system more accessible to farmers who predominantly use cellphones for farming chores.
This would enable them to conveniently access the system from any location.
Community Involvement: Speaking with farming communities and getting user input can yield
important information for future system improvements and guarantee that TomatoPestGuard
By following these suggestions, TomatoPestGuard can keep developing into a useful tool for
References
40
Abalos, M. a. (2023, 07). Iot Based Flood Detection, Alarm and Monitoring System Using Multilayer
Ahouandjinou, A. S. (2017). Smart environment monitoring system by using sensors ultrasonic detection
of farm pests. In Ahouandjinou, Arnaud S. R. M. and Kiki, Probus M. A. F. and Assogba, Kokou
Ali, M. a. (2023, 11). A High Performance-oriented AI-enabled IoT-based Pest Detection System using
Sound Analytics in Large Agricultural Field. Microprocessors and Microsystems, 103, 104946.
doi:10.1016/j.micpro.2023.104946
Azfar, S. a. (2023). An IoT-Based System for Efficient Detection of Cotton Pest. Applied Sciences, 13(2076-
Baresi, L. (2009). Activity Diagrams. In L. Z. LIU, Encyclopedia of Database Systems (pp. 41-45). Boston,
Bayih, A. Z. (2022). Utilization of Internet of Things and Wireless Sensor Networks for Sustainable
Bheemanna, M. P. (2021). A decision tree analysis for predicting the occurrence of the pest, Helicoverpa
armigera and its natural enemies on cotton based on economic threshold level. Current Science,
100, 238--246.
Blanco-Carmona, P. a.-M.-F.-C.-C.-C. (2023). AIoT in Agriculture: Safeguarding Crops from Pest and Disease
Brajesh K. Singh, M. D.-B. (2023). Climate change impacts on plant pathogens, food security and paths
41
00900-7
Campbell, S. a. (2020). Purposive sampling: complex or simple? Research case examples. Journal of
Cardim Ferreira Lima, M. a. (2020). Automatic Detection and Monitoring of Insect Pests—A Review.
Chaitanya Reddy, P. a. (2021). Detection of Plant Leaf-based Diseases Using Machine Learning Approach.
2021 IEEE International Conference on Computation System and Information Technology for
Dan Popescu, c. a. (2023). New trends in detection of harmful insects and pests in modern agriculture
Dawn, N. a. (2023, 04). Implementation of Artificial Intelligence, Machine Learning, and Internet of
Things (IoT) in revolutionizing Agriculture: A review on recent trends and challenges. 30, 190-
212. doi:10.52756/ijerr.2023.v30.018
Gregg, B. (2013). Systems Performance: Enterprise and the Cloud. Pearson Education.
Ibrahimovi, S. a. (2017). Maximizing Information System Availability Through Bayesian Belief Network
Approaches: Emerging Research and Opportunities: Emerging Research and Opportunities. IGI
Global.
42
Khan, A. a.-K. (2024). AI-Enabled Crop Management Framework for Pest Detection Using Visual Sensor
Lancaster, K. J.-J. (2019). Feeding strategies and shade type for growing cattle grazing endophyte-infected
Lee, S. B. (2024). Present status of insecticide impacts and eco-friendly approaches for remediation-a
doi:https://doi.org/10.1016/j.envres.2023.117432
Li, Q. a.-L. (2009). Data Flow Diagram. In Modeling and Analysis of Enterprise and Information Systems:
From Requirements to Realization (pp. 85-97). Berlin, Heidelberg: Springer Berlin Heidelberg.
Mahalakshmi, S. a. (2023). Recommendation of Crops and Fertilizer, Detection of Crop Weed, Pest and
Diseases using Machine Learning. 2023 International Conference on Data Science, Agents &
Muggah, R. a. (2019). Security Sector Reform and Citizen Security: Experiences from Urban Latin America
Neupane, K. a.-G. (2021). Automatic identification and monitoring of plant diseases using unmanned
Saliu, F. a. (2023). A Review on the Impact of Sustainable Agriculture Practices on Crop Yields and Soil
Stephen Lane, P. O. (2016). Requirements gathering: the journey. Journal of Decision Systems, 302-312.
43
Taye, M. M. (2023). Understanding of Machine Learning with Deep Learning: Architectures, Workflow,
Thomas McAvinew, R. M. (2004). Control System Documentation: Applying Symbols and Identification.
UML Use-Case Diagrams. (2005). In S. W. Ambler, The Elements of UML (pp. 33-46). Cambridge:
Using the Pest Dataset, t. r.-t. (2023). Comparative Analysis of Machine Learning Models for Pest
Detection on Raspberry Pi. 2023 7th International Conference on Trends in Electronics and
Wang, Y. W. (2023). Real-time monitoring of insects based on laser remote sensing. Ecological Indicators,
Watkins, J. a. (2010). References. In Testing IT: An Off-the-Shelf Software Testing Process (pp. 315-318).
Datasets Using a Mobile App. 2023 IEEE International Workshop on Metrology for Agriculture
44
Appendices
1. Introduction
Introducing TomatoPestGuard, your automated pest management system for growing tomatoes.
You will be guided through TomatoPestGuard's features and functionalities by this user manual.
2. Getting started
Navigate to http://127.0.0.1:8080.
4. Uploading Images
45
Click "Upload Image".
5. Viewing Reports
Go to "View Reports".
6. Settings
7. Troubleshooting
8. Glossary
9. Conclusion
Thank you for choosing Automatic pest control using machine learning: TomatoPestGuard. For further
46