You are on page 1of 61

MERU UNIVERSITY OF SCIENCE AND TECHNOLOGY

BACHELOR OF SCIENCE IN COMPUTER TECHNOLOGY

DEPARTMENT OF COMPUTER SCIENCE

TITLE:

Automatic Pest Control system using Machine Learning: TomatoPestGuard

Name: Steve Okoth Onyango

Reg no: CT202/103339/20

A Project Submitted in partial fulfillment of Requirements for

Conferment of Degree of Bachelor’s Degree in Computer Technology of

Meru University of Science and Technology

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.

Signature: ………………………. Date: ……………………….

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

Science and Technology with my approval.

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

Informatics for granting me an opportunity to excel in the IT field.

Thank you

iv
Table of Contents

Declaration..................................................................................................................................................ii

Recommendation........................................................................................................................................iii

Acknowledgment........................................................................................................................................iv

List of tables...............................................................................................................................................xii

List of figures.............................................................................................................................................xiii

Abbreviations, Symbols, and Acronyms....................................................................................................xiv

Abstract......................................................................................................................................................xv

CHAPTER ONE..............................................................................................................................................1

INTRODUCTION...........................................................................................................................................1

1.1 Background of study....................................................................................................................1

1.2 Statement of the problem...........................................................................................................2

1.3 Objectives of the study................................................................................................................2

1.3.1 General objective.................................................................................................................2

1.3.2 Specific objectives................................................................................................................3

1.4 Research hypothesis....................................................................................................................3

H01: Reliability Hypothesis..................................................................................................................3

H02: Accuracy Hypothesis...................................................................................................................3

H03: Effectiveness Hypothesis.............................................................................................................3

v
H04: Research Action Plan Hypothesis................................................................................................3

1.5 Justification of the study..............................................................................................................4

1.6 Significance of the study..............................................................................................................4

1.7 Scope of the study.......................................................................................................................5

1.8 Limitation of the study.................................................................................................................5

CHAPTER TWO.............................................................................................................................................6

LITERATURE REVIEW....................................................................................................................................6

2.1 Introduction.......................................................................................................................................6

2.2 Monitoring Environmental Factors with Advanced Technologies......................................................6

2.2.1 Introduction to Advanced Technologies in Pest Management....................................................6

2.2.2 Applications in Environmental Monitoring for Pest Control........................................................7

2.2.3 Role of Advanced Technologies in Disaster Pest Management...................................................7

2.3 Current Pest Detection and Control Systems.................................................................................8

2.3.1 Overview of Existing Pest Detection Systems..............................................................................8

2.3.2 Strengths and Weaknesses.........................................................................................................8

2.3.3 Technological Trends in Pest Management.................................................................................9

2.4 Pest Control in Kenya.........................................................................................................................9

2.4.1 Pest Incidence in Kenya...............................................................................................................9

2.4.2 Historical Pest Infestation Events..............................................................................................10

2.4.3 Governmental and Institutional Efforts in Pest Management...................................................10

vi
2.5 Research Conducted Previously on Machine Learning in Pest Control............................................10

2.5.1 Current Studies Using Machine Learning for Pest Management...........................................10

2.5.2 Case Studies Applying Machine Learning in Pest Identification and Control.........................11

2.5.3 Insights and Knowledge Acquired from Previous Studies.....................................................11

2.6 Gaps in Current Research.................................................................................................................11

2.6.1 Related works...........................................................................................................................11

2.6.2 Contributions of Machine Learning in Pest Control Research..................................................14

2.7 Summary..........................................................................................................................................15

CHAPTER THREE........................................................................................................................................15

METHODOLOGY.........................................................................................................................................15

3.1 Introduction.....................................................................................................................................15

3.2 Research Design...............................................................................................................................16

3.2.1 Research Type...........................................................................................................................16

3.3 Location of the Study.......................................................................................................................16

3.4 Population of the Study...................................................................................................................16

3.5 Sampling Procedure and Sample Size..............................................................................................16

3.5.1 Sampling Procedure..................................................................................................................16

3.5.2 Sample Size...............................................................................................................................17

3.6 Instrumentation...............................................................................................................................17

3.6.1 Pilot Study.................................................................................................................................17

vii
3.6.2 Validity of the Instrument.........................................................................................................17

3.6.3 Reliability of the Instrumentation.............................................................................................17

3.7 Data Collection Procedure...........................................................................................................17

3.8 Data Analysis....................................................................................................................................18

3.9 Ethical Considerations......................................................................................................................18

3.10 Conclusion.....................................................................................................................................18

CHAPTER FOUR..........................................................................................................................................18

SYSTEM ANALYSIS......................................................................................................................................18

4.0 Overview..........................................................................................................................................18

4.1 Feasibility study...............................................................................................................................19

4.2 Overall Description of the system....................................................................................................19

4.2.1 Automatic Pest Control System: TomatoPestGuard use case diagram.....................................20

4.2.2 Automatic Pest Control System: TomatoPestGuard class diagram...........................................21

4.2.3 Automatic Pest Control System: TomatoPestGuard sequence diagram....................................21

4.2.4 Automatic Pest Control System: TomatoPestGuard data flow diagram....................................22

4.2.5 Automatic Pest Control System: TomatoPestGuard activity diagram.......................................22

4.3 Requirement gathering....................................................................................................................22

4.3.1 Functional Requirements..........................................................................................................22

4.3.1.1 Disease detection...............................................................................................................23

4.3.1.2 Treatment recommendation..............................................................................................23

viii
4.3.1.3 User interface....................................................................................................................23

4.3.2 Non-functional Requirements...................................................................................................24

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.1 Logical design of the new diagram...................................................................................................26

5.2 Physical design.................................................................................................................................27

5.2.1 Dashboard overview.................................................................................................................27

5.2.2 Image upload............................................................................................................................27

5.2.4 Disease identification................................................................................................................27

5.2.5 Treatment recommendations...................................................................................................28

5.2.6 Settings and preferences...........................................................................................................28

5.2.7 Help and support......................................................................................................................28

5.3 Database design of an Automatic pest control using machine learning: TomatoPestGuard............28

5.3.1 Users Table................................................................................................................................28

ix
5.3.2 Images Table.............................................................................................................................28

5.3.3 Diseases Table...........................................................................................................................29

5.3.4 Treatment Table........................................................................................................................29

5.3.5 Database Logical Design Diagram for a TomatoPestGuard........................................................29

5.4 Summary..........................................................................................................................................30

CHAPTER SIX..............................................................................................................................................31

SYSTEM IMPLEMENTATION........................................................................................................................31

6.0 Overview..........................................................................................................................................31

6.1 Implemented features.....................................................................................................................31

6.1.1 Image upload............................................................................................................................31

6.1.2 Disease detection......................................................................................................................32

6.1.3 Treatment recommendation.....................................................................................................33

6.1.4 User authentication..................................................................................................................33

6.2 System testing..................................................................................................................................35

6.3 System changeover..........................................................................................................................35

6.4 Documentation................................................................................................................................35

6.5 Summary..........................................................................................................................................36

CHAPTER SEVEN........................................................................................................................................38

FINDINGS, CONCLUSION AND RECOMMENDATIONS.................................................................................38

7.0 Findings............................................................................................................................................38

x
7.1 Conclusion.......................................................................................................................................38

7.2 Recommendations...........................................................................................................................38

References.................................................................................................................................................39

Appendices................................................................................................................................................42

Appendix 1 User Manual.......................................................................................................................42

xi
List of tables

Table 1 user table......................................................................................................................................27

Table 2image table.....................................................................................................................................27

Table 3: Disease table................................................................................................................................27

Table 4: treatment table............................................................................................................................27

xii
List of figures

Figure 1: Automatic Pest Control System: TomatoPestGuard use case diagram........................................20

Figure 2 : Automatic Pest Control System: TomatoPestGuard class diagram.............................................20

Figure 3: Automatic Pest Control System: TomatoPestGuard sequence diagram......................................20

Figure 4: Automatic Pest Control System: TomatoPestGuard data flow diagram.......................................20

Figure 5: Automatic Pest Control System: TomatoPestGuard activity diagram..........................................21

Figure 6 ER diagram for an automatic pest control using machine learning: TomatoPestGuard...............25

Figure 7 Dashboard overview....................................................................................................................25

Figure 8 Image upload ui...........................................................................................................................25

Figure 9 Disease identification...................................................................................................................26

Figure 10 Treatment recommendation......................................................................................................26

Figure 11 Settings and preferences............................................................................................................26

Figure 12 Help and support.......................................................................................................................26

Figure 13 : Logica design of automatic pest control using machine learning: tomatopestguard...............28

Figure 14 Image upload.............................................................................................................................30

Figure 15: Disease detection......................................................................................................................30

Figure 16Treatment recommendation.......................................................................................................31

Figure 17 User authentication...................................................................................................................32

Figure 18 : code snippet with internal documentation..............................................................................34

xiii
Abbreviations, Symbols, and Acronyms

ERD – Entity relation diagram

UML – Unified Modeling Language

DFD – Data flow diagram

ML – Machine learning

IOT – Internet of Things

CNNs – Convolutional Neural Network

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

implement an Automatic Pest Control System : TomatoPestGuard utilizing Machine

Learning (ML) to revolutionize traditional pest management practices. The objective is to

establish a robust and intelligent system that autonomously identifies, analyzes, and

responds to pest threats in agricultural settings. Through a combination of qualitative and

quantitative methodologies, this research aims to address the limitations of conventional

pest control methods and bridge the gaps in current technological applications. By

leveraging ML algorithms, sensor technologies, and data analytics, this study seeks to

design an innovative solution tailored to enhance agricultural sustainability, minimize crop

damage, and optimize yield. The scope encompasses a focused exploration of specific pest

types within defined agricultural landscapes, employing state-of-the-art technologies to

devise an efficient, real-time pest management framework. This research anticipates

yielding valuable insights and practical implementations to transform pest control

paradigms, fostering a more resilient and productive agricultural ecosystem.

xv
CHAPTER ONE

INTRODUCTION

1.1 Background of study

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

component of traditional pest management techniques' historical population control strategies.

But over usage of these pesticides has harmed non-target creatures and contaminated

ecosystems, causing ecological imbalances (Lee, 2024). Furthermore, because chemical

pesticides are indiscriminate, they frequently lose their effectiveness as a result of pest resistance

and are not precise in destroying certain species (Lancaster, 2019).

Innovative techniques are becoming more popular due to the shortcomings of traditional

methods, with machine learning (ML) emerging as a game-changer in pest management

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

learning. The utilisation of data-driven algorithms presents an opportunity to achieve accurate,

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

impact while maintaining ecosystem balance.

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)

be investigated and developed.

Finally, by utilizing artificial intelligence and image recognition, TomatoPestGuard provides a

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.

1.2 Statement of the problem


The development of an automated pest control system that makes use of machine learning

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.

1.3 Objectives of the study


1.3.1 General objective
To help farmers control pests more successfully, create a machine learning system for identifying

pests and recommending treatments on plant leaves.

2
1.3.2 Specific objectives

The purpose of this research project is to:

i. Assess machine learning methods to identify pests.

ii. Construct a machine learning model for precise pest identification and treatment advice

iii. Create an interface that farmers can easily utilize.

iv. Combine an extensive pest database with the machine learning model.

v. Evaluate the system's dependability and efficacy in actual farming environments.

1.4 Research hypothesis

H01: Reliability Hypothesis

The developed Machine Learning-based Automatic Pest Control System exhibits exceptionally high

reliability in accurately identifying and classifying diverse pest species.

H02: Accuracy Hypothesis

The Machine Learning algorithms employed in the pest management system demonstrate a high degree of

accuracy in predicting pest behavior patterns under varying environmental conditions.

H03: Effectiveness Hypothesis

The integrated system architecture of the Automated Pest Control System : TomatoPestGuard

effectively detects, controls, and manages pest populations while minimizing environmental impact and

non-target species intervention.

H04: Research Action Plan Hypothesis

The proposed research action plan for developing the Machine Learning-driven Automatic Pest Control

System: TomatoPestGuard efficiently outlines the necessary tasks, delineates responsible individuals,

and allocates required financial resources for successful completion.

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

management techniques by supporting the paradigm shift towards sustainable and

technologically sophisticated solutions. By integrating this state-of-the-art solution, communities

become wiser and more resilient while simultaneously addressing acute pest-related issues.

1.6 Significance of the study

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

build a solid system architecture through extensive testing in real-world settings.

1.8 Limitation of the study

The principal constraint of this research was its exclusive concentration on the creation and

execution of an Automatic Pest Control System: TomatoPestGuard driven by Machine Learning.

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

and building a strong system architecture for pest control.

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

developments in pest control techniques. It aims to clarify how cutting-edge technologies, in

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.

2.2 Monitoring Environmental Factors with Advanced Technologies

2.2.1 Introduction to Advanced Technologies in Pest Management

A revolutionary era in agricultural sustainability is being ushered in by the combination of

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

changing dramatically as a result of the introduction of advanced technologies like machine

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.

2.2.2 Applications in Environmental Monitoring for Pest Control

Beyond its theoretical potential, the integration of sophisticated technology in pest management

materializes in real-world applications that seek to transform environmental monitoring. This

chapter explores the various uses of state-of-the-art technology, such as IoT and machine

learning, for environmental monitoring specifically aimed at controlling pests. It seeks to

understand how these technologies enable accurate and timely monitoring of environmental

parameters essential to pest identification, behavioral analysis, and the development of focused

control methods by closely examining these applications. Through its applications in

environmental monitoring, this investigation aims to shed light on the concrete influence and

revolutionary potential of cutting-edge technology in changing the face of pest control.

2.2.3 Role of Advanced Technologies in Disaster Pest Management

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

reducing pest-related problems in catastrophe situations. It attempts to clarify how these

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

pest-related disasters in the ecological and agricultural spheres.

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

critical of their effectiveness, shortcomings, and prospects for development.

2.3.1 Overview of Existing Pest Detection Systems

Current pest detection systems represent a sophisticated patchwork of techniques and

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

traditional methods to cutting-edge technology advancements. It attempts to outline the features,

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.

2.3.2 Strengths and Weaknesses

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.

2.3.3 Technological Trends in Pest Management

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

advancements could transform pest identification, forecasting, and management.

2.4 Pest Control in Kenya

2.4.1 Pest Incidence in Kenya

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

difficulties and pest management requirements.

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

of the current pest management requirements in Kenya.

2.4.3 Governmental and Institutional Efforts in Pest Management

Kenya's agricultural resilience is bolstered by the coordinated efforts of governmental entities

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

protect Kenya's agricultural pursuits.

2.5 Research Conducted Previously on Machine Learning in Pest Control

2.5.1 Current Studies Using Machine Learning for Pest Management

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,

their techniques, and the advances they provide.

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,

their achievements, shortcomings, and ramifications.

2.5.3 Insights and Knowledge Acquired from Previous Studies

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

learning-driven pest management tactics, it attempts to outline the methodological approaches,

technological subtleties, and important lessons learned from these investigations.

2.6 Gaps in Current Research

2.6.1 Related works

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

of AI algorithms embedded in autonomous robotic devices for targeted pest management

(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

processing speed and network congestion are challenges.

(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

GSM connectivity and effectiveness of data visualization are challenges.

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

information system. Network latency and scalability are challenges.

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

storage latency, though.

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

properties that affect the precision of pest identification presents challenges.

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

study. To give farmers effective, affordable ways to increase agricultural productivity,

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.

Thorough troubleshooting may be necessary to guarantee compatibility and smooth

communication between frontend and backend components. Additionally, there may be

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.

2.6.2 Contributions of Machine Learning in Pest Control Research

1. Predictive Pest Outbreak Models: By using environmental factors and historical data,

machine learning models can predict future pest outbreaks, which helps with resource

allocation and proactive pest management techniques.

2. Improved Pest Identification: By utilizing pattern recognition and image recognition,

machine learning algorithms may significantly improve the accuracy of pest

14
identification. This allows for accurate species identification even in a variety of

environmental settings.

3. Adaptive insect Control Strategies: By enabling dynamic modification of control

methods based on real-time variations in insect populations and environmental

conditions, machine learning's flexibility maximizes the effectiveness of pest

management treatments.

4. Optimised Treatment Suggestions: Machine learning-powered systems are able to

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

encourages sustainable pest control methods.

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

strategies, and optimized treatment recommendations. These advancements signify a paradigm

shift towards sustainable, precise, and proactive pest management strategies that minimize

environmental impact while maximizing effectiveness. The study's focus on harnessing Machine

Learning's potential presents an innovative approach toward overcoming traditional limitations

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

specific techniques used in this novel pest control system.

3.2 Research Design

3.2.1 Research Type

The research incorporates a mixed-method approach, blending both qualitative and quantitative

methodologies. This mixed approach facilitates the development of an effective and innovative

pest control system using ML techniques.

3.3 Location of the Study

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

Automatic Pest Control System: TomatoPestGuard.

3.4 Population of the Study

The focus is on engaging with local agricultural communities, including farmers, agricultural

experts, and researchers. The interactions aim to incorporate valuable insights and perspectives

into the design and functionality of the pest control system.

3.5 Sampling Procedure and Sample Size

3.5.1 Sampling Procedure

Purposive sampling (Thompson, 2012)will be employed to select participants who possess

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

for the study.

3.5.2 Sample Size

The study will involve a sample size of 50 agricultural experts and farmers, representing 70% of

the accessible population. Of these, 35 participants will be purposively chosen based on

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

hardware (camera, ML algorithms), software infrastructure (data processing, analytics), and

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

research tools and address any operational challenges encountered.

3.6.2 Validity of the Instrument

Assessment of the instruments' validity, ensuring they effectively measure and detect pests as intended,
covering content, construct, and criterion validity.

3.6.3 Reliability of the Instrumentation.

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

3.7 Data Collection Procedure

Systematic data collection methods encompass qualitative techniques such as interviews and

quantitative approaches involving the deployment of sensors and data retrieval for analysis.

3.8 Data 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.

3.9 Ethical Considerations

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

The methodology incorporates a mixed-method approach to develop an efficient Automatic Pest

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

current system, requirement gathering, and a summary of the findings.

4.1 Feasibility study

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.

Analyzing a number of variables, including operational viability, economic viability, legal

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

viability, practicality, and likelihood of success.

For this machine learning-based automatic pest control system:

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.

For detailed findings, find the feasibility report on Appendix 1.

4.2 Overall Description of the system

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

streamlined process that powers the system:

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

analysis to pinpoint and categorize particular tomato plant illnesses.

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

implementing other interventions are examples of recommendations.

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.

4.2.1 Automatic Pest Control System: TomatoPestGuard use case diagram

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

users interact with the system to accomplish tasks.

21
Figure 1: Automatic Pest Control System: TomatoPestGuard use case diagram

4.2.2 Automatic Pest Control System: TomatoPestGuard class 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.

Figure 2 : Automatic Pest Control System: TomatoPestGuard class diagram

4.2.3 Automatic Pest Control System: TomatoPestGuard sequence diagram

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

or objects over time.

22
Figure 3: Automatic Pest Control System: TomatoPestGuard sequence diagram

4.2.4 Automatic Pest Control System: TomatoPestGuard data flow 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,

external destinations, and storage areas.

Figure 4: Automatic Pest Control System: TomatoPestGuard data flow diagram

4.2.5 Automatic Pest Control System: TomatoPestGuard activity diagram

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

parallel composition of lower-level activities, they offer a graphical language.

Figure 5: Automatic Pest Control System: TomatoPestGuard activity diagram

4.3 Requirement gathering

The process of obtaining and recording stakeholder requirements, expectations, 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

identifying, evaluating, and documenting both functional and non-functional requirements.

4.3.1 Functional Requirements

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.

4.3.1.1 Disease detection

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

management methods, disease detection in agricultural systems often entails recognizing

diseases in crops or plants. The system should accurately identify diseases on tomato leaves from

input images

4.3.1.2 Treatment recommendation

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

customized treatment strategy recommendations based on this analysis.

4.3.1.3 User interface

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

with the requisite tools and data to optimize system utilization.

24
4.3.2 Non-functional Requirements

Non-functional requirements (NFRs) are not so much features or behaviors as they are the

characteristics that define how a system functions. Performance, dependability, security,

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.

Identifying these ensures system usability and effectiveness.

4.3.2.1 Security

The term security describes the procedures and controls put in place to guard against

unauthorized access, modification, or destruction of a system, network, or data. As per (Muggah,

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

system should authenticate users and ensure data privacy.

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

therefore ensure high availability and reduce downtime.

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

interpret picture data and quickly generate treatment recommendations.

4.3.2.4 Others

To ensure the Automatic Pest Control System: TomatoPestGuard effectiveness and usability in

agricultural contexts, it must also meet a number of other non-functional requirements in

addition to security, availability, and performance. Among these prerequisites are:

Interoperability, Maintainability, Reliability, effectiveness, efficiency etc.

4.4 Summary

Using machine learning, the Automatic Pest Control System is revolutionizing agricultural pest

management. It guarantees efficacy and usability through requirements collecting, system

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,

parts, and design ideas is given in this section.

5.1 Logical design of the new diagram

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

frequently used in database design to model relational databases.

27
Figure 6 ER diagram for an automatic pest control using machine learning: TomatoPestGuard

5.2 Physical design

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

problems on tomato leaves and get treatment advice.

5.2.1 Dashboard overview

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

of the illness and the need for quick treatment.

Figure 7 Dashboard overview

5.2.2 Image upload

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.

Figure 8 Image upload ui

5.2.4 Disease identification

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.

Figure 9 Disease identification

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

instructions in addition to treatment alternatives.

Figure 10 Treatment recommendation

5.2.6 Settings and preferences

It is possible for users to alter settings and preferences to suit their own requirements and tastes.

The user experience can be customized thanks to this interface design.

Figure 11 Settings and preferences

5.2.7 Help and support

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.

Figure 12 Help and support

5.3 Database design of an Automatic pest control using machine learning:

TomatoPestGuard

5.3.1 Users Table

Information on system users, such as administrators and farmers, is kept in this table.

User_id Usernam Email Password User_type


e
1 Farmer1 Farmer1@gmail.com ***** Farmer
2 Admin1 Admin1@gmail.com ***** administrator

Table 1 user table

5.3.2 Images Table

Details about the uploaded photos of tomato leaves are kept in this table.

Image_id User_i Image_path Uploaded_at


d

29
1 1 /images/image1.jpg 2024-03-20 08:30:00
2 2 /images/image2.jpg 2024-03-20 10:30:00

Table 2image table

5.3.3 Diseases Table

Data on illnesses found on tomato leaves is kept in this table.

Disease_id Image_id Disease_name Detection_date


1 1 Leaf spot 2024-03-20 09:00:00
2 2 Pwodery Mildew 2024-03-21 11;00:00

Table 3: Disease table

5.3.4 Treatment Table

The suggested courses of action for the diseases that have been identified are listed in this table.

Treatment_id Disease_id Treatment_details Recommended_by


1 1 Apply fungicide every 2 weeks Ai_system
2 2 Use copper-based fungicide Ai_system

Table 4: treatment table

5.3.5 Database Logical Design Diagram for a TomatoPestGuard

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

particulars of implementation, such as hardware or software. It offers a conceptual picture of

how data moves through and is stored in the system by illuminating the connections between

data items, properties, and their interactions within the system.

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

tomato crops by streamlining the process of insect detection and treatment.

31
CHAPTER SIX

SYSTEM IMPLEMENTATION

6.0 Overview

This chapter discusses the specifics of implementing TomatoPestGuard, an automated pest

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

accomplish its goals.

6.1 Implemented features

6.1.1 Image upload

Farmers can upload pictures of tomato leaves to the system that may show symptoms of possible

illnesses.

Figure 14 Image upload

32
6.1.2 Disease detection

In order to identify symptoms of illnesses like bacterial wilt, leaf spot, and powdery mildew,

machine learning algorithms examine the provided photos.

Figure 15: Disease detection

6.1.3 Treatment recommendation

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

6.1.4 User authentication

With defined roles and permissions for administrators and farmers, user authentication

procedures provide safe system access.

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.

6.3 System changeover

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

the new system.

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,

design, and maintenance requirements of a software or system.

Documentation created specifically for the internal use of TomatoPestGuard developers,

engineers, and other technical professionals is referred to as internal documentation.

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

of the external documentations as depicted in appendix 1

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

of machine learning algorithms to transform pest management in tomato cultivation. To

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

evaluated throughout the implementation process.

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

TomatoPestGuard's flawless functioning.

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.

In summary, the introduction of TomatoPestGuard represents a revolutionary development in

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,

assessment, and improvements.

38
CHAPTER SEVEN

FINDINGS, CONCLUSION AND RECOMMENDATIONS

7.0 Findings

The results of an Automatic pest control using machine learning: TomatoPestGuard's

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

detecting and curing tomato plant diseases.

7.2 Recommendations

In order to optimize TomatoPestGuard's functionality and increase its usefulness for farmers, the

following suggestions are put forth:

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

about pest control.

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

addresses the unique requirements and difficulties that farmers encounter.

By following these suggestions, TomatoPestGuard can keep developing into a useful tool for

tomato growers, enhancing crop productivity and supporting sustainable agriculture.

References

40
Abalos, M. a. (2023, 07). Iot Based Flood Detection, Alarm and Monitoring System Using Multilayer

Perceptron and Regression. INTERNATIONAL JOURNAL OF MULTIDISCIPLINARY RESEARCH AND

ANALYSIS, 06. doi:10.47191/ijmra/v6-i7-16

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

(pp. 1-5). Paris, France: BioSmart.

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-

3417). Retrieved March 2024, from https://www.mdpi.com/2076-3417/13/5/2921

Baresi, L. (2009). Activity Diagrams. In L. Z. LIU, Encyclopedia of Database Systems (pp. 41-45). Boston,

MA: Springer US.

Bayih, A. Z. (2022). Utilization of Internet of Things and Wireless Sensor Networks for Sustainable

Smallholder Agriculture. JOURNAL = {Sensors},, 22(1424-8220). doi:10.3390/s22093273

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

Threats. Sensors, 23. Retrieved from https://www.mdpi.com/1424-8220/23/24/9733

Brajesh K. Singh, M. D.-B. (2023). Climate change impacts on plant pathogens, food security and paths

forward. Nature Reviews Microbiology, 21, 640-656. doi:https://doi.org/10.1038/s41579-023-

41
00900-7

Campbell, S. a. (2020). Purposive sampling: complex or simple? Research case examples. Journal of

research in Nursing, 652-661.

Cardim Ferreira Lima, M. a. (2020). Automatic Detection and Monitoring of Insect Pests—A Review.

Agriculture, 10. doi:10.3390/agriculture10050161

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

Sustainable Solutions (CSITSS), 1-4.

Chinell, D. (1990). System Documentation: The In-Line Approach. Wiley.

Chonoles, M. a. (2011). UML 2 For Dummies. Wiley.

Cooper, A. a. (2014). About Face: The Essentials of Interaction Design. Wiley.

Dan Popescu, c. a. (2023). New trends in detection of harmful insects and pests in modern agriculture

using. Frontiers in plant science, 14, 1268167. doi:10.3389/fpls.2023.1268167

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.

Kendall, K. a. (2020). System Analysis and Design. Pearson Education, Limited.

42
Khan, A. a.-K. (2024). AI-Enabled Crop Management Framework for Pest Detection Using Visual Sensor

Data. Plants, 13. Retrieved from https://www.mdpi.com/2223-7747/13/5/653

Lancaster, K. J.-J. (2019). Feeding strategies and shade type for growing cattle grazing endophyte-infected

tall fescue. Livestock Science, 103829.

Lane, J. a. (2003). Comparing Party System Change. Taylor & Francis.

Lee, S. B. (2024). Present status of insecticide impacts and eco-friendly approaches for remediation-a

review. Environmental Research, 240, pages = {117432},.

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 &

Artificial Intelligence (ICDSAAI), 1-6.

Muggah, R. a. (2019). Security Sector Reform and Citizen Security: Experiences from Urban Latin America

in Global Perspective. Ubiquity Press.

Neupane, K. a.-G. (2021). Automatic identification and monitoring of plant diseases using unmanned

aerial vehicles: A review. Remote Sensing, 3341.

Roger S. Pressman, B. R. (2014). Software Engineering: A Practitioner's Approach. McGraw-Hill Education.

Saliu, F. a. (2023). A Review on the Impact of Sustainable Agriculture Practices on Crop Yields and Soil

Health. International Journal of Information Technology, 1-13.

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,

Applications and Future Directions. Computers, 12, 5. doi:10.3390/computers12050091

Thomas McAvinew, R. M. (2004). Control System Documentation: Applying Symbols and Identification.

ISA-The Instrumentation, Systems, and Automation Society.

Thompson, S. K. (2012). Sampling. John Wiley \& Sons.

UML Use-Case Diagrams. (2005). In S. W. Ambler, The Elements of UML (pp. 33-46). Cambridge:

Cambridge University Press.

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

Informatics (ICOEI), 991-995. doi:10.1109/ICOEI56765.2023.10125824

Wang, Y. W. (2023). Real-time monitoring of insects based on laser remote sensing. Ecological Indicators,

151(1470-160x), 110302. doi:https://doi.org/10.1016/j.ecolind.2023.110302

Watkins, J. a. (2010). References. In Testing IT: An Off-the-Shelf Software Testing Process (pp. 315-318).

Cambridge: Cambridge University Press.

Zarymkanov, T. a. (2023). Enhancing Machine Learning Training Performance in Smart Agriculture

Datasets Using a Mobile App. 2023 IEEE International Workshop on Metrology for Agriculture

and Forestry (MetroAgriFor), 455-460.

44
Appendices

Appendix 1 User Manual

Automatic Pest Control using machine Learning TomatoPestGuard User Manual

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

2.1 System Requirements

Operating System: Any modern OS (Windows, macOS, Linux)

Web Browser: Google Chrome, Mozilla Firefox, Safari, Microsoft Edge

Internet Connection: Required

2.2 Accessing TomatoPestGuard:

Open your web browser.

Navigate to http://127.0.0.1:8080.

Enter your username and password to log in starting by creating an account.

3. User Interface Overview

Dashboard: Provides an overview of recent detections and recommendations.

Upload Image: Allows you to upload tomato leaf images.

View Reports: Access past detection and recommendation reports.

Settings: Customize preferences and notifications.

4. Uploading Images

45
Click "Upload Image".

Select the tomato leaf image.

Click "Upload" to submit.

5. Viewing Reports

Go to "View Reports".

Select report category.

Click on a report for details.

6. Settings

Personalize Notification Preferences.

Update Profile Information.

7. Troubleshooting

Contact support at kiddosign@gmail.com

8. Glossary

Disease Detection: Identifying diseases on tomato leaves.

Treatment Recommendation: Suggestions for treating diseases.

9. Conclusion

Thank you for choosing Automatic pest control using machine learning: TomatoPestGuard. For further

assistance, contact support.

46

You might also like