Professional Documents
Culture Documents
FYP Proposal1
FYP Proposal1
Submitted by:
AUIC-19FALL-BSCS-3501
Student 2 HABIBULLAH
AUIC-20FALL-BSCS-3984
Supervised by:
Final Year Project proposal submitted to the Department of Computing, Abasyn University
Islamabad Campus in partial fulfillment of the requirements for the degree of Bachelor of
Science in Computer Science (BSCS)
Department of Computing
1
Spring 2023
Table of Contents
1 Introduction............................................................................................................................................1
2 Problem Statement.................................................................................................................................2
3 Literature Review...................................................................................................................................2
4 Research Objectives...............................................................................................................................4
5 Significance of the Research..................................................................................................................4
6 Research Methodology..........................................................................................................................4
6.1 Hardware Requirements:...............................................................................................................4
6.2 Software Requirements:.................................................................................................................5
6.3 Convolutional Neural Networks (CNN)........................................................................................6
6.3.1 Conv2D:.................................................................................................................................6
6.3.2 Convolutional Layer..............................................................................................................6
6.3.3 Pooling...................................................................................................................................6
6.3.4 Flattening...............................................................................................................................6
6.3.5 Fully Connected.....................................................................................................................6
6.4 Setup Raspberry pi:........................................................................................................................7
6.5 Installation and Coding:.................................................................................................................7
7 Reference...............................................................................................................................................8
8 FYP Timeline.........................................................................................................................................9
2
1 Introduction
Animal-vehicle collisions (AVC) are a serious issue worldwide, causing harm to animals,
damage to vehicles, and fatalities for drivers and passengers. The severity of the problem is
demonstrated by official statistics, with many people killed or injured in collisions with wildlife
each year.
Official statistics show that animal-vehicle collisions have resulted in significant numbers of
deaths and injuries worldwide. For example, in the USA, on average, 200 human deaths, 29,000
injuries, and $1.1 billion in property damage occur each year due to these collisions. In Canada,
the number of people killed due to AVC is largest between 9:00 pm to midnight. Similarly, in
Washington State, between 2000 and 2014, at least 14,969 deer and 415 elk died in collisions
with vehicles on state and federal highways. [1]
In Sweden, Camel Vehicle Collision 4092 WVCs involving moose occurred in a year, involving
moose result in a 5% fatality rate and other serious injuries. Camels are the most fatal animals to
hit with a vehicle and can cause up to a 25% fatality rate 22,897 camel-related accidents have
been recorded over the years 2015-2018. [2]
So there is a need such system which detection animal and send alert message to authorized user
as well as Wild life officer to prevent human or animal death. Therefore we make vision-based
animal detection system which help to reduce human-wildlife conflicts Animal Vehicle
Collisions, Economic loss and many other field. by providing early warning systems.
In conclusion, this project has a significant potential impact on animal welfare, public safety, and
security. It will contribute to reducing the number of vehicle collisions involving animals,
improving the management of farm animals, and enhancing security in private areas. This
problem must be attended immediately and an effective solution must be created and
accomplished. Thus, this project aims to address this problem
2 Problem Statement
Animal detection plays a crucial role in various fields, including agriculture, farming, and
wildlife management, to prevent potential economic losses and safety hazards caused by animal-
3
related incidents. Traditional methods of animal detection are time-consuming, labor-intensive,
and prone to errors, which necessitates the development of an accurate and efficient animal
detection system. The system must be capable of detecting and classifying different types of
animals, including wild and domesticated animals, and provide real-time alerts to farmers,
landowners, and wildlife officials to take prompt and effective action to prevent any potential
damage or harm. The system should also be cost-effective, easy to install and maintain, and
should not harm the animals or disrupt their natural habitats. Therefore, there is a need for an
efficient animal detection system that can accurately identify and classify animals and provide
real-time alerts, ultimately reducing human-wildlife conflicts and improving animal management
and conservation efforts.
In the Over the last few years, CNN-based techniques have made significant progress in
universal object detection domain. However, there are certain challenges with animal detection
mechanism.
First, the shape of the animal varies with their body parts movement that makes them challenging
to detect.
Second, animal of same class have different color patterns, shapes, and size.
Third, environmental changes like low contrast or illumination change drag-down the
performance of animal detector.
Therefore, on the basis of these restrictions, this work focused on developing an animal detection
model.
3 Literature Review
There has been a significant amount of research and surveys conducted on animal detection,
especially in the context of wildlife conservation, Roadside animal detection, Camera trapping.
In [3] Butale et al. used CNN, XGBOOST and PSO as a classification algorithms. The result is
animal name and accuracy of detection. The result obtained training and validation accuracies of
98.1% and 91.4% using CNN, 100% and 89.19% using XGBoost , 48.72% and 91% using PSO
respectively. On test data CNN showed an accuracy of 87%, XGBoost showed an accuracy of
86% and PSO showed an accuracy of 60%.
4
[4].S Santhiya, M Surekha et al, proposed the method to protect the farmland by using raspberry
pi. They utilizes the RFID (Radio Frequency Identification) module and GSM (Global System
Mobile) modem for this purpose. It is inject in the animal skin, if the animals enter into the farm
land the RFID reader detect the animal and send the message to the forest officer and farmers
using GSM. And also the animals repellent to the forest by using irritation noise by speaker and
creating smoke by fogging machine. This method can be dangerous to the wild animals since the
injected tags can create infection. Also it is highly impossible to inject RFID tags to all the wild
animals in any forest area.
To mitigate the limitations of RCNN, authors present Fast-RCNN . Although, Fast-RCNN is fast
as compare to RCNN, but still not suitable for real-time applications. Because, handcrafted
features cause bottleneck in detection process. Moreover, it utilize VGG-16 model as a backbone
architecture that neglect multi-scale features. To overcome the limitation of RegionCNN and
Fast-RCNN , authors design another region proposal network based detector known as Faster-
RCNN . It utilize VGG-16 CNN model as a backbone architecture. And it fails to detect partially
occluded objects. So in authors proposed a scale-invariant Spatial Pyramid Pooling Networks
(SPPNet) for detection. Although, it achieve significant results, but it ignore intermediate layers
for model fine tuning and only fine-tuned on fully-connected layer.
The YOLO V2 utilize Darknet19 as a CNN backbone architecture, that neglect multi-level
features. YOLO V2 are also scale variant and object scales disturbed the detection performance.
[5]
In this paper, the proposed architecture can be implemented in a dashboard system or in roadside
units (RSUs). Stationary cameras are installed at the roadside; when a large animal enters their
field of view, the cameras detect the animal and notify upcoming vehicles through flashing signs
installed on the roadside.
The detection of road-faring animals by stationary or mobile cameras is a challenge due to
several undesirable factors. These factors are mainly related to the surrounding environment,
camera resolution, vehicle mobility, and the large intraclass variability between different types of
large animals.
5
Compared to human faces and heads, which are almost unique and standard, animal faces and
heads have greater variation in appearance. Moreover, the body of a large animal exhibits high
variability within the same class (e.g., moose), and between animals of different classes. This is
due to the fact that animals possess specific properties including texture, height, shape, and
different views (posterior, anterior, and lateral), that distinguish them from others.[6]
4 Research Objectives
Improved safety: Animal detection systems can significantly reduce the risk of animal-
vehicle collisions, which can cause significant damage to vehicles and result in human and
animal injuries or fatalities.
Enhanced animal welfare: Animal detection systems also improve animal welfare by alerting
farmers or ranchers to the presence of animals in areas where they should not be, such as on
roads or in restricted areas.
Increased efficiency: Animal detection systems can improve the efficiency of farming
operations by enabling farmers to monitor animal movements and behavior remotely.
Reduced property damage: Animal detection systems reduce property damage on farms and
private areas by alerting owners to the presence of animals in areas where they should not
be. This can help prevent damage to crops, fencing, and other property.
6
6 Research Methodology
Raspberry pi
Raspberry Camera
Power Supply
Python
OpenCV
TensorFlow or other machine learning libraries for training and running object detection models
Our proposed system is comprised of three main modules: Animal detection and identification
(to detect the animal's presence and identify them), and GSM module (to send alert messages to
the authorized person).As mentioned in figure 1.
7
FIGURE 1
6.3.1 Conv2D:
Convolution conserves the association between pixels by learning image features by means of
small squares of input image data. In this mathematical operation, two inputs search as image
8
matrix and a filter is used. Convolutional [7] of an image data with various filters can do
operations like an edge detection, blur and sharpening of images.
6.3.3 Pooling
Pooling layer would lessen the number of parameters when a large image is given as input. Max
pooling is done by taking the largest element from the revised feature map.Then objective of
max pooling to down sample an input image, reducing its dimensions etc.
6.3.4 Flattening
Flattening[8] is the procedure for converting the two dimensional array set into a single, long
continuous linear vector, It receives the output from the convolutional layers, flattens its
structure to create a single long feature vector to be use the next layer for the final classification.
The hidden layers inside a Convolutional Neural Network that are called as Fully Connected
Layer [9]. These are a specific type of hidden layer which must be used within the CNN. This is
used to combine the feature into more attributes that predict the outputs more accurately.
A Raspberry Pi board
We Collect and prepare a dataset of animal images. The dataset should include images of
the animals we want to detect in various poses, lighting conditions, and backgrounds.
9
Preprocess the dataset to ensure that the images are standardized in size, orientation, and
color. You can use Python libraries like OpenCV and Pillow for image preprocessing.
Split the dataset into training, validation, and test sets. The training set will be used to
train the CNN, the validation set will be used to tune the hyper parameters, and the test
set will be used to evaluate the performance of the model.
Train a CNN on the prepared dataset using a deep learning framework like TensorFlow
or PyTorch. We can use transfer learning by using pre-trained models like VGG16,
ResNet, or RCNN or Fast RCNN, or Hybrid-Net and fine-tuning them on your dataset.
Once the CNN is trained, save the model weights and architecture to a file.
Implement the detection system on Raspberry Pi by installing the required software
libraries, including TensorFlow or PyTorch, OpenCV, and NumPy.
Capture live video from the Raspberry Pi camera or a USB camera.
Preprocess the video frames by resizing, normalizing, and converting them to the input
format required by the CNN
Load the trained CNN model onto the Raspberry Pi and use it to classify each video
frame as containing an animal or not.
If an animal is detected, display a message or send alert message to the user.
Optimize the performance of the system by tweaking the hyper parameters and
experimenting with different CNN architectures and pre-processing techniques.
7 Reference
[1]. Saxena, A., Gupta, D., & Singh, S. (2021). An Animal Detection and Collision Avoidance
System Using Deep Learning. Lecture Notes in Electrical Engineering, 1069–1084.
https://doi.org/10.1007/978-981-15-5341-7_81
[2]. AlNujaidi, K., & AlHabib, G. (2023). Computer Vision For a Camel-Vehicle Collision
Mitigation System. International Journal on Cybernetics & Informatics, 12(1), 1–9.
https://doi.org/10.5121/ijci.2023.120111
10
[3]. Butale, S., M., Dongare, K., D., & Sawant, S., T. (2023). Detection and classification of
animal using Machine learning and Deep learning. International Research Journal of
Technology, 05(03).
[5]. Vision-Based Animal Detection Using CNN To Mitigate Vehicle-Animal Collision. (2023)
[6]. Mammeri, A., Zhou, D., & Boukerche, A. (2019). Animal-Vehicle Collision Mitigation
System for Automated Vehicles. IEEE Transactions on Systems, Man, and Cybernetics: Systems.
[7]. Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I., & Salakhutdinov, R. (2014). A
Simple Way to Prevent Neural Networks from Overfitting. Journal of Machine Learning
Research, 15, 1929–1958.
[8]. Torge, W. (2001) Geodesy (3rd edition). De Gruyter . ISBN 3-11-017072-8.
[9]. Iniyaa, K. K., Divya, J. K., Devdharshini,S., & Sangeethapriya, R., (2021). Crop
Protection from Animals Using Deep Learning. INTERNATIONAL JOURNAL OF
PROGRESSIVE RESEARCH IN SCIENCE AND ENGINEERING, 2(3).
11
8 FYP Timeline
12