IoT-Enhanced Smart Surveillance System For Wildlife Collision Prevention On Sri Lankan Roads
IoT-Enhanced Smart Surveillance System For Wildlife Collision Prevention On Sri Lankan Roads
ISSN No:-2456-2165
Abstract:- This research paper presents a mobile The Sri Lankan government and conservation
application-based solution for real-time road safety organizations have implemented measures to reduce animal
aimed at mitigating animal-vehicle conflicts in Sri collisions, such as building wildlife crossings and promoting
Lanka. The proposed system is developed in response to road safety awareness. Drivers must also be aware of the
the increasing incidents of animal-vehicle collisions, potential for AVCs and take steps to reduce the risk, such as
which pose significant risks to both human safety and slowing down and being alert for wildlife on the road.
wildlife conservation efforts. By combining knowledge-
based case studies and crowd-sourcing techniques, the The primary focus will be on conducting a knowledge-
application aims to identify animal habitats and based case study to determine the habitat and behavior of
behaviors based on user location, enabling drivers to animals in various locations [1]. This study will involve
take proactive measures to prevent such accidents. gathering and retrieving data to inform passengers, utilizing
Image processing is used to identify objects using crowd-sourcing technologies to obtain additional details and
YOLOv7 technology. Ultrasonic sensors, a insights from people. Additionally, an RSS feed will be used
microcontroller, the Doppler Effect, and relative velocity to obtain news and weather information for specific areas,
calculations are used to segment the signal-to-noise ratio enabling the notification of users in different locations when
and alert the driver of any nearby animals. The research necessary.
also provides guidelines for implementing methods to
reduce animal-vehicle collisions and raises awareness The second aspect of the study aims to capture animals
among the public regarding the importance of road from moving vehicles, identifying their behaviors, and
safety in wildlife-rich areas. Upon detection of the conveying information to users. It will focus on clear, high-
animal, the system emits an anti-frequency range quality footage of different animal types, enabling
tailored to specific species, effectively deterring them identification of direction and distance. Computer vision and
from approaching the vehicle. Through the mobile image processing techniques will be employed to overcome
application, users can access real-time alerts, receive human observation limitations and improve animal
feedback from others, and contribute to a collective detection.
effort in ensuring safer roads for both humans and
animals. The third aspect, Unseen identification is highly
effective in dark environments [19][20], as a signal is
Keywords:- AVC (Animal Vehicle Collision), Animal transmitted to the environment and processed to identify
Behavior and Habitat, Crowdsourcing, YOLOV7, Doppler animals within a specified distance. Research has focused on
Effect, Anti-Frequency. frequency, frequency emission, and rollback frequency
recovery after being hit by animals. Key factors include
I. INTRODUCTION vehicle vibration, Doppler effect, moving object laws, and
time.
Animal-vehicle collisions (AVCs) are a significant
threat to biodiversity, human safety, and economic costs in The study proposes improved solutions for animal-
Sri Lanka [1]. These collisions occur due to the close vehicle collision mitigation, including guidelines for
interaction between human and wildlife habitats, resulting in implementing techniques and public education. It involves
numerous accidents and environmental impacts. In Sri projecting anti-frequency waves onto animals and providing
Lanka, an estimated 26,489 motor vehicle and animal instructions for responding in encountered scenarios. User
accidents occur annually, causing significant human deaths, feedback and experience are crucial, aiming to prevent
injuries, property damage, and other costs [2]. The lack of conflicts and minimize tragic incidents [17].
public awareness and negligence towards AVCs exacerbates
the problem, leading to a lack of effective mitigation
measures. Road networks often fragment animal habitats
and home ranges, leading to a reduction in animal
population size due to behavioral changes.
The study reveals a rise in AVCs in the region since 2011, likely due to increased road traffic and human settlements in
wildlife areas. These vehicles can cause severe harm to animals and humans, resulting in death or serious injury.
A study in Sri Lanka reveals high vehicle speeds, small-bodied animals, and nighttime driving are major factors contributing
to animal-vehicle collisions (AVCs). AVCs result in 161 accidents annually, killing 40 species of animals.
The study utilized road surveys, driver surveys, and Users are notified with relevant and proper notifications
interviews with wildlife experts to identify drivers' main using the processed information.
causes of AVCs. They believed high vehicle speeds were
the main cause, with small-bodied animals more likely to be Data collection is time-consuming and labor-intensive,
hit. Nighttime visibility made it difficult for drivers to but crucial for accurate results. Geofence can be created
identify animals, potentially causing accidents. Also, it using technologies like GPS, RFID, Wi-Fi, or cellular data.
highlights the importance of understanding the causes and Customized notifications include relevant information, such
factors of AVCs to develop strategies for wildlife as animal type, sighting time, and location.
conservation and road safety [1]. Measures to reduce AVCs
in Sri Lanka include reducing vehicle speeds, raising driver Process Information of News and Weather
awareness, installing wildlife crossing signs, and educating The data is analyzed to identify factors affecting
the public about the importance of wildlife conservation. animal habitats and behaviors, enabling predictions about
future movements. The methodology uses the
The proposed smart system can identify animal behavior OpenWeatherMap API and News API to alert users of
and interaction within roads. The system uses a climate change and news events affecting animal behavior.
knowledge-based case study methodology, which Statistical methods are used to identify trends and patterns.
involves the following steps:
B. Seen Identification using Camera trap with YOLOv7
Identify the research problem and objectives. The goal is Algorithm.
to identify animal habitat and behavior according to The smart system detects animals using devices, image
different locations for future predictions. processing, YOLOv7, and human vision [8]. It uses relative
Gather anonymous data through crowd-sourcing velocity to identify movements. The camera trap setup is
platforms, by collecting information from stakeholders designed based on angle and distance, and the system uses
whenever an incident is reported, or through past history Yolov7 algorithm and image processing to detect animals.
and research. The captured output message is sent to the user via an alert
Analyze the gathered data in a statistical manner to system.
identify the dispersion factors of animal habitat,
behavior, and varying factors like climate changes and Data Collection
news information. A study in the Habarana area identified elephants and
deer as the most needed animal classes due to accidents. A
The proposed system uses a knowledge-based case diverse set of images was collected, covering angles,
study methodology to analyze animal behavior and lighting conditions, backgrounds, and object poses, to train a
interaction on roads. By identifying potential risks and robust model. For data collection purposes, we used a 1000
taking precautions, drivers can be more aware of potential image set to train.
dangers and take necessary precautions. The results can help
drivers be more cautious while driving. Images were categorized into training (80%-90%),
validation (20-30%), and testing (10-20%) sets for model
Methodology for Application of Geofencing and training, validation, and final evaluation. Training sets
Geotargeting: trained the model, validation monitored performance, and
Data from various sources is collected to identify testing set evaluated.
animal habitats and behaviors. This data creates a geofence,
allowing users to receive notifications based on targeting Training the Detection Models
criteria within a defined radius. To train YOLOv7 detection models for recognizing
animals in images or videos, a series of stages are involved.
The Methodology for Animal Habitat and Behavior Using the robowflow, bounding boxes and class labels were
Identification can be Summarized as follows: added to the obtained dataset. To guarantee a fair
assessment, the dataset is carefully selected and segregated
Data is collected from a variety of sources. into training, validation, and test sets. The YOLOv7
A geofence is created around a specific area. architecture is set up, including class sizes and input image
Notifications or filters are delivered to users who meet size. The model is initialized using pre-trained weights
specific targeting criteria within the defined radius. based on Darknet53, and data preparation techniques are
Performance evaluations are conducted on validation The average precision and mean AP values of each
and test sets, measuring mean average precision (mAP) [9]. category are combined to get the mean average precision, or
The YOLOv7 model is now ready for deployment and mAP. The following is the calculating formula [12]:
inference in practical applications.
∑𝑆𝑗=1 𝐴𝑃(𝑗)
Use of Measure of Appropriate Angle and Distance from 𝑚𝐴𝑃 = (4)
𝑆
the Vehicle.
The inverse perspective transformation method Where S is the total number of categories and APs for
converts two-dimensional images into three-dimensional all categories are added to form the denominator.
space images with a perspective using camera parameters.
Real-world coordinates are calculated to estimate the C. Unseen Identification using Ultrasonic Waves.
distance between the camera and detected vehicle pixels in
the transformed three-dimensional space. Data Gathering
Firstly, A literature review explores the Doppler effect
Design the camera setup and convey the captured output in animal identification, and a controlled environment test
message to user through the camera setup. setup measures the effect caused by moving animals.
The camera setup, the CPU converts the video into
frames, pre-processes images, and applies an animal Equation 1: Doppler Effect Equation for Frequency
detection algorithm. Edge detection technique obtains Shift [22]. The Doppler effect equation for frequency shift
animal outline, turning images into grayscale [10]. can be expressed as:
YOLOV7 object recognition algorithm compares data with
pre-processed animal photos, finds animals, and measures 𝑓′ = (𝑣 + 𝑣𝑑) / (𝑣 + 𝑣𝑠) ∗ 𝑓 (5)
distance before applying electromagnetic braking with
varying strengths. Where: f' is the observed frequency, f is the emitted
frequency, v is the speed of sound, vd is the velocity of the
Evaluation Metrics detector (vehicle), vs is the velocity of the source (animal).
The evaluation indices utilized in this study to measure
the algorithm's performance were precision (P), recall (R),
Equation 2: Doppler Effect Equation for Velocity
mean average precision (mAP), and F1 score [12]. Calculation. The Doppler effect equation can also be used to
calculate the velocity of the moving animal. It can be
Precision is the percentage of positive samples in expressed as:
samples with positive prediction outcomes. The following is
the calculating formula: 𝑣 = (𝑓 − 𝑓′) ∗ 𝑣 / (𝑓 + 𝑓′) (6)
𝑇𝑃
𝑃𝑟𝑒𝑐𝑖𝑠𝑖𝑜𝑛 = (1) Where: v is the velocity of the moving animal, f is the
𝑇𝑃 + 𝐹𝑃 emitted frequency, f' is the observed frequency, v is the
speed of sound.
The percentage of the actual positive samples in the
positive samples to the positive samples in the entire sample
Research investigated various signals for identifying
is how recall depicts the prediction outcome. The following
animals in darkness, developed test setups to measure
is the calculating formula:
effectiveness, and conducted experiments to compare their
𝑇𝑃 effectiveness.
𝑅𝑒𝑐𝑎𝑙𝑙 = (2)
𝑇𝑃 + 𝐹𝑁 Research examined animal identification devices,
identified key features, and conducted experiments to
The model's precision in identifying negative samples
compare their performance in sending and receiving signals.
is influenced by its ability to discriminate them. Higher
precision indicates stronger identification, while recall
Experiments analyzed data to determine Doppler
measures its ability to locate positive samples. The F1 score,
effect, effective signal, and best device for animal
combining these two, indicates a model's reliability.
identification, leading to the development of an algorithm.
The average precision (AP), which is often determined
For the fourth objective, mathematical equations
independently for each category, is the average value of the
developed using Doppler effect and other theorems for
greatest precision under various recall situations. The
moving objects, considering external variables like vehicle
following is the calculating formula [12]:
speed, vibration, wind, and time. Implemented in an
algorithm, accurate outputs were provided to the driver,
tested using the chosen device and signal.
Birds accounted for 58% of the total population, AVCs caused significant anxiety among drivers, with
followed by mammals (24%), reptiles (11%), and 65% stating they were a big problem and 35% not. Common
amphibians (7%). Drivers felt mammals were most affected causes include animal behaviors, darkness, sluggish
by AVCs (91.30%), followed by reptiles (3.40%), birds movement, adverse weather, and high vehicle speeds. The
(9.50%), and amphibians (1.70%). Changes may occur at least likely causes were intentional collisions and poor
other times of the year, but the study was conducted during roads.
the wet season, assuming maximum species abundance.
Geo fencing in mobile applications can mitigate
wildlife vehicle collisions by creating wildlife corridors,
connecting different habitats and allowing animals to move
safely. This allows drivers to be alerted of animals' presence,
allowing them to slow down or take other precautions to
avoid collisions.
Fig 8: Precision Curve Diagram for Trained Data The results section presents research findings on
alerting system effectiveness, driver behavior impact, anti-
frequency wave projection deterrence potential, and user
feedback insights.[17]