Report 1
Report 1
In rural areas globally, the coexistence of human populations and wildlife poses persistent
challenges, often leading to conflicts endangering community safety and wildlife conserva-
tion efforts. To address this, the Advanced Animal Detection and Alert System is proposed.
Grounded in the YOLOV5 algorithm, this system enables real-time detection and classification
of wildlife near human settlements. Integration with OpenCV facilitates seamless data prepro-
cessing and analysis, ensuring prompt threat identification and timely alerts sent via email. By
empowering communities to take proactive measures, it mitigates conflict risks and minimizes
damages caused by wildlife intrusions. Moreover, it fosters collaboration among stakeholders,
promoting effective wildlife management and community safety. By reducing conflicts and pro-
moting peaceful interactions, it contributes to biodiversity conservation and ecosystem preser-
vation. The object detection model shows promising performance, achieving a mean Average
Precision (mAP) at 0.5 for all classes of 0.965, accurately identifying and localizing animals
within the dataset. Through awareness-raising and sustainable wildlife management practices,
it aims for lasting positive impacts on rural communities and their environments.
iii
Contents
DECLARATION i
ACKNOWLEDGEMENT ii
ABSTRACT iii
LIST OF FIGURES vi
1 INTRODUCTION 1
1.2 Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 LITERATURE SURVEY 3
3 PROPOSED SYSTEM 5
iv
3.2 Materials and Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.2.1 Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4.1 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.2 Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.2.1 PR Curve . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5 CONCLUSION 16
6 FUTURE SCOPE 17
BIBLIOGRAPHY 18
ANNEXURE 19
v
LIST OF FIGURES
vi
LIST OF TABLES
vii
LIST OF ABBREVIATIONS
Abbreviations Definition
CCTV Closed-Circuit Television
mAP Mean Average Precision
OPENCV Open Source Computer Vision Library
YOLOV5 You Only Look Once Version 5
viii
Chapter 1
INTRODUCTION
This chapter introduces the project’s primary objectives, emphasizing its goal of tackling
pressing issues in rural communities through the implementation of an Advanced Animal De-
tection and Alert System. By harnessing advanced computer vision technologies, the system
aims to mitigate human-wildlife conflicts by enabling real-time detection and proactive alerting
measures.
1.2 Objective
The primary objective of this project is to develop and deploy an Advanced Animal Detec-
tion and Alert System capable of mitigating human-wildlife conflicts and enhancing community
safety in rural areas. Specific objectives include:
• Developing a robust real-time detection system for accurately identifying and categoriz-
ing wildlife near human settlements.
• Implementing an alert mechanism to promptly notify residents and authorities upon de-
tecting wildlife presence, enabling timely preventive actions.
1
• Contributing to wildlife conservation efforts by promoting coexistence between humans
and wildlife, thereby minimizing negative interactions and preserving natural ecosystems.
2
Chapter 2
LITERATURE SURVEY
This chapter provides a comprehensive overview of existing research and studies relevant to
the wild animal detection and alert system, providing insights into current methodologies.
R. Thangaraj et al.[2] introduced YOLOV5 and YOLOV3 models for automatic detection
and classification of wild animal species. However, these models suffer from limited accuracy,
particularly in complex environments. Their work highlights the potential of YOLO models in
wildlife monitoring but underscores the need for further refinement to enhance accuracy.
B. K and D. V[3] , in their review, highlighted the reliance of computer vision techniques
on extensive datasets for successful animal detection and classification. They emphasized the
necessity of mitigating dataset dependency to propel the field of animal detection and classifi-
cation forward, presenting opportunities for future enhancements in application.
Glenn et al.[4] introduced YOLO-Z in their work ”YOLO-Z: Improving small object detec-
tion in YOLOv5 for autonomous vehicles” to tackle the challenge of small object detection in
3
autonomous vehicles. This modification is designed to enhance YOLOv5’s performance in this
specific aspect. Their research aims to enhance the overall efficiency and safety of autonomous
vehicle systems by accurately detecting small objects.
Moreover, the lack of real-time alert systems limits the scalability of wildlife management
practices and inhibits the adoption of modern technologies in wildlife monitoring. There is a
clear need for an enhanced system that can detect wild animals in real-time and send immediate
alerts to relevant stakeholders. Such a system would enable timely response and mitigation of
potential risks, thereby improving wildlife management efficiency and enhancing human safety
in areas prone to wildlife encounters. Closing this gap is imperative for advancing the field
of wildlife monitoring and management, facilitating the integration of innovative technologies
such as deep learning-based object detection models
4
Chapter 3
PROPOSED SYSTEM
The proposed system aims to develop a revolutionary approach to wildlife monitoring through
real-time detection and alert mechanisms powered by the YOLOv5 deep learning model. Tradi-
tional methods often lack immediate alert capabilities, leading to delayed responses to wildlife
threats. By leveraging YOLOv5, the system enables instant identification of wild animals from
CCTV videos, triggering timely alerts to stakeholders. This innovative approach enhances
wildlife management efficiency, mitigates risks, and improves human safety in wildlife-prone
areas, ushering in a new era of proactive wildlife monitoring.
Beyond immediate threat detection, the proposed system contributes to long-term wildlife
conservation efforts. By accurately identifying and tracking wild animals in real-time, the sys-
tem generates valuable data insights that can inform habitat preservation strategies and wildlife
management practices. This data-driven approach aids in understanding wildlife behavior pat-
terns, migration routes, and habitat utilization, allowing for informed decision-making by con-
servation authorities. Furthermore, the system’s alert messaging feature serves as a proactive
5
measure to prevent human-wildlife conflicts. By promptly notifying relevant stakeholders about
the presence of wild animals in specific areas, preemptive actions can be taken to minimize po-
tential risks to both humans and animals. This proactive stance not only enhances human safety
but also reduces the likelihood of wildlife disturbance and stress, thereby promoting harmonious
coexistence between humans and wildlife.
3.2.1 Tools
1. Visual Studio: The study was conducted using Visual Studio, offering a comprehensive
integrated development environment (IDE) for software development tasks. Visual Studio
provided a robust platform for writing, debugging, and executing code, particularly in the
context of developing and testing deep learning models. The IDE’s features facilitated
seamless experimentation with deep learning algorithms and the implementation of the
proposed classification system.
2. Jupyter Notebook: The study was conducted using the Jupyter Notebook, providing an
interactive and collaborative platform for developing and executing Python code. This
environment facilitated seamless experimentation with deep learning models and the im-
plementation of the proposed classification system.
3. LabelImg (For Annotating Images): LabelImg was employed as a crucial tool for an-
notating images, a fundamental step in preparing data for training deep learning mod-
els. Annotating images involves labeling objects of interest within the images, providing
ground truth data for model training. LabelImg’s intuitive interface and annotation capa-
bilities streamlined the annotation process, ensuring accurate and consistent labeling of
objects in the dataset.
4. CPU: AMD Ryzen 7 5800H: The computational power for this study was provided by
an AMD Ryzen 7 5800H CPU. The CPU played a pivotal role in various aspects of
the study, including model training, feature extraction, and overall execution of the deep
6
learning algorithms. The Ryzen 7 5800H’s high performance and efficiency significantly
contributed to the timely processing of image data and the training of complex neural
network architectures, ensuring smooth progress in the experimentation and development
phases of the project.
To facilitate the training process, a frame slicing algorithm is implemented to segment the
video into individual frames. Each frame is then labeled using LabelImg, a tool specifically de-
signed for annotating images. This meticulous labeling process ensures that each frame contains
accurate annotations of wild animals, providing ground truth data for training and evaluation of
the YOLOv5 model.
The YOLOv5 model undergoes fine-tuning to specialize in recognizing the distinct features
and characteristics of various animal species. Upon detection of a wild animal, the system
triggers an alert mechanism to notify relevant stakeholders, such as wildlife authorities or lo-
cal residents, via email. This ensures a timely response and action to mitigate potential risks
associated with wildlife presence.
The system architecture emphasizes simplicity and efficiency, focusing on the integration of
YOLOv5 for real-time animal detection and alert messaging systems for timely notifications.
This streamlined approach allows for effective detection of wild animals and enhances human
safety in areas monitored by CCTV cameras. By combining advanced deep learning techniques
with practical alert mechanisms, the system contributes to wildlife conservation efforts and
minimizes human-animal conflicts.