Node Js Project Work
Node Js Project Work
Bachelor of Technology
in
Computer Science and Engineering
Submitted by
Certificate
This is to certify that the Node js Project work entitled “AI BASED INSECT IDENTIFICA-
TION AND PESTICIDE RECOMMENDATION SYSTEM” is a bonafide work carried out
by LAGALA VARUN bearing Roll no.23SS1A0538 and MUDAVATH RAJESH bearing Roll
no. 23SS1A0542 ,in partial fulfillment of the requirements for the degree of BACHELOR OF
TECHNOLOGY in COMPUTER SCIENCE AND ENGINEERING discipline to Jawaharlal
Nehru Technological University Hyderabad College of Engineering Sultanpur during the aca-
demic year 2024- 2025.
Guide: Principal
Dr. P. Krupa Sagar Dr. G. Narsimha
Assistant Professor Principal & Professor of CSE
i
Declaration
We hereby declare that the Node js Project entitled ”AI BASED INSECT
IDENTIFICATION AND PESTICIDE RECOMMENDATION SYSTEM”
is a bonafide work carried out by L.VARUN bearing roll no. 23SS1A0538 and
M.RAJESH bearing roll no. 23SS1A0542 , in partial fulfillment of the re-
quirements for the degree of Bachelor of Technology in Computer Science and
Engineering discipline to Jawaharlal Nehru Technological University Hyder-
abad University College of Engineering Sultanpur during the academic year
2024-2025. The results embodied in this report have not been submitted to any
university or institution for the award of any degree or diploma.
ii
Acknowledgment
I wish to take this opportunity to express my deep gratitude to all those who
helped me in various ways during my Node js Project Work. It is my pleasure
to acknowledge the help of all those individuals who were responsible for fore-
seeing the successful completion of my Node js Project Work.
LAGALA VARUN
(23SS1A0538)
MUDAVATH RAJESH
(23SS1A0542)
iii
Contents
Certificate i
Declaration ii
Acknowledgement iii
Abstract vi
List of Figures 1
1 INTRODUCTION 1
1.1 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
iv
2 System Requirements 4
4 OUTPUT 11
CONCLUSION 15
REFERENCES 16
v
Abstract
vi
List of Figures
vii
Chapter 1
INTRODUCTION
1.1 Background
Agriculture is the backbone of many economies and is vital for food security.
One of the most persistent problems in crop production is the damage caused
by insect pests. These pests not only reduce yield but can also destroy entire
crops if not identified and managed in time. Traditionally, farmers rely on man-
ual inspection to detect pests and determine the appropriate pesticide, which is
time-consuming, error-prone, and dependent on expert knowledge.
1
1.2 Objectives
2
1.4 Significance of the Project
3
Chapter 2
System Requirements
4
2.2 WorkFlow of the System
Request Handling: The image is sent to the Flask backend via a POST API
call.
Insect Detection: The model predicts the insect species or category (e.g.,
aphid, beetle, caterpillar).
Result Display: The frontend displays the name of the insect along with the
recommended pesticide(s) and optionally other control tips.
3.4.1 Insect Detection Module Function: Takes an image input and classifies it
into one of the known insect classes.
5
Output: Insect name or category label.
Features:
File Upload
Result Display
Responsive Design
6
Chapter 3
12 function App () {
13 const [ image , setImage ] = useState ( null ) ;
14 const [ result , setResult ] = useState ( null ) ;
15
29 try {
30 const response = await fetch ( ’ http :// localhost :5000/ analyze ’ , {
7
31 method : ’ POST ’ ,
32 body : formData ,
33 }) ;
34
42 return (
43 < div className = " app " >
44 < div className = " container " >
45 < h1 className = " title " > Smart Insect Identification System </ h1 >
46 < h2 className = " subtitle " > Upload an image to analyze </ h2 >
47
48 < input type = " file " accept = " image /* " onChange ={ ha ndleIm ageCha nge
} />
49
50 { image && (
51 < div className = " image - preview " >
52 < img src ={ URL . createObjectURL ( image ) } alt = " Selected insect "
/>
53 </ div >
54 )}
55
8
75
78
82 function App () {
83 const [ image , setImage ] = useState ( null ) ;
84 const [ result , setResult ] = useState ( null ) ;
85
99 try {
100 const response = await fetch ( ’ http :// localhost :5000/ analyze ’ , {
101 method : ’ POST ’ ,
102 body : formData ,
103 }) ;
104
112 return (
113 < div className = " app " >
114 < div className = " container " >
115 < h1 className = " title " > Smart Insect Identification System </ h1 >
116 < h2 className = " subtitle " > Upload an image to analyze </ h2 >
117
118 < input type = " file " accept = " image /* " onChange ={ ha ndleIm ageCha nge
} />
119
9
120 { image && (
121 < div className = " image - preview " >
122 < img src ={ URL . createObjectURL ( image ) } alt = " Selected insect "
/>
123 </ div >
124 )}
125
126 < button onClick ={ handleAnalyze } > Analyze </ button >
127
10
Chapter 4
OUTPUT
11
Figure 4.2: Choosing Image from Files
12
Figure 4.3: Selecting and Waiting for Result
13
Figure 4.4: After Analyzing the result is displayed
14
CONCLUSION
• Built a responsive and user-friendly web interface using React.js for seam-
less image uploads and result visualization.
This system demonstrates real-world value by reducing the time, effort, and
guesswork in pest control decision-making, thus contributing to smart farming.
15
REFERENCES
2. ReactJS website – Used to build the user interface of the web application.
https://reactjs.org
16