SlideShare una empresa de Scribd logo
1 de 4
Descargar para leer sin conexión
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2752
Vision-Based Motorcycle Crash Detection and Reporting Using Deep
Learning
Sanjit Gawade1, Nadine Dias2
1Student, Information Technology Department, Goa College of Engineering, India
2Assistant Professor, Information Technology Department, Goa College of Engineering, India
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract - In recent years, two-wheelers have gained
popularity amongst daily commuters, youngsters, and urban
residents as two-wheelers are easy to operate in congested
traffic conditions and are fuel-efficient. With the increase in
the number of vehicles on road, there has been a significant
increase in road accidents. When we compare safety features
offered on vehicles, motorcycles are equipped with the least
features compared to cars and other vehicles. This project
endeavors to provide a means to explore a vision-only
approach to detecting traffic anomalies. Considering thereal-
time operating aspect of the system, the YOLOv4 algorithm is
considered for object detection and classification. The
algorithm is trained using a custom dataset with 398 images
of road anomalies involving a motorcycle. The Model
performed exceptionally well and achieved mAP@50 of 74%
and precision of 60%.
Key Words: Deep Learning, Computer Vision, Yolov4,
Object detection, Real-time, CNN.
1. INTRODUCTION
One of the most compelling types of artificial intelligence is
computer vision. Computer vision is the field of computer
science that focuses on understanding complex human
vision systems and enabling a computer to identify and
process information in images and video streams like
humans do. The application of computer vision is expanding
in fields like healthcare, surveillance, action and activity
recognition, military, agriculture, and manufacturing.
Computer vision algorithms analyze certain criteria in
images and videos and then apply interpretation to
predictiveordecision-makingtasks.Computervisionmodels
are designed to translate visual data based on feature and
contextual data learned during training.
Convolutional Neural Network is the foundation of modern
computer vision algorithms. CV algorithms are based on
CNN, which provides a dramatic performance improvement
compared to traditional image processing algorithms. CNNs
are neural networks with a multi-layeredarchitecturethatis
used to gradually reduce data and calculation to the most
relevant set.
After the initial survey of automated accident detection
systems, it was identified that existing systems are mainly
based on GPS and GSM technology, and ultrasonic and
impact sensors inside cars to detect and report the
occurrence of an accident. Researchers are working on
vision-based accident detection, it was observed that those
systems were trained usingcarsandheavyvehicledata.Such
systems are based on finding acceleration anomaly,
trajectory anomaly, and change in angle anomaly [1], this
approach is effective to determine car accidents in normal
traffic flow and good visibility conditions and requires post-
processing of data.
Our proposed system emphasizes a vision-only approach to
detect anomalies on road. The main focus is to detect
motorcycle accidents, as there are fewer safety features on
motorcycles, and injuries attained may prevent a wounded
person from contacting emergency medical services and
receiving medical attention. This research endeavors to
provide a means to explore a vision-only approach to
detecting traffic anomalies. The main focus is to detect
incidents involving motorcycles, as there are fewer safety
features on motorcycles, and injuriesattainedmaypreventa
wounded person from contacting emergency medical
services. Considering the real-time operating aspect of the
system, 3 algorithms were finalized Faster-RCNN, Yolov4,
and Yolov4-Tiny. After training the models,itwasfoundthat
the YOLOv4 algorithmOutperformsFasterR-CNN intermsof
speed and Yolov4-Tiny in terms of accuracy. The algorithms
were trained using a custom dataset with398imagesofroad
anomalies involving a motorcycle. The Yolov4 Model
performed exceptionallywell andachievedmAP@50of74%
and precision of 60%.
2. Related work
The evolution of object detection started in the early 2000s.
They followed the low and mid-level vision and followedthe
method of recognition by components. This method enabled
object detection as a measurement of similaritybetweenthe
object components, shapes, and contours and the feature
that were taken into consideration were shape context,
edgelessness, and distance transformation.[doi2000].object
detection genre was not making any progress as the
performance of hand-crafted features became saturated.
However in 2012, with the advancement in convolutional
neural networks and deep convolutional networks, they
were successful at learning robust and high-level feature
representations of an image. The deadlocks of object
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2753
detection were broken in 2014 by the proposal of the
Regions with CNN features (RCNN) for object detection. In
this deep learning era, object detection is grouped into two
genres: two-stage detection and one-stage detection.
Traffic accidents have a short duration in drivingvideos,and
the backgrounds of driving videos aredynamic andcomplex.
These make traffic accident detection quite challenging. To
effectively and efficiently detect accidents from the driving
videos [2], in this work researchers have proposed an
accident detection approach based on Spatio-temporal
feature encoding with a multilayer neural network. A
multilayer neural network is used to encode the temporal
features of video for clustering the video frames. From the
frame cluster obtained by encoding they detect the border
frames as the potential accident frames.
In this work[5], “A review of object detection based on deep
learning” by Xiao, Y., Tian, Z., Yu, J. Authors have compared
traditional feature-based methods with the deep learning
object detection methods for both low-level and high-level
image features. This work includes a detailed study of
backbone networks, loss function, andtrainingstrategiesfor
the deep convolutional neural network.
In this work[4], Fast car accident detection in videos, by V.
Machaca Arceda and E. Laura Riveros. The authors have
proposed a three-stage proposal to detect fast car accidents.
First using convolutional neural networksobjectdetectionis
performed, You Only Look Once (YOLO) algorithm is used;
the second stage is
a tracker to focus on each car; then the final stage for each
car they have used the Violent Flow descriptor with a
Support Vector Machine (SVM) to detect the car crashes.
3. Methodology
Building a network model to perform accident detection on
real-time video we propose to train 3 algorithms to analyze
their accuracy and inference speed
Our approach consists of
A. Building a custom dataset.
B. Training the candidate algorithms on the custom
dataset.
C. Perform analysis
D. Used best-performing model weights for accident
detection.
E. Build a Darknet on a local system to run inference
on live videos.
Using best-performing model weights, build a
darknet to detect motorcycle accidents,andoncean
accident is detected generate an alert.
4. Dataset
There are only a few high-resolution datasets publically
available for accident detection. While conducting the
literature survey, it was observed that the datasets were
densely populated with accidents involving four-wheelers,
which fall under the category of large objects. To serve our
purpose of detecting motorcycle crashes a new data set was
composed of videos sourced from the web, containing CCTV
footage involving a motorcycle accident. Using a python
script, the video sequence data is broken down into
individual frames and stored in jpg format. 166 unique
images containing incidents involving a motorcycle, from
905 extracted frames containing are selected to train the
network.
Image annotation is the process of labeling an image, which
provides the location and class labels of the objects present
in the image to the computer vision model. Roboflow
annotation tool is used to annotate the images, there are six
distinct class labels used while annotating the images. The
classes are Accident, Bike, Person, Truck, Car, and Bus.
Preprocessing is applied to training, validation, and testing
set to assure learning and inferenceoccuronthesameimage
properties. The images have been resized from 1920x1080
to 416x416 to maintain the SxS aspect ratio used by the
YOLO algorithm.
Dataset Augmentation is performed on the dataset to
increase the diversity of the data. To train the algorithm for
low-light scenes a grayscale filter is applied and the
brightness level is adjusted to mimic night conditions. A
gaussian blur filter is also applied to represent adverse
weather conditions
Fig -1: Dataset After performing augmentation
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2754
4.1 Test/Train Split
After performing augmentation the total number of samples
in the dataset is 398 images.Out of which 348 are usedinthe
training set for the algorithm, 25 samples are used in the
validation set, and 25 samples are kept for testing purposes.
After the text edit has been completed, the paper is ready for
the template. Duplicate the template file by using the SaveAs
command, andusethenamingconventionprescribedbyyour
conference for the name of your paper. In this newly created
file, highlight all of the contents and import your prepared
text file. You are now ready to style your paper.
5. Implementation
The research was conducted in 4 phases, at each phase
different algorithm was trained on the same dataset and
evaluated for Accuracy, mean Average Precision, recall, and
Speed.
1 Phase 1
In phase 1 Faster R-CNN algorithm was trained for
2000 iterations. We achieved Average precision of
34% with a recall rate of 29.57 and mAP@50 66.52
Fig -2: Performance of Faster R-CNN for individual class
2 Phase 2
In Phase 2 Yolov4 algorithm was trained for 2000
iterations with the default configuration. We
achieved Average precision of 50% with a recall
rate of 37 and mAP@50 of 40.02.
Fig -2: Performance of Yolov4 for individual class
3 Phase 3
In Phase 1 Yolov4-Tiny algorithm was trained for
10000 iterations with the default configuration.We
achieved Average precision of 69% with a recall
rate of 11% and mAP@50 of 32.23%
Fig -3: Performance of Yolov4-Tiny for individual class
4 Phase 4
In Phase 4 Yolov4 algorithm was trained for 2000
iterations with a reduced batch size of12,insteadof
64 in the default configuration. No pre-trained
weights were used to train the backbone CNN. We
achieved Average precision of 60% with a recall
rate of 67 and mAP@50 of 74.3
Fig -4: Performance of Yolov4 with a custom configuration
for individual class
5.1 Accident Detection on a video stream
With the help of cuDNN Darknet was builtona local machine
and weights from Yolov4 with a custom configuration were
used to detect motorcycle anomalies. The model was
successfully able to detect accidents from the video stream
and upon detecting accidents a snapshotwascapturedof the
accident and sent over to emergency response contact via
email.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072
© 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2755
Fig -5: Accident Detection on a video stream
Fig -6: E-mail Alert
5.2 Analysis
Fig -7: Performance of Analysis of Algorithms
After conducting the experiments it was observed that the
Yolov4 algorithm with custom configuration performed the
best. By reducing the batch size, the time it takes to train the
model was drastically reduced by 67% and mAP@0.5 of
74.3% was achieved. The model achieved an average fps of
21.2 Frames per second.
The Faster R-CNN model can successfully identify accidents
on images but failed to detect objects on a video stream.
Yolov4-Tiny is very fast, running inferences at an average of
58 fps, and the accuracy of detecting the object was low.
5. Conclusion
Vision-only approach to detection was successfully
implemented and tested. Single-stage detectors like Yolov4
are suitable for real-time computer vision applications as
they maintain the balance between accuracy and speed.
Two-stage detectors are very slow for real-time application
use, if high accuracy is the final goal, two-stagedetectors are
a suitable choice due to the dense network theycangenerate
better feature maps and identify objects with highprecision.
REFERENCES
[1] Z. Zhou, X. Dong, Z. Li, K. Yu, C. Ding, and Y. Yang,
"Spatio-Temporal Feature Encoding for Traffic Accident
Detection in VANET Environment," inIEEETransactions
on Intelligent Transportation Systems, DOI:
10.1109/TITS.2022.3147826.
[2] Vipul Gaurav, Sanyam Kumar Singh, and Avikant
Srivastava, “Accident Detection, Severity Prediction,
Identification of Accident Prone Areas in India and
Feasibility Study using Improved Image Segmentation,
Machine Learning and Sensors”,International journal of
computer science and network security17,no.6(2017):
22-28
[3] Iman M. Almomani, Nour Y. Alkhalil, EnasM.Ahmadand
Rania M. Jodeh, “Ubiquitous GPS Vehicle Tracking and
Management System”, 2011 IEEE Jordan Conference on
Applied Electrical Engineering and Computing
Technologies (AEECT), DOI:
10.1109/AEECT.2011.6132526R. Nicole,“Titleofpaper
with only first word capitalized,” J.NameStand.Abbrev.,
in press.
[4] Arceda, Vicente & Riveros, Elian. (2018). Fast car Crash
Detection in Video.632-637. 10.1109/CLEI.2018.00081.
[5] Xiao, Y., Tian, Z., Yu, J. et al. A review of object detection
based on deep learning. MultimedToolsAppl 79, 23729–
23791 (2020). https://doi.org/10.1007/s11042-020-
08976-6
[6] Xiao, Y., Tian, Z., Yu, J. et al. A review of object detection
based on deep learning. Multimed Tools Appl 79,
23729–23791(2020).https://doi.org/10.1007/s11042-
020-08976-6.
[7] Sowmya, V., and R. Radha. "Heavy-Vehicle Detection
Based on YOLOv4 featuring Data Augmentation and
Transfer-Learning Techniques." Journal of Physics:
Conference Series. Vol. 1911. No. 1. IOP Publishing,
2021.

Más contenido relacionado

Similar a Vision-Based Motorcycle Crash Detection and Reporting Using Deep Learning

Real Time Object Identification for Intelligent Video Surveillance Applications
Real Time Object Identification for Intelligent Video Surveillance ApplicationsReal Time Object Identification for Intelligent Video Surveillance Applications
Real Time Object Identification for Intelligent Video Surveillance Applications
Editor IJCATR
 

Similar a Vision-Based Motorcycle Crash Detection and Reporting Using Deep Learning (20)

Vigilance: Vehicle Detector and Tracker
Vigilance: Vehicle Detector and TrackerVigilance: Vehicle Detector and Tracker
Vigilance: Vehicle Detector and Tracker
 
Safety Helmet Detection in Engineering and Management
Safety Helmet Detection in Engineering and ManagementSafety Helmet Detection in Engineering and Management
Safety Helmet Detection in Engineering and Management
 
Self Driving Car
Self Driving CarSelf Driving Car
Self Driving Car
 
Real Time Object Identification for Intelligent Video Surveillance Applications
Real Time Object Identification for Intelligent Video Surveillance ApplicationsReal Time Object Identification for Intelligent Video Surveillance Applications
Real Time Object Identification for Intelligent Video Surveillance Applications
 
Implementation of Lane Line Detection using HoughTransformation and Gaussian ...
Implementation of Lane Line Detection using HoughTransformation and Gaussian ...Implementation of Lane Line Detection using HoughTransformation and Gaussian ...
Implementation of Lane Line Detection using HoughTransformation and Gaussian ...
 
IRJET - Autonomous Navigation System using Deep Learning
IRJET -  	  Autonomous Navigation System using Deep LearningIRJET -  	  Autonomous Navigation System using Deep Learning
IRJET - Autonomous Navigation System using Deep Learning
 
Distracted Driver Detection
Distracted Driver DetectionDistracted Driver Detection
Distracted Driver Detection
 
AUTONOMOUS SELF DRIVING CARS
AUTONOMOUS SELF DRIVING CARSAUTONOMOUS SELF DRIVING CARS
AUTONOMOUS SELF DRIVING CARS
 
Object Detection for Autonomous Driving
Object Detection for Autonomous DrivingObject Detection for Autonomous Driving
Object Detection for Autonomous Driving
 
IRJET - Traffic Density Estimation by Counting Vehicles using Aggregate Chann...
IRJET - Traffic Density Estimation by Counting Vehicles using Aggregate Chann...IRJET - Traffic Density Estimation by Counting Vehicles using Aggregate Chann...
IRJET - Traffic Density Estimation by Counting Vehicles using Aggregate Chann...
 
IRJET- Traffic Sign Detection, Recognition and Notification System using ...
IRJET-  	  Traffic Sign Detection, Recognition and Notification System using ...IRJET-  	  Traffic Sign Detection, Recognition and Notification System using ...
IRJET- Traffic Sign Detection, Recognition and Notification System using ...
 
IRJET- A Survey of Approaches for Vehicle Traffic Analysis
IRJET- A Survey of Approaches for Vehicle Traffic AnalysisIRJET- A Survey of Approaches for Vehicle Traffic Analysis
IRJET- A Survey of Approaches for Vehicle Traffic Analysis
 
IRJET- A Survey of Approaches for Vehicle Traffic Analysis
IRJET- A Survey of Approaches for Vehicle Traffic AnalysisIRJET- A Survey of Approaches for Vehicle Traffic Analysis
IRJET- A Survey of Approaches for Vehicle Traffic Analysis
 
TRAFFIC RULES VIOLATION DETECTION SYSTEM
TRAFFIC RULES VIOLATION DETECTION SYSTEMTRAFFIC RULES VIOLATION DETECTION SYSTEM
TRAFFIC RULES VIOLATION DETECTION SYSTEM
 
Helmet and License Plate Detection using Machine Learning
Helmet and License Plate Detection using Machine LearningHelmet and License Plate Detection using Machine Learning
Helmet and License Plate Detection using Machine Learning
 
IRJET- Traffic Sign and Drowsiness Detection using Open-CV
IRJET- Traffic Sign and Drowsiness Detection using Open-CVIRJET- Traffic Sign and Drowsiness Detection using Open-CV
IRJET- Traffic Sign and Drowsiness Detection using Open-CV
 
Helmet Detection Based on Convolutional Neural Networks
Helmet Detection Based on Convolutional Neural NetworksHelmet Detection Based on Convolutional Neural Networks
Helmet Detection Based on Convolutional Neural Networks
 
Human Motion Detection in Video Surveillance using Computer Vision Technique
Human Motion Detection in Video Surveillance using Computer Vision TechniqueHuman Motion Detection in Video Surveillance using Computer Vision Technique
Human Motion Detection in Video Surveillance using Computer Vision Technique
 
IRJET - Efficient Approach for Number Plaque Accreditation System using W...
IRJET -  	  Efficient Approach for Number Plaque Accreditation System using W...IRJET -  	  Efficient Approach for Number Plaque Accreditation System using W...
IRJET - Efficient Approach for Number Plaque Accreditation System using W...
 
IRJET- Computerized Vehicle Foyer and Outlet Monitoring System using Deep Lea...
IRJET- Computerized Vehicle Foyer and Outlet Monitoring System using Deep Lea...IRJET- Computerized Vehicle Foyer and Outlet Monitoring System using Deep Lea...
IRJET- Computerized Vehicle Foyer and Outlet Monitoring System using Deep Lea...
 

Más de IRJET Journal

Más de IRJET Journal (20)

TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
 
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURESTUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
 
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
 
Effect of Camber and Angles of Attack on Airfoil Characteristics
Effect of Camber and Angles of Attack on Airfoil CharacteristicsEffect of Camber and Angles of Attack on Airfoil Characteristics
Effect of Camber and Angles of Attack on Airfoil Characteristics
 
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
 
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
 
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
 
A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...
A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...
A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...
 
A REVIEW ON MACHINE LEARNING IN ADAS
A REVIEW ON MACHINE LEARNING IN ADASA REVIEW ON MACHINE LEARNING IN ADAS
A REVIEW ON MACHINE LEARNING IN ADAS
 
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
 
P.E.B. Framed Structure Design and Analysis Using STAAD Pro
P.E.B. Framed Structure Design and Analysis Using STAAD ProP.E.B. Framed Structure Design and Analysis Using STAAD Pro
P.E.B. Framed Structure Design and Analysis Using STAAD Pro
 
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
 
Survey Paper on Cloud-Based Secured Healthcare System
Survey Paper on Cloud-Based Secured Healthcare SystemSurvey Paper on Cloud-Based Secured Healthcare System
Survey Paper on Cloud-Based Secured Healthcare System
 
Review on studies and research on widening of existing concrete bridges
Review on studies and research on widening of existing concrete bridgesReview on studies and research on widening of existing concrete bridges
Review on studies and research on widening of existing concrete bridges
 
React based fullstack edtech web application
React based fullstack edtech web applicationReact based fullstack edtech web application
React based fullstack edtech web application
 
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
 
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
 
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
 
Multistoried and Multi Bay Steel Building Frame by using Seismic Design
Multistoried and Multi Bay Steel Building Frame by using Seismic DesignMultistoried and Multi Bay Steel Building Frame by using Seismic Design
Multistoried and Multi Bay Steel Building Frame by using Seismic Design
 
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
 

Último

Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Último (20)

Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 

Vision-Based Motorcycle Crash Detection and Reporting Using Deep Learning

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2752 Vision-Based Motorcycle Crash Detection and Reporting Using Deep Learning Sanjit Gawade1, Nadine Dias2 1Student, Information Technology Department, Goa College of Engineering, India 2Assistant Professor, Information Technology Department, Goa College of Engineering, India ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract - In recent years, two-wheelers have gained popularity amongst daily commuters, youngsters, and urban residents as two-wheelers are easy to operate in congested traffic conditions and are fuel-efficient. With the increase in the number of vehicles on road, there has been a significant increase in road accidents. When we compare safety features offered on vehicles, motorcycles are equipped with the least features compared to cars and other vehicles. This project endeavors to provide a means to explore a vision-only approach to detecting traffic anomalies. Considering thereal- time operating aspect of the system, the YOLOv4 algorithm is considered for object detection and classification. The algorithm is trained using a custom dataset with 398 images of road anomalies involving a motorcycle. The Model performed exceptionally well and achieved mAP@50 of 74% and precision of 60%. Key Words: Deep Learning, Computer Vision, Yolov4, Object detection, Real-time, CNN. 1. INTRODUCTION One of the most compelling types of artificial intelligence is computer vision. Computer vision is the field of computer science that focuses on understanding complex human vision systems and enabling a computer to identify and process information in images and video streams like humans do. The application of computer vision is expanding in fields like healthcare, surveillance, action and activity recognition, military, agriculture, and manufacturing. Computer vision algorithms analyze certain criteria in images and videos and then apply interpretation to predictiveordecision-makingtasks.Computervisionmodels are designed to translate visual data based on feature and contextual data learned during training. Convolutional Neural Network is the foundation of modern computer vision algorithms. CV algorithms are based on CNN, which provides a dramatic performance improvement compared to traditional image processing algorithms. CNNs are neural networks with a multi-layeredarchitecturethatis used to gradually reduce data and calculation to the most relevant set. After the initial survey of automated accident detection systems, it was identified that existing systems are mainly based on GPS and GSM technology, and ultrasonic and impact sensors inside cars to detect and report the occurrence of an accident. Researchers are working on vision-based accident detection, it was observed that those systems were trained usingcarsandheavyvehicledata.Such systems are based on finding acceleration anomaly, trajectory anomaly, and change in angle anomaly [1], this approach is effective to determine car accidents in normal traffic flow and good visibility conditions and requires post- processing of data. Our proposed system emphasizes a vision-only approach to detect anomalies on road. The main focus is to detect motorcycle accidents, as there are fewer safety features on motorcycles, and injuries attained may prevent a wounded person from contacting emergency medical services and receiving medical attention. This research endeavors to provide a means to explore a vision-only approach to detecting traffic anomalies. The main focus is to detect incidents involving motorcycles, as there are fewer safety features on motorcycles, and injuriesattainedmaypreventa wounded person from contacting emergency medical services. Considering the real-time operating aspect of the system, 3 algorithms were finalized Faster-RCNN, Yolov4, and Yolov4-Tiny. After training the models,itwasfoundthat the YOLOv4 algorithmOutperformsFasterR-CNN intermsof speed and Yolov4-Tiny in terms of accuracy. The algorithms were trained using a custom dataset with398imagesofroad anomalies involving a motorcycle. The Yolov4 Model performed exceptionallywell andachievedmAP@50of74% and precision of 60%. 2. Related work The evolution of object detection started in the early 2000s. They followed the low and mid-level vision and followedthe method of recognition by components. This method enabled object detection as a measurement of similaritybetweenthe object components, shapes, and contours and the feature that were taken into consideration were shape context, edgelessness, and distance transformation.[doi2000].object detection genre was not making any progress as the performance of hand-crafted features became saturated. However in 2012, with the advancement in convolutional neural networks and deep convolutional networks, they were successful at learning robust and high-level feature representations of an image. The deadlocks of object
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2753 detection were broken in 2014 by the proposal of the Regions with CNN features (RCNN) for object detection. In this deep learning era, object detection is grouped into two genres: two-stage detection and one-stage detection. Traffic accidents have a short duration in drivingvideos,and the backgrounds of driving videos aredynamic andcomplex. These make traffic accident detection quite challenging. To effectively and efficiently detect accidents from the driving videos [2], in this work researchers have proposed an accident detection approach based on Spatio-temporal feature encoding with a multilayer neural network. A multilayer neural network is used to encode the temporal features of video for clustering the video frames. From the frame cluster obtained by encoding they detect the border frames as the potential accident frames. In this work[5], “A review of object detection based on deep learning” by Xiao, Y., Tian, Z., Yu, J. Authors have compared traditional feature-based methods with the deep learning object detection methods for both low-level and high-level image features. This work includes a detailed study of backbone networks, loss function, andtrainingstrategiesfor the deep convolutional neural network. In this work[4], Fast car accident detection in videos, by V. Machaca Arceda and E. Laura Riveros. The authors have proposed a three-stage proposal to detect fast car accidents. First using convolutional neural networksobjectdetectionis performed, You Only Look Once (YOLO) algorithm is used; the second stage is a tracker to focus on each car; then the final stage for each car they have used the Violent Flow descriptor with a Support Vector Machine (SVM) to detect the car crashes. 3. Methodology Building a network model to perform accident detection on real-time video we propose to train 3 algorithms to analyze their accuracy and inference speed Our approach consists of A. Building a custom dataset. B. Training the candidate algorithms on the custom dataset. C. Perform analysis D. Used best-performing model weights for accident detection. E. Build a Darknet on a local system to run inference on live videos. Using best-performing model weights, build a darknet to detect motorcycle accidents,andoncean accident is detected generate an alert. 4. Dataset There are only a few high-resolution datasets publically available for accident detection. While conducting the literature survey, it was observed that the datasets were densely populated with accidents involving four-wheelers, which fall under the category of large objects. To serve our purpose of detecting motorcycle crashes a new data set was composed of videos sourced from the web, containing CCTV footage involving a motorcycle accident. Using a python script, the video sequence data is broken down into individual frames and stored in jpg format. 166 unique images containing incidents involving a motorcycle, from 905 extracted frames containing are selected to train the network. Image annotation is the process of labeling an image, which provides the location and class labels of the objects present in the image to the computer vision model. Roboflow annotation tool is used to annotate the images, there are six distinct class labels used while annotating the images. The classes are Accident, Bike, Person, Truck, Car, and Bus. Preprocessing is applied to training, validation, and testing set to assure learning and inferenceoccuronthesameimage properties. The images have been resized from 1920x1080 to 416x416 to maintain the SxS aspect ratio used by the YOLO algorithm. Dataset Augmentation is performed on the dataset to increase the diversity of the data. To train the algorithm for low-light scenes a grayscale filter is applied and the brightness level is adjusted to mimic night conditions. A gaussian blur filter is also applied to represent adverse weather conditions Fig -1: Dataset After performing augmentation
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2754 4.1 Test/Train Split After performing augmentation the total number of samples in the dataset is 398 images.Out of which 348 are usedinthe training set for the algorithm, 25 samples are used in the validation set, and 25 samples are kept for testing purposes. After the text edit has been completed, the paper is ready for the template. Duplicate the template file by using the SaveAs command, andusethenamingconventionprescribedbyyour conference for the name of your paper. In this newly created file, highlight all of the contents and import your prepared text file. You are now ready to style your paper. 5. Implementation The research was conducted in 4 phases, at each phase different algorithm was trained on the same dataset and evaluated for Accuracy, mean Average Precision, recall, and Speed. 1 Phase 1 In phase 1 Faster R-CNN algorithm was trained for 2000 iterations. We achieved Average precision of 34% with a recall rate of 29.57 and mAP@50 66.52 Fig -2: Performance of Faster R-CNN for individual class 2 Phase 2 In Phase 2 Yolov4 algorithm was trained for 2000 iterations with the default configuration. We achieved Average precision of 50% with a recall rate of 37 and mAP@50 of 40.02. Fig -2: Performance of Yolov4 for individual class 3 Phase 3 In Phase 1 Yolov4-Tiny algorithm was trained for 10000 iterations with the default configuration.We achieved Average precision of 69% with a recall rate of 11% and mAP@50 of 32.23% Fig -3: Performance of Yolov4-Tiny for individual class 4 Phase 4 In Phase 4 Yolov4 algorithm was trained for 2000 iterations with a reduced batch size of12,insteadof 64 in the default configuration. No pre-trained weights were used to train the backbone CNN. We achieved Average precision of 60% with a recall rate of 67 and mAP@50 of 74.3 Fig -4: Performance of Yolov4 with a custom configuration for individual class 5.1 Accident Detection on a video stream With the help of cuDNN Darknet was builtona local machine and weights from Yolov4 with a custom configuration were used to detect motorcycle anomalies. The model was successfully able to detect accidents from the video stream and upon detecting accidents a snapshotwascapturedof the accident and sent over to emergency response contact via email.
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 07 | July 2022 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 2755 Fig -5: Accident Detection on a video stream Fig -6: E-mail Alert 5.2 Analysis Fig -7: Performance of Analysis of Algorithms After conducting the experiments it was observed that the Yolov4 algorithm with custom configuration performed the best. By reducing the batch size, the time it takes to train the model was drastically reduced by 67% and mAP@0.5 of 74.3% was achieved. The model achieved an average fps of 21.2 Frames per second. The Faster R-CNN model can successfully identify accidents on images but failed to detect objects on a video stream. Yolov4-Tiny is very fast, running inferences at an average of 58 fps, and the accuracy of detecting the object was low. 5. Conclusion Vision-only approach to detection was successfully implemented and tested. Single-stage detectors like Yolov4 are suitable for real-time computer vision applications as they maintain the balance between accuracy and speed. Two-stage detectors are very slow for real-time application use, if high accuracy is the final goal, two-stagedetectors are a suitable choice due to the dense network theycangenerate better feature maps and identify objects with highprecision. REFERENCES [1] Z. Zhou, X. Dong, Z. Li, K. Yu, C. Ding, and Y. Yang, "Spatio-Temporal Feature Encoding for Traffic Accident Detection in VANET Environment," inIEEETransactions on Intelligent Transportation Systems, DOI: 10.1109/TITS.2022.3147826. [2] Vipul Gaurav, Sanyam Kumar Singh, and Avikant Srivastava, “Accident Detection, Severity Prediction, Identification of Accident Prone Areas in India and Feasibility Study using Improved Image Segmentation, Machine Learning and Sensors”,International journal of computer science and network security17,no.6(2017): 22-28 [3] Iman M. Almomani, Nour Y. Alkhalil, EnasM.Ahmadand Rania M. Jodeh, “Ubiquitous GPS Vehicle Tracking and Management System”, 2011 IEEE Jordan Conference on Applied Electrical Engineering and Computing Technologies (AEECT), DOI: 10.1109/AEECT.2011.6132526R. Nicole,“Titleofpaper with only first word capitalized,” J.NameStand.Abbrev., in press. [4] Arceda, Vicente & Riveros, Elian. (2018). Fast car Crash Detection in Video.632-637. 10.1109/CLEI.2018.00081. [5] Xiao, Y., Tian, Z., Yu, J. et al. A review of object detection based on deep learning. MultimedToolsAppl 79, 23729– 23791 (2020). https://doi.org/10.1007/s11042-020- 08976-6 [6] Xiao, Y., Tian, Z., Yu, J. et al. A review of object detection based on deep learning. Multimed Tools Appl 79, 23729–23791(2020).https://doi.org/10.1007/s11042- 020-08976-6. [7] Sowmya, V., and R. Radha. "Heavy-Vehicle Detection Based on YOLOv4 featuring Data Augmentation and Transfer-Learning Techniques." Journal of Physics: Conference Series. Vol. 1911. No. 1. IOP Publishing, 2021.